CVE-2026-98831

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

Published Oct 18, 2026 CVSS 3.1 · 2.3 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, the overlay subsystem failed to correctly clean up fragment references when a changeset initialization aborted partway. Because the count of initialized fragments was only stored on full success, the cleanup routine bounded itself by an unused counter and left fragment references allocated. This could lead to memory leaks or kernel instability if an attacker could force such a failure, potentially causing a denial of service. The fix ensures the running count is stored on the error path so cleanup releases any fragments that were successfully set up before the error. The issue is related to improper resource release.

Affected Systems

Any Linux kernel that includes the "of/overlay" driver is potentially affected. The vendor list notes Linux:Linux, and no specific version identifiers are provided, so the vulnerability applies to kernel releases containing the overlay changeset code prior to the described patch.

Risk and Exploitability

With a CVSS score of 2.3 the vulnerability is low severity. The EPSS score remains below 1% and it is not listed in CISA KEV. The defect causes leaked fragment references when changeset initialization fails, which could lead to a memory leak and kernel instability if an attacker repeatedly triggers failure. Although the impact is not catastrophic, the kernel remains a critical component; patching promptly mitigates the risk of denial of service in environments using overlay mounts. The issue is associated with CWE-772.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes the fixed overlay changeset logic or apply the vendor‑issued patch that records the fragment count on error paths.
  • Re‑compile and install the patched kernel, ensuring that the new kernel image is booted.
  • Validate that the overlay subsystem no longer leaks fragment references by exercising a controlled changeset failure and checking system logs or memory usage for cleanup failures.
  • If a newer stable kernel is available, upgrade to that release, as it will contain the fix and additional kernel hardening improvements.

Generated by OpenCVE AI on October 24, 2026 at 03:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-2 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9168-4 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-682
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 2.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-682
Type Values Removed Values Added
Description 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.
Title of/overlay: don't leak fragment references when changeset init fails
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:40 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 30, 2026, 1:21 PM
Severity
Low
Public date
Oct 18, 2026, 12:00 AM