{"id":"CVE-2026-98831","summary":"of/overlay: don't leak fragment references when changeset init fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nof/overlay: don't leak fragment references when changeset init fails\n\ninit_overlay_changeset() stores the number of initialized fragments\nin ovcs-\u003ecount only on full success. When find_target() or the\n__symbols__ lookup fails partway through, the target and overlay\nreferences taken for the fragments initialized so far are never\ndropped: free_overlay_changeset() bounds its cleanup loop by\novcs-\u003ecount, which is still 0.\n\nStore the running count on the error path so free_overlay_changeset()\nputs whatever was set up. The store is guarded by ovcs-\u003efragments\nbecause on the allocation-failure path cnt still holds the counting\npass total while there is no fragments array; everywhere else cnt\nonly counts fully-initialized fragments.","modified":"2026-10-19T02:47:31.348472052Z","published":"2026-10-18T15:49:32.909Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98831.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1d62f0f2bc7edb12ed09f71203df0e47fa4efca4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a23fb158ba517b77a2e5258263bdfdaa480f758"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a46f1917b320cc8762183b802301da02a191b6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/894573e2fdaeb1b15030b7eebc22615edf28a6cd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98831.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98831"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1"},{"fixed":"894573e2fdaeb1b15030b7eebc22615edf28a6cd"},{"fixed":"7a46f1917b320cc8762183b802301da02a191b6a"},{"fixed":"3a23fb158ba517b77a2e5258263bdfdaa480f758"},{"fixed":"1d62f0f2bc7edb12ed09f71203df0e47fa4efca4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98831.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"6.12.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98831.json"}}],"schema_version":"1.9.0"}