CVE-2026-46159
Last modified
CVE-2026-46159 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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. EPSS estimates a 0.09% chance of exploitation in the next 30 days.
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.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 2.6.34.1, < 6.6.140 |
| Linux | Linux Kernel | >= 6.7, < 6.12.90 |
| Linux | Linux Kernel | >= 6.13, < 6.18.32 |
| Linux | Linux Kernel | >= 6.19, < 7.0.7 |
| Linux | Linux Kernel | 2.6.34 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-46159?
How severe is CVE-2026-46159?
How do I fix CVE-2026-46159?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-46153In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-46154In the Linux kernel, the following vulnerability has been re…7
- CVE-2026-46155In the Linux kernel, the following vulnerability has been re…9.1
- CVE-2026-46156In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-46157In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-46158In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-4616A security flaw has been discovered in bolo-blog up to 2.6.4…2.4
- CVE-2026-46160In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-46161In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-46162In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-46163In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-46164In the Linux kernel, the following vulnerability has been re…7
Are you affected by CVE-2026-46159?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
