4.7

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

Modified
AliasesUBUNTU-CVE-2026-46159DEBIAN-CVE-2026-46159
Published 28-05-2026Last modified 06-11-2026

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.

Priority
Routine

Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.1 (NVD)
EPSS score
0.10%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 54 · Related 51

Timeline

  1. 28-05-2026
    PublishedVulnerability first disclosed.
  2. 06-11-2026
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

47 links
Show all 47 references