CVE-2024-50217: btrfs: fix use-after-free of block device file in __btrfs_free_extra_devids()
btrfs: fix use-after-free of block device file in btrfsfreeextradevids()
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.22-1Fixed in 6.12.25-1 - Configuration
Apply the btrfs fix for CVE-2024-50217: in btrfs_close_one_device() set device->bdev_file to NULL after closing the btrfs_device (i.e., after btrfs_close_bdev()).
Linux kernel btrfs device->bdev_file = NULL
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50217?
CVE-2024-50217 has a high severity rating due to potential use-after-free vulnerabilities in the Linux kernel's btrfs file system.
How do I fix CVE-2024-50217?
To fix CVE-2024-50217, update the Linux kernel to version 6.12 or later, or apply the specific patches provided by your distribution.
Which versions of the Linux kernel are affected by CVE-2024-50217?
CVE-2024-50217 affects Linux kernel versions from 4.8 up to 6.11.7, as well as specific 6.12 release candidates.
What is a use-after-free vulnerability as seen in CVE-2024-50217?
A use-after-free vulnerability allows an attacker to exploit memory management issues, potentially leading to crashes or arbitrary code execution.
Is there a public patch available for CVE-2024-50217?
Yes, patches for CVE-2024-50217 have been made available in the Linux kernel's repositories for affected versions.