CVE-2026-31559: LoongArch: Fix missing NULL checks for kstrdup()
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Fix missing NULL checks for kstrdup()
1. Replace "offindnodebypath("/")" with "ofroot" to avoid multiple calls to "ofnodeput()".
2. Fix a potential kernel oops during early boot when memory allocation fails while parsing CPU model from device tree.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.85-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.19.11-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.80 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.16 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.17 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.21 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.19.11 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31559?
The severity of CVE-2026-31559 is medium with a CVSS score of 5.5.
How do I fix CVE-2026-31559?
CVE-2026-31559 can be fixed by applying the available patch from the Linux kernel.
What type of vulnerability is CVE-2026-31559?
CVE-2026-31559 is classified as a Null Pointer Dereference vulnerability.
Which software is affected by CVE-2026-31559?
CVE-2026-31559 affects the Linux kernel, specifically the LoongArch architecture.
What is the description of CVE-2026-31559?
CVE-2026-31559 addresses a missing NULL check for kstrdup() in the Linux kernel that could lead to a kernel oops during early boot.