{"id":"CVE-2026-98831","published":"2026-10-18T16:17:37.347","lastModified":"2026-10-19T10:19:47.140","description":"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->count 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->count, 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->fragments\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.","cvssScore":null,"cvssSeverity":null,"cvssVector":null,"cwes":[],"vendors":[],"products":[],"references":[{"url":"https://git.kernel.org/stable/c/1d62f0f2bc7edb12ed09f71203df0e47fa4efca4","tags":[]},{"url":"https://git.kernel.org/stable/c/3a23fb158ba517b77a2e5258263bdfdaa480f758","tags":[]},{"url":"https://git.kernel.org/stable/c/7a46f1917b320cc8762183b802301da02a191b6a","tags":[]},{"url":"https://git.kernel.org/stable/c/894573e2fdaeb1b15030b7eebc22615edf28a6cd","tags":[]}],"exploitRefs":[],"hasPoc":false,"ai":null}