PT-2024-29751 · Linux+2 · Linux Kernel+2
Syzbot
·
Published
2024-07-02
·
Updated
2024-12-12
·
CVE-2024-42111
CVSS v3.1
6.3
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.10.0-rc2-syzkaller-00010-g2ab795141095
Description
A vulnerability in the Linux kernel has been resolved, related to the btrfs file system. The issue occurs when the
btrfs qgroup inherit structure is passed to the btrfs qgroup inherit function while the qgroup is disabled, causing the basic checks like num ref copies/num excl copies and the structure size checks to be skipped. This can lead to a slab-out-of-bounds error when the qgroup is re-enabled and the btrfs qgroup inherit function is called with an incorrect structure.The estimated number of potentially affected devices worldwide is not specified. There is no information about real-world incidents where this issue was exploited.
Technical details about exploitation include:
- The
btrfs qgroup inheritfunction is vulnerable to a slab-out-of-bounds error. - The
create pending snapshot,create pending snapshots,btrfs commit transaction,create snapshot,btrfs mksubvol,btrfs mksnapshot,btrfs ioctl snap create,btrfs ioctl snap create v2, andbtrfs ioctlfunctions are involved in the call trace. - The
btrfs qgroup check inheritfunction is modified to only skip the source qgroup checks, allowing for the rejection of invalidbtrfs qgroup inheritstructures.
Recommendations
To resolve the issue, update the Linux kernel to a version that includes the fix for the
btrfs qgroup inherit structure checks. Specifically, the btrfs qgroup check inherit function should be modified to only skip the source qgroup checks, ensuring that invalid btrfs qgroup inherit structures are rejected.At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Out of bounds Read
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Linux Kernel
Ubuntu