CVE-2026-46159
btrfs: fix btrfs_ioctl_space_info() slot_count TOCTOU which can lead to info-leak
Check your servers for CVE-2026-46159
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-46159 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 0.65% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before f407aad350bdea4db300c47433573b7a41630d33 affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before d8224b1be6627c6c3b204bfb264508d27c65ac44 affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before d69a4a6813fdba7c4cc3695a7e843842b240790d affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before f5ee467b56764964027c361641f64953fc0f8f9a affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before 4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3 affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before 5d12e0ab009ade48c1bff9324fd9bea2c773d088 affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before d09d67d5de577cedae3de9497dff217e0ac8b641 affected from 7fde62bffb576d384ea49a3aed3403d5609ee5bc, before 973e57c726c1f8e77259d1c8e519519f1e9aea77
Other versions: unaffected
|
| Linux |
affected 2.6.34 unaffected before 2.6.34 unaffected from 5.10.259 up to and including 5.10.* unaffected from 5.15.210 up to and including 5.15.* unaffected from 6.1.176 up to and including 6.1.* unaffected from 6.6.140 up to and including 6.6.* unaffected from 6.12.90 up to and including 6.12.* unaffected from 6.18.32 up to and including 6.18.* unaffected from 7.0.7 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-46159 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-46159
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-46159
trivy image --scanners vuln IMAGE | grep CVE-2026-46159
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f407aad350bdea4db300c47433573b7a41630d33 git.kernel.org
- https://git.kernel.org/stable/c/d8224b1be6627c6c3b204bfb264508d27c65ac44 git.kernel.org
- https://git.kernel.org/stable/c/d69a4a6813fdba7c4cc3695a7e843842b240790d git.kernel.org
- https://git.kernel.org/stable/c/f5ee467b56764964027c361641f64953fc0f8f9a git.kernel.org
- https://git.kernel.org/stable/c/4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3 git.kernel.org
- https://git.kernel.org/stable/c/5d12e0ab009ade48c1bff9324fd9bea2c773d088 git.kernel.org
- https://git.kernel.org/stable/c/d09d67d5de577cedae3de9497dff217e0ac8b641 git.kernel.org
- https://git.kernel.org/stable/c/973e57c726c1f8e77259d1c8e519519f1e9aea77 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2026-46159 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse