{"id":"CVE-2025-38274","published":"2025-07-10T07:41:55Z","modified":"2026-05-11T21:24:42Z","title":"fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00194,"percentile":0.09207,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e69e2cfd8b38d9463a250e153ef4963a604d61e9","tags":[]},{"url":"https://git.kernel.org/stable/c/8b2230ac7ff0aeb2441132df638a82ab124f8624","tags":[]},{"url":"https://git.kernel.org/stable/c/eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d","tags":[]},{"url":"https://git.kernel.org/stable/c/6ebf1982038af12f3588417e4fd0417d2551da28","tags":[]}],"priority":{"score":1.8,"factors":[{"name":"EPSS percentile","points":1.84}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ccbc1c302115d8125d6a96296ba52702c6de0ade, < e69e2cfd8b38d9463a250e153ef4963a604d61e9",">= ccbc1c302115d8125d6a96296ba52702c6de0ade, < 8b2230ac7ff0aeb2441132df638a82ab124f8624",">= ccbc1c302115d8125d6a96296ba52702c6de0ade, < eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d",">= ccbc1c302115d8125d6a96296ba52702c6de0ade, < 6ebf1982038af12f3588417e4fd0417d2551da28"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"euvd":{"id":"EUVD-2025-20974","exploited":false,"provenance":"source"}}