CVE-2026-31559 LoongArch: Fix missing NULL checks for kstrdup()
A missing NULL check in the Linux kernel LoongArch architecture can cause a kernel oops during early boot if memory allocation fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-31559?
CVE-2026-31559 is a medium-severity vulnerability in Linux kernel, published on 24 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Fix missing NULL checks for kstrdup()
1. Replace "of_find_node_by_path("/")" with "of_root" to avoid multiple calls to "of_node_put()".
2. Fix a potential kernel oops during early boot when memory allocation fails while parsing CPU model from device tree.
Weakness: CWE-476
Which versions are affected by CVE-2026-31559?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-31559?
Apply the vendor's patch.
Is CVE-2026-31559 being exploited?
There is no known exploitation of CVE-2026-31559 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2026-31559, DEBIAN-CVE-2026-31559, GHSA-jj4r-h87w-8r6g, UBUNTU-CVE-2026-31559.