CVE-2026-43393

btrfs: fix chunk map leak in btrfs_map_block() after btrfs_chunk_map_num_copies()

Published May 8, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix chunk map leak in btrfs_map_block() after btrfs_chunk_map_num_copies()

Fix a chunk map leak in btrfs_map_block(): if we return early with -EINVAL,
we're not freeing the chunk map that we've just looked up.

Analysis

AI-generated

Technical impact

A flaw in the Linux kernel’s btrfs filesystem driver causes a memory leak: when btrfs_map_block() exits early with the error code -EINVAL, the chunk map it just retrieved is not released. The leak accumulates kernel memory over time, which can eventually exhaust available memory and result in a denial‑of‑service condition for the entire system. The weakness identified is a failure to free a resource (CWE‑401 and CWE‑772).

Affected Systems

Any Linux kernel running the unpatched btrfs filesystem code is affected. The advisory lists no particular version numbers; the fix resides in the commit that replaces the buggy logic. Distributions or custom builds that have not incorporated that commit remain vulnerable until they upgrade to a kernel including the patch.

Risk and Exploitability

The flaw is local to the kernel and would require the attacker to be able to repeatedly trigger the failing path of btrfs_map_block(), such as by mounting or accessing Btrfs volumes. The CVSS score of 5.5 indicates medium severity. The EPSS score is < 1% and the vulnerability is not in the CISA KEV catalog. The likely attack vector is inferred as local code execution that can invoke the vulnerable filesystem operation. There are no public exploits known, but sustained use of the flaw could lead to resource exhaustion and service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply updated Linux kernel that contains the btrfs_map_block leak fix (e.g., the commit identified in the advisory).
  • Restrict privileged or potentially untrusted processes from performing Btrfs operations that could exercise the leaking code path.
  • Monitor system memory consumption and Btrfs‑related errors, and consider temporarily migrating critical workloads to a different filesystem if resource exhaustion becomes apparent.

Generated by OpenCVE AI on May 26, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-401
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-401
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

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: fix chunk map leak in btrfs_map_block() after btrfs_chunk_map_num_copies() Fix a chunk map leak in btrfs_map_block(): if we return early with -EINVAL, we're not freeing the chunk map that we've just looked up.
Title btrfs: fix chunk map leak in btrfs_map_block() after btrfs_chunk_map_num_copies()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
May 11, 2026, 10:23 PM
Reserved
May 1, 2026, 2:12 PM
Status
Analyzed
Published
May 8, 2026, 3:16 PM
Modified
Nov 11, 2026, 8:10 PM
Severity
Low
Public date
May 8, 2026, 12:00 AM