What’s Vulnerable › Vulnerabilities
CVE-2024-56773: kunit: Fix potential null dereference in kunit_device_driver_test()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-01-08 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: kunit: Fix potential null dereference in kunit_device_driver_test() kunit_kzalloc() may return a NULL pointer, dereferencing it without NULL check may lead to NULL dereference. Add a NULL check for test_state.
Affected products
- Linux kernel: from 6.8 before 6.12.4 — fixed in 6.12.4
How to fix
Upgrade to a fixed version: Linux kernel 6.12.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/435c20eed572a95709b1536ff78832836b2f91b1
- https://git.kernel.org/stable/c/5d28fac59369b5d3c48cdf09e50275a61ff91202
Get alerted when CVE-2024-56773 or the next vulnerability affects your stack