CVE-2023-54178 of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
A null pointer dereference in the Linux kernel's device tree unit test code can cause a system crash if memory allocation fails.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54178?
CVE-2023-54178 is a vulnerability in Linux, published on 30 Dec 2025.
Official description
In the Linux kernel, the following vulnerability has been resolved:
of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
when kmalloc() fail to allocate memory in kasprintf(), name or full_name will be NULL, strcmp() will cause null pointer dereference.
Which versions are affected by CVE-2023-54178?
How do I fix CVE-2023-54178?
Apply the vendor's patch.
Is CVE-2023-54178 being exploited?
There is no known exploitation of CVE-2023-54178 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54178, DEBIAN-CVE-2023-54178, GHSA-wxwm-5fjr-9g52, UBUNTU-CVE-2023-54178.