CVE-2026-98831 PUBLISHED

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

Assigner: Linux
Reserved: 25.09.2026 Published: 18.10.2026 Updated: 18.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 to 894573e2fdaeb1b15030b7eebc22615edf28a6cd (excl.)
  • affected from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 to 7a46f1917b320cc8762183b802301da02a191b6a (excl.)
  • affected from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 to 3a23fb158ba517b77a2e5258263bdfdaa480f758 (excl.)
  • affected from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 to 1d62f0f2bc7edb12ed09f71203df0e47fa4efca4 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.15 is affected
  • unaffected from 0 to 4.15 (excl.)
  • unaffected from 6.12.113 to 6.12.* (incl.)
  • unaffected from 6.18.56 to 6.18.* (incl.)
  • unaffected from 7.2.10 to 7.2.* (incl.)
  • unaffected from 7.3-rc6 to * (incl.)

References