CVE-2024-56773
JSON

5.5medium

kunit: Fix potential null dereference in kunit_device_driver_test()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.8 before 6.12.4NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: kunit: Se ha corregido una posible desreferencia nula en kunit_device_driver_test(). kunit_kzalloc() puede devolver un puntero NULL. Si se desreferencia sin una comprobación NULL, se puede generar una desreferencia NULL. Se ha añadido una comprobación NULL para test_state.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56773 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-56773 changed 2026-06-17Public domain