CVE-2025-38274

Source
https://cve.org/CVERecord?id=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-10T07:41:55.041Z
Modified
2026-05-15T11:53:23.755497076Z
Summary
fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()
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 __sgalloctable(). 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().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38274.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.94
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.34
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38274.json"