VYPR
Unrated severityNVD Advisory· Published Dec 30, 2025· Updated Apr 15, 2026

CVE-2023-54178

CVE-2023-54178

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A null pointer dereference in Linux kernel's of_unittest_find_node_by_name() when kmalloc fails, leading to a potential crash.

Vulnerability

Overview

CVE-2023-54178 is a null pointer dereference vulnerability in the Linux kernel's Device Tree (OF) unit test function of_unittest_find_node_by_name(). The root cause is that the function uses kasprintf() to allocate memory for the name and full_name strings, but does not check if the allocation succeeds. If kmalloc() fails, kasprintf() returns NULL, and the subsequent strcmp() call dereferences the NULL pointer, causing a kernel crash [1][2].

Exploitation

This vulnerability is triggered during the execution of the OF unit tests, which are typically run during kernel self-tests or debugging. An attacker would need to be able to influence memory allocation to cause kmalloc() to fail, for example by exhausting system memory. The attack surface is limited to systems where the OF unit tests are enabled and executed, and the attacker must have some ability to affect kernel memory pressure [3][4].

Impact

Impact

A successful exploitation leads to a denial of service (DoS) via a kernel NULL pointer dereference, resulting in a system crash or hang. The vulnerability does not allow for privilege escalation or arbitrary code execution, as it only causes a panic when the NULL pointer is accessed memory is unmapped [1][2].

Mitigation

The fix has been applied to the Linux kernel stable branches. Users should update to a kernel version containing the commit that adds a NULL check before the strcmp() call. No workaround is available other than applying the patch or disabling the OF unit tests if they are not needed [3][4].

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

9

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

9

News mentions

0

No linked articles in our index yet.