# CVE-2024-56773: kunit: Fix potential null dereference in kunit_device_driver_test()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-01-08T17:49:12.275Z
- Modified: 2026-06-17T08:12:57.510Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d03c720e03bd9bf0b784d80b5d3ede7e2daf3b6e before 5d28fac59369b5d3c48cdf09e50275a61ff91202; from d03c720e03bd9bf0b784d80b5d3ede7e2daf3b6e before 435c20eed572a95709b1536ff78832836b2f91b1; 6.8 (not affected: before 6.8; from 6.12.4 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.8 before 6.12.4

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5d28fac59369b5d3c48cdf09e50275a61ff91202> (patch)
- <https://git.kernel.org/stable/c/435c20eed572a95709b1536ff78832836b2f91b1> (patch)

## Sources

- CVE List: [CVE-2024-56773](https://www.cve.org/CVERecord?id=CVE-2024-56773), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56773](https://nvd.nist.gov/vuln/detail/CVE-2024-56773), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56773 · Whole record: https://cve.day/CVE-2024-56773.json · Rebuilt by cve.day 2026-11-25T22:58:50.819Z
