{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38274","id":"CVE-2025-38274","title":"fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()\n\nfpga_mgr_test_img_load_sgt() allocates memory for sgt using\nkunit_kzalloc() however it does not check if the allocation failed.\nIt then passes sgt to sg_alloc_table(), which passes it to\n__sg_alloc_table(). This function calls memset() on sgt in an attempt to","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nfpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()\n\nfpga_mgr_test_img_load_sgt() allocates memory for sgt using\nkunit_kzalloc() however it does not check if the allocation failed.\nIt then passes sgt to sg_alloc_table(), which passes it to\n__sg_alloc_table(). This function calls memset() on sgt in an attempt to\nzero it out. If the allocation fails then sgt will be NULL and the\nmemset will trigger a NULL pointer dereference.\n\nFix this by checking the allocation with KUNIT_ASSERT_NOT_ERR_OR_NULL().","published":"2025-07-10T07:41:55.041Z","updated":"2026-10-28T02:30:30.788700932Z","reserved":"2025-04-16T04:51:23.998Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ccbc1c302115d8125d6a96296ba52702c6de0ade","lessThan":"e69e2cfd8b38d9463a250e153ef4963a604d61e9","status":"affected","versionType":"git"},{"version":"ccbc1c302115d8125d6a96296ba52702c6de0ade","lessThan":"8b2230ac7ff0aeb2441132df638a82ab124f8624","status":"affected","versionType":"git"},{"version":"ccbc1c302115d8125d6a96296ba52702c6de0ade","lessThan":"eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d","status":"affected","versionType":"git"},{"version":"ccbc1c302115d8125d6a96296ba52702c6de0ade","lessThan":"6ebf1982038af12f3588417e4fd0417d2551da28","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.94","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.34","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.3","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e69e2cfd8b38d9463a250e153ef4963a604d61e9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8b2230ac7ff0aeb2441132df638a82ab124f8624","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6ebf1982038af12f3588417e4fd0417d2551da28","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38274.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38274","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00194,"epssPercentile":0.09256,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38274","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38274","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38274","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38274","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}