Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-46159
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-28 May, 2026 | 09:36
Updated At-28 May, 2026 | 09:36
Rejected At-
▼CVE Numbering Authority (CNA)
btrfs: fix btrfs_ioctl_space_info() slot_count TOCTOU which can lead to info-leak

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.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • fs/btrfs/ioctl.c
Default Status
unaffected
Versions
Affected
  • From 7fde62bffb576d384ea49a3aed3403d5609ee5bc before f5ee467b56764964027c361641f64953fc0f8f9a (git)
  • From 7fde62bffb576d384ea49a3aed3403d5609ee5bc before 4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3 (git)
  • From 7fde62bffb576d384ea49a3aed3403d5609ee5bc before 5d12e0ab009ade48c1bff9324fd9bea2c773d088 (git)
  • From 7fde62bffb576d384ea49a3aed3403d5609ee5bc before d09d67d5de577cedae3de9497dff217e0ac8b641 (git)
  • From 7fde62bffb576d384ea49a3aed3403d5609ee5bc before 973e57c726c1f8e77259d1c8e519519f1e9aea77 (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • fs/btrfs/ioctl.c
Default Status
affected
Versions
Affected
  • 2.6.34
Unaffected
  • From 0 before 2.6.34 (semver)
  • From 6.6.140 through 6.6.* (semver)
  • From 6.12.90 through 6.12.* (semver)
  • From 6.18.32 through 6.18.* (semver)
  • From 7.0.7 through 7.0.* (semver)
  • From 7.1-rc1 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/f5ee467b56764964027c361641f64953fc0f8f9a
N/A
https://git.kernel.org/stable/c/4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3
N/A
https://git.kernel.org/stable/c/5d12e0ab009ade48c1bff9324fd9bea2c773d088
N/A
https://git.kernel.org/stable/c/d09d67d5de577cedae3de9497dff217e0ac8b641
N/A
https://git.kernel.org/stable/c/973e57c726c1f8e77259d1c8e519519f1e9aea77
N/A
Hyperlink: https://git.kernel.org/stable/c/f5ee467b56764964027c361641f64953fc0f8f9a
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/4fdc6ee0802121d9cd96b8d085e589f51e5a4ec3
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/5d12e0ab009ade48c1bff9324fd9bea2c773d088
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/d09d67d5de577cedae3de9497dff217e0ac8b641
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/973e57c726c1f8e77259d1c8e519519f1e9aea77
Resource: N/A
Details not found