Skip to main content

Linux Kernel EUVDEUVD-2026-32786

| CVE-2026-46159 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-05-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-8m37-fqxx-cfwj
4.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-priv shell access
  2. Delivery
    Mount or access existing btrfs volume
  3. Exploit
    Call BTRFS_IOC_SPACE_INFO ioctl (first pass counts slots, releases lock)
  4. Execution
    Race concurrent block group removal during lock-release window
  5. Persist
    Second ioctl pass fills fewer entries than alloc_size
  6. Impact
    copy_to_user leaks uninitialized kmalloc heap bytes to userspace

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires: (1) local system access with at least low-privilege user credentials (CVSS PR:L confirmed); (2) a btrfs filesystem must be mounted and accessible to the attacking user - systems using only ext4, xfs, or other non-btrfs filesystems are not affected; (3) the attacker must successfully win a race condition between two passes of the ioctl (CVSS AC:H), which requires either concurrent block group removal activity or the ability to trigger it; (4) the attacker must be able to call the BTRFS_IOC_SPACE_INFO ioctl against the mounted volume. Limiting factors: the high attack complexity (AC:H) means the race may require multiple attempts and precise timing; the attack is local-only (AV:L), eliminating remote exploitation; block group removal must occur within the narrow window between the two ioctl passes. Systems where untrusted local users cannot access btrfs mounts are not at practical risk.

Impact

Real-world risk is low to moderate for specifically targeted environments running btrfs. EPSS is 0.02% at the 5th percentile, confirming very low observed exploitation probability across the internet. This is not in the CISA KEV catalog and no public exploit code has been identified. CVSS scores this at 4.7 (Medium) with AV:L/AC:H/PR:L/UI:N - local, high complexity, low privileges - which aligns with the attack requiring a local user, a btrfs filesystem, and successful timing of a race condition. CRITICAL DISCREPANCY: The CVSS vector records C:N/I:N/A:H (no confidentiality impact, high availability impact), but the CVE description, title, and ENISA tags all classify this explicitly as an information disclosure vulnerability leaking uninitialized kernel heap data. The C:N and A:H scores appear to be a CVSS scoring error - security teams should treat the actual confidentiality impact as the primary concern, not availability. Defenders should prioritize patching on multi-tenant systems or any environment where local users should not have read access to kernel heap memory contents.

Exploit ScenarioDerived

A local user with standard filesystem permissions on a btrfs-mounted volume calls btrfs_ioctl_space_info() while concurrently removing block groups (or timing the call to coincide with automated scrub/balance operations that remove groups). The race wins when groups_sem is released between the two ioctl passes, causing copy_to_user() to transmit trailing uninitialized kmalloc heap bytes - potentially containing sensitive kernel pointers, credentials, or other sensitive data from prior allocations - back to the calling process. No public exploit code exists, but the race condition is well-understood and the trigger mechanism (concurrent ioctl + block group removal) is deterministic given sufficient attempts on a busy btrfs volume.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 09, 2026

Kernel heap memory disclosure in the Linux btrfs subsystem allows a low-privileged local user to read uninitialized kmalloc heap bytes from kernel memory via a TOCTOU race in the btrfs_ioctl_space_info() code path. Affected systems are those running btrfs filesystems on kernel versions dating back to 2.6.34; the race window opens when groups_sem is released between the slot-counting and buffer-filling passes of the ioctl, and concurrent block group removal shrinks the actual entry count below the allocated buffer size, causing copy_to_user() to copy trailing uninitialized heap data into userspace. No public exploit has been identified at time of analysis and EPSS exploitation probability is extremely low (0.02%), but patched stable releases are available.

RemediationAI

The primary fix is to upgrade to a patched Linux kernel release: 6.6.140 or later for the 6.6.x LTS branch, 6.12.90 or later for the 6.12.x branch, 7.0.7 or later for the 7.0.x branch, 6.18.32 or later for the 6.18.x branch, or 7.1-rc1 or later for mainline - per EUVD-2026-32786 and the upstream commits at https://git.kernel.org/stable/c/f5ee467b56764964027c361641f64953fc0f8f9a and related links. Distributions (Debian, Ubuntu, RHEL, SUSE) should be monitored for backported kernel updates incorporating these commits. As a compensating control where patching is not immediately feasible, restricting the use of btrfs filesystems to trusted users only limits exploitation surface, since the attack requires a local user capable of issuing ioctl calls against a btrfs-mounted volume; note that this does not eliminate the vulnerability but removes unprivileged access. Disabling btrfs entirely (if the system uses ext4/xfs instead) eliminates the attack path entirely with no functional trade-off for non-btrfs workloads. No workaround exists that preserves full btrfs functionality while blocking the race without the kernel patch.

Affected VersionsENISA

Linux 7fde62bffb576d384ea49a3aed3403d5609ee5bc <f5ee467b56764964027c361641f64953fc0f8f9a
Linux patch: 7.0.7
Linux 7fde62bffb576d384ea49a3aed3403d5609ee5bc <d09d67d5de577cedae3de9497dff217e0ac8b641
Linux patch: 6.12.90
Linux 7fde62bffb576d384ea49a3aed3403d5609ee5bc <973e57c726c1f8e77259d1c8e519519f1e9aea77
Linux 7fde62bffb576d384ea49a3aed3403d5609ee5bc <5d12e0ab009ade48c1bff9324fd9bea2c773d088
Linux patch: 6.6.140
Linux patch: 6.18.32
Linux 2.6.34
Linux patch: 7.1-rc1
Linux patch: 0
Linux 7fde62bffb576d384ea49a3aed3403d5609ee5bc <4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the btrfs filesystem driver's btrfs_ioctl_space_info() function in the Linux kernel (CWE-367: Time-Of-Check Time-Of-Use Race Condition). The ioctl operates in two passes: first it acquires groups_sem (an rwlock), counts RAID-typed block group entries to compute alloc_size, then releases the lock before re-acquiring it for the second pass that fills the kmalloc'd buffer. The release of groups_sem between passes creates a concurrent-modification window. If another thread removes a block group during this window, the second pass writes fewer entries than alloc_size bytes accounts for, leaving trailing kmalloc bytes uninitialized. The subsequent copy_to_user() call then transmits the full alloc_size - including those uninitialized trailing bytes - to userspace, constituting a heap information leak. The fix patches the code to copy only the actually-filled total_spaces entries and switches the allocation to kzalloc to zero-initialize memory and prevent future similar leaks. Affected CPE: cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* from version 2.6.34 onward.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Jun 09, 2026 - 21:07 NVD
4.7 (MEDIUM)
Patch available
May 28, 2026 - 12:01 EUVD
CVE Published
May 28, 2026 - 10:16 nvd
UNKNOWN (no severity yet)

DescriptionNVD

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

btrfs: fix btrfs_ioctl_space_info() slot_count TOCTOU which can lead to info-leak

btrfs_ioctl_space_info() has a TOCTOU race between two passes over the block group RAID type lists. The first pass counts entries to determine the allocation size, then the second pass fills the buffer. The groups_sem rwlock is released between passes, allowing concurrent block group removal to reduce the entry count.

When the second pass fills fewer entries than the first pass counted, copy_to_user() copies the full alloc_size bytes including trailing uninitialized kmalloc bytes to userspace.

Fix by copying only total_spaces entries (the actually-filled count from the second pass) instead of alloc_size bytes, and switch to kzalloc so any future copy size mismatch cannot leak heap data.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy