CVE-2025-38274

Medium

Description

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().

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedJul 10, 2025
First seenJul 10, 2025

How to fix

Update
  • linux linux_kernel6.6.94, 6.12.34, 6.15.3 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel6.6 ≤ v < 6.6.94, 6.7 ≤ v < 6.12.34, 6.13 ≤ v < 6.15.36.6.94, 6.12.34, 6.15.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.