CVE-2026-46159: btrfs: fix btrfs_ioctl_space_info() slot_count TOCTOU which can lead to info-leak
Vulnerability summary
CVE-2026-46159 is a medium (CVSS 4.7) vulnerability in linux. EPSS estimates a 0.10% chance of exploitation in the next 30 days, higher than 0.8% of scored vulnerabilities.
Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 54 · Related 51Timeline
- 28-05-2026PublishedVulnerability first disclosed.
- 06-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.10%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.10% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu167 products
- linuxAll versions (No fix recorded) | < 5.15.0-198.208 | < 6.8.0-136.136 | < 7.0.0-28.28
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1117.124 | < 6.8.0-1061.64 | < 7.0.0-1009.9
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < f407aad350bdea4db300c47433573b7a41630d33 | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < d8224b1be6627c6c3b204bfb264508d27c65ac44 | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < d69a4a6813fdba7c4cc3695a7e843842b240790d | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < f5ee467b56764964027c361641f64953fc0f8f9a | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < 4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3 | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < 5d12e0ab009ade48c1bff9324fd9bea2c773d088 | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < d09d67d5de577cedae3de9497dff217e0ac8b641 | ≥ 7fde62bffb576d384ea49a3aed3403d5609ee5bc, < 973e57c726c1f8e77259d1c8e519519f1e9aea77 | 2.6.34
- 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 | 2.6.34:rc2 | 2.6.34:rc3 | 2.6.34:rc4 | 2.6.34:rc5 | 2.6.34:rc6 | 2.6.34:rc7
Debian1 product
- linux< 6.1.176-1 | < 6.12.90-1 | < 7.0.7-1
3 vendors · 170 products