PT-2024-8531 · Linux+4 · Linux Kernel+4

Zhihao Cheng

·

Published

2024-10-29

·

Updated

2026-05-26

·

CVE-2024-50217

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to a use-after-free vulnerability in the btrfs file system. It can be triggered when mounting btrfs from two images with the same fsid and different dev uuids in a specific order. The vulnerability affects the device->bdev file variable in the btrfs free extra devids() function. This can lead to unauthorized access and modification of sensitive information.
The exploitation of this vulnerability may allow an attacker to impact the confidentiality, integrity, and availability of protected information.
Recommendations To resolve the issue, set device->bdev file as NULL after closing the btrfs device in the btrfs close one device() function. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2024-17211
ALT-PU-2025-12647
AZL-53057
AZL-53096
BDU:2024-10097
CVE-2024-50217
ECHO-945A-F7B5-4637
OESA-2024-2492
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
USN-7276-1
USN-7277-1
USN-7310-1

Affected Products

Alt Linux
Debian
Linuxmint
Linux Kernel
Ubuntu