CVE-2026-31559
LoongArch: Fix missing NULL checks for kstrdup()
Check your servers for CVE-2026-31559
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31559 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.54% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from facc69f43502c135c16b97d5ded7253f15597912, before 5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0 affected from 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8, before a1da957c25cf751a2dce8fb7777f82ccbac0cb3e affected from 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8, before b61a309743322fb57fb9afa9aa3495ac758e4f5e affected from 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8, before 3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1 affected 620805dc674eab3055543496a7ef25beb9ffd2a8 affected 8dfeedf9eceadc1a2fc9066b4c5230690d1cad48 affected from 6.12.43, before 6.12.80 affected from 6.15.11, before 6.16 affected from 6.16.2, before 6.17
Other versions: unaffected
|
| Linux |
affected 6.17 unaffected before 6.17 unaffected from 6.12.80 up to and including 6.12.* unaffected from 6.18.21 up to and including 6.18.* unaffected from 6.19.11 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31559 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31559
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31559
trivy image --scanners vuln IMAGE | grep CVE-2026-31559
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0 git.kernel.org
- https://git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e git.kernel.org
- https://git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e git.kernel.org
- https://git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1 git.kernel.org
Source: the record CVE-2026-31559 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse