cbcvebase.
CVE-2025-38274
published 2025-07-10

CVE-2025-38274: In the Linux kernel, the following vulnerability has been resolved: fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()…

PriorityP418medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.16%
5.5th percentile
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().

Affected

22 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.12.35-1 (forky)linux 6.12.35-1 (forky)
linuxlinux
linuxlinux>= ccbc1c302115d8125d6a96296ba52702c6de0ade < e69e2cfd8b38d9463a250e153ef4963a604d61e9e69e2cfd8b38d9463a250e153ef4963a604d61e9
linuxlinux>= ccbc1c302115d8125d6a96296ba52702c6de0ade < 8b2230ac7ff0aeb2441132df638a82ab124f86248b2230ac7ff0aeb2441132df638a82ab124f8624
linuxlinux>= ccbc1c302115d8125d6a96296ba52702c6de0ade < eb4c74eaa6e2d15f3bbd32941c9d2a25b29a718deb4c74eaa6e2d15f3bbd32941c9d2a25b29a718d
linuxlinux>= ccbc1c302115d8125d6a96296ba52702c6de0ade < 6ebf1982038af12f3588417e4fd0417d2551da286ebf1982038af12f3588417e4fd0417d2551da28
linuxlinux_kernel>= 0 < 6.12.35-16.12.35-1
linuxlinux_kernel>= 0 < 6.12.35-16.12.35-1
linuxlinux_kernel>= 0 < 6.8.0-100.1006.8.0-100.100
linuxlinux_kernel>= 6.13 < 6.15.36.15.3
linuxlinux_kernel>= 6.6 < 6.6.946.6.94
linuxlinux_kernel>= 6.7 < 6.12.346.12.34
msrcazl3_kernel_6.6.92.2-2_on_azure_linux_3.0
ubuntulinux-aws
ubuntulinux-aws-6.8
ubuntulinux-gkeop
ubuntulinux-nvidia
ubuntulinux-nvidia-6.8
ubuntulinux-oracle
ubuntulinux-oracle-6.8
ubuntulinux-raspi-realtime
ubuntulinux-realtime

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5LOW
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
vendor_ubuntu3.2LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.