CVE-2026-98831

Source
https://cve.org/CVERecord?id=CVE-2026-98831
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98831.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98831
Downstream
Published
2026-10-18T15:49:32Z
Modified
2026-10-19T02:47:31Z
Summary
of/overlay: don't leak fragment references when changeset init fails
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98831.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"