of/overlay: don't leak fragment references when changeset init fails

Summary

CVECVE-2026-98831
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-18 16:17:37 UTC
Updated2026-10-21 13:21:48 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 61b4de4e0b384f4a22c55c3bada604da49cec4e1 702b5db6e7b3865be70675d57d6fd7dde80d02b6 git Not specified
CNA Linux Linux affected 61b4de4e0b384f4a22c55c3bada604da49cec4e1 894573e2fdaeb1b15030b7eebc22615edf28a6cd git Not specified
CNA Linux Linux affected 61b4de4e0b384f4a22c55c3bada604da49cec4e1 7a46f1917b320cc8762183b802301da02a191b6a git Not specified
CNA Linux Linux affected 61b4de4e0b384f4a22c55c3bada604da49cec4e1 3a23fb158ba517b77a2e5258263bdfdaa480f758 git Not specified
CNA Linux Linux affected 61b4de4e0b384f4a22c55c3bada604da49cec4e1 1d62f0f2bc7edb12ed09f71203df0e47fa4efca4 git Not specified
CNA Linux Linux affected 4.15 Not specified
CNA Linux Linux unaffected 4.15 semver Not specified
CNA Linux Linux unaffected 6.6.160 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.113 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.56 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.10 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/7a46f1917b320cc8762183b802301da02a191b6a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/894573e2fdaeb1b15030b7eebc22615edf28a6cd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/702b5db6e7b3865be70675d57d6fd7dde80d02b6 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3a23fb158ba517b77a2e5258263bdfdaa480f758 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1d62f0f2bc7edb12ed09f71203df0e47fa4efca4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report