CVE-2025-38274
Last modified
CVE-2025-38274 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.6, < 6.6.94 |
| Linux | Linux Kernel | >= 6.7, < 6.12.34 |
| Linux | Linux Kernel | >= 6.13, < 6.15.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-38274?
How severe is CVE-2025-38274?
How do I fix CVE-2025-38274?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38269In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3827A vulnerability has been found in PHPGurukul Men Salon Manag…9.8
- CVE-2025-38270In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38271In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38272In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38273In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38275In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38276In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38277In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38278In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38279In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3828A vulnerability was found in PHPGurukul Men Salon Management…9.8
Are you affected by CVE-2025-38274?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
