# CVE-2026-31559: LoongArch: Fix missing NULL checks for kstrdup()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-04-24T14:35:41.961Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from facc69f43502c135c16b97d5ded7253f15597912 before 5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0; from 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8 before a1da957c25cf751a2dce8fb7777f82ccbac0cb3e; from 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8 before b61a309743322fb57fb9afa9aa3495ac758e4f5e; from 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8 before 3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1; 620805dc674eab3055543496a7ef25beb9ffd2a8; 8dfeedf9eceadc1a2fc9066b4c5230690d1cad48; from 6.12.43 before 6.12.80; from 6.15.11 before 6.16; from 6.16.2 before 6.17; 6.17 (not affected: before 6.17; from 6.12.80 up to 6.12.*; from 6.18.21 up to 6.18.*; from 6.19.11 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.12.43 before 6.12.80; from 6.15.11 before 6.16; from 6.16.2 before 6.17; from 6.17.1 before 6.18.21; from 6.19 before 6.19.11; 6.17; 7.0

## References

- <https://git.kernel.org/stable/c/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0> (patch)
- <https://git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e> (patch)
- <https://git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e> (patch)
- <https://git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1> (patch)

## Sources

- CVE List: [CVE-2026-31559](https://www.cve.org/CVERecord?id=CVE-2026-31559), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2026-31559](https://nvd.nist.gov/vuln/detail/CVE-2026-31559), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31559 · Whole record: https://cve.day/CVE-2026-31559.json · Rebuilt by cve.day 2026-11-25T22:59:19.483Z
