PT-2024-32240 · Linux+6 · Linux Kernel+6

Published

2024-07-11

·

Updated

2026-02-21

·

CVE-2024-46840

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the handling of refs == 0 in snapshot delete in the btrfs file system. In the reada function, a BUG ON(refs == 0) check could return a transient incorrect answer because it is not holding a lock on the extent leaf. Similarly, in walk down proc, the same check could happen due to extent tree corruption, and it has been changed to return -EUCLEAN. The do walk down() function correctly handles this case but returns -EIO, which is less appropriate than -EUCLEAN. The walk up proc function also had the same BUG ON(refs == 0) check and has been converted to proper error handling. The error message has been adjusted to provide more useful information.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Locking

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2024-12535
ALT-PU-2024-12541
ALT-PU-2024-13979
ALT-PU-2024-14046
ALT-PU-2024-15824
BDU:2025-01654
CVE-2024-46840
DLA-3912-1
DLA-4008-1
DSA-5782-1
OESA-2024-2255
OESA-2024-2256
OESA-2024-2257
OESA-2024-2258
OESA-2024-2296
OPENSUSE-SU-2024_3983-1
OPENSUSE-SU-2024_3984-1
OPENSUSE-SU-2024_3985-1
OPENSUSE-SU-2024_3986-1
SUSE-SU-2024:3983-1
SUSE-SU-2024:3984-1
SUSE-SU-2024:3985-1
SUSE-SU-2024:3986-1
SUSE-SU-2024:4100-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4364-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:0034-1
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
USN-7088-1
USN-7088-2
USN-7088-3
USN-7088-4
USN-7088-5
USN-7100-1
USN-7100-2
USN-7119-1
USN-7123-1
USN-7144-1
USN-7154-1
USN-7154-2
USN-7155-1
USN-7156-1
USN-7194-1
USN-7196-1

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu