CVE-2026-46159

Medium

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.

SeverityMedium
CVSS4.7
Exploit probability—
ProductLinux Kernel
PublishedMay 28, 2026
First seenMay 28, 2026
Weakness typeCWE-367CWE-367

How to fix

Affected products

ProductAffected versionsFixed in
linux linux_kernel2.6.34.1 ≤ v < 6.6.140, 6.7 ≤ v < 6.12.90, 6.13 ≤ v < 6.18.32, 6.19 ≤ v < 7.0.7, 2.6.346.6.140, 6.12.90, 6.18.32, 7.0.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.