Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-46159 Details

Description

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition[email protected]

Affected Products

ProductVersions
linux linux kernel
>= 2.6.34.1, < 6.6.140
>= 6.7, < 6.12.90
>= 6.13, < 6.18.32
>= 6.19, < 7.0.7
2.6.34 -

CPE

  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.34:rc7:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

4 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-46159
NVD Published Date:
May 28, 2026
NVD Last Modified:
Jun 19, 2026
Source:
kernel.org