CVE-2025-38274

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38274
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38274.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38274
Downstream
Related
Published
2025-07-10T08:15:25Z
Modified
2025-08-09T20:01:27Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

fpga: fix potential null pointer deref in fpgamgrtestimgload_sgt()

fpgamgrtestimgloadsgt() allocates memory for sgt using kunitkzalloc() however it does not check if the allocation failed. It then passes sgt to sgalloctable(), which passes it to _sgalloc_table(). This function calls memset() on sgt in an attempt to zero it out. If the allocation fails then sgt will be NULL and the memset will trigger a NULL pointer dereference.

Fix this by checking the allocation with KUNITASSERTNOTERROR_NULL().

References

Affected packages