Skip to main content
Network Thinking Solutions Logo

CVE-2025-38274

Linux kernel: fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()

All CVEs
CVE-2025-38274Published 7/10/2025

Linux kernel: fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt() fpga_mgr_test_img_load_sgt() allocates memory for sgt using kunit_kzalloc() however it does not check if the allocation failed. It then passes sgt to sg_alloc_table(), which passes it to __sg_alloc_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 KUNIT_ASSERT_NOT_ERR_OR_NULL().

Published
7/10/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 6.6, < 6.6.94

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.34

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.15.3

Verify advisory

Source
Linux
Linux
≥ ccbc1c302115d8125d6a96296ba52702c6de0ade, < e69e2cfd8b38d9463a250e153ef4963a604d61e9

Verify advisory

Source
Linux
Linux
≥ ccbc1c302115d8125d6a96296ba52702c6de0ade, < 8b2230ac7ff0aeb2441132df638a82ab124f8624

Verify advisory

Source
Linux
Linux
≥ ccbc1c302115d8125d6a96296ba52702c6de0ade, < eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d

Verify advisory

Source
Linux
Linux
≥ ccbc1c302115d8125d6a96296ba52702c6de0ade, < 6ebf1982038af12f3588417e4fd0417d2551da28

Verify advisory

Source
Linux
Linux
6.6

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.