Description
In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix the possible bioc_list memory leak during error

There are two possible ways to leak bioc memory on
btrfs_ordered_extent::bioc_list:

- An error occurred for btrfs_insert_one_raid_extent()
Then the function btrfs_insert_raid_extent() immediately return
without freeing any bioc in the bioc_list.

- An ordered extent hit an IO error
In that case the ordered extent will have BTRFS_ORDERED_IOERR set, and
skip the call on btrfs_insert_raid_extent() completely.

Fix the problem by:

- Introduce a new helper, btrfs_cleanup_ordered_bioc_list()
Which will remove all bioc from the bioc_list, and release the bioc.

- Call the above helper for btrfs_insert_raid_extent()
So that the cleanup helper is always called no matter what.

- Call the above helper for btrfs_finish_one_ordered()
This is called just before the final release on the ordered extent.

This was reported by Sashiko when reviewing another patch.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory Leak leading to Potential DoS
Action: Immediate Patch
AI Analysis

Impact

The vulnerability creates a memory leak in BTRFS when an error occurs during raid extent insertion or when an ordered extent encounters an I/O error. Unreleased entries in the bioc_list accumulate, draining kernel memory over time and causing system instability or failure. This classic memory‑leak weakness can lead to a denial of service by exhausting available memory and disrupting normal kernel operation.

Affected Systems

All Linux systems that employ a kernel containing the BTRFS filesystem and that include the unpatched btrfs_insert_one_raid_extent or related ordered extent implementation are vulnerable. Version information is not explicitly provided in the advisory; the flaw existed in all releases prior to the application of the btrfs_cleanup_ordered_bioc_list patch.

Risk and Exploitability

The CVSS score of 5.5 indicates a moderate severity. The EPSS score of less than 1% and the absence from the CISA KEV catalog imply that exploitation is unlikely at present, but it is not impossible. The memory‑leak path is confined to kernel space and will gradually consume kernel memory until a reboot or kernel panic occurs, potentially resulting in a denial of service. While the description does not explicitly state the required privileges, it is inferred that an attacker would need to induce an error condition in BTRFS operations—most likely a local user interacting with the filesystem or a privileged process that can influence BTRFS I/O. This inference is based on the fact that the leak is triggered by BTRFS insert or I/O error paths, which normally require local execution rights.

Generated by OpenCVE AI on October 1, 2026 at 05:53 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the btrfs_cleanup_ordered_bioc_list patch.
  • If an immediate kernel update cannot be performed, unmount or disable BTRFS volumes to eliminate the erroneous code path that triggers the leak.
  • Configure the system to automatically apply kernel updates via the distribution's package manager to ensure timely patch deployment.

Generated by OpenCVE AI on October 1, 2026 at 05:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Tue, 06 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low


Fri, 25 Sep 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: fix the possible bioc_list memory leak during error There are two possible ways to leak bioc memory on btrfs_ordered_extent::bioc_list: - An error occurred for btrfs_insert_one_raid_extent() Then the function btrfs_insert_raid_extent() immediately return without freeing any bioc in the bioc_list. - An ordered extent hit an IO error In that case the ordered extent will have BTRFS_ORDERED_IOERR set, and skip the call on btrfs_insert_raid_extent() completely. Fix the problem by: - Introduce a new helper, btrfs_cleanup_ordered_bioc_list() Which will remove all bioc from the bioc_list, and release the bioc. - Call the above helper for btrfs_insert_raid_extent() So that the cleanup helper is always called no matter what. - Call the above helper for btrfs_finish_one_ordered() This is called just before the final release on the ordered extent. This was reported by Sashiko when reviewing another patch.
Title btrfs: fix the possible bioc_list memory leak during error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-03T11:02:10.445Z

Reserved: 2026-09-25T10:19:56.075Z

Link: CVE-2026-98082

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-09-25T11:17:37.730

Modified: 2026-10-06T15:01:24.780

Link: CVE-2026-98082

cve-icon Redhat

Severity : Low

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98082 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T06:00:13Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime