CVE-2024-56773Published Jan 8, 2025 · Jan 8Updated Oct 28
kunit: Fix potential null dereference in kunit_device_driver_test()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s kunit_device_driver_test() may dereference a NULL pointer if kunit_kzalloc() fails. The input does not establish whether an attacker can trigger this condition or specify any access or user-interaction requirements.
Engineers running the Linux kernel should check their versions; affected versions are not specified.