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

- Severity: not scored yet
- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-18T15:49:32.909Z
- Modified: 2026-10-30T13:21:29.530Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before c654f283d7db20648a5bbf979209f78d4fa9be3f; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 64517aeaa3d8b158e4d01321a095be48cb551251; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before bbe3dc64b28a14bd9ecb514bbf5115ac8472ed80; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 702b5db6e7b3865be70675d57d6fd7dde80d02b6; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 894573e2fdaeb1b15030b7eebc22615edf28a6cd; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 7a46f1917b320cc8762183b802301da02a191b6a; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 3a23fb158ba517b77a2e5258263bdfdaa480f758; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 1d62f0f2bc7edb12ed09f71203df0e47fa4efca4; 4.15 (not affected: before 4.15; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

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

## Sources

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

---

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