Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-50217

7.8 · HIGH
Published Nov 9, 2024 linux CWE-416 EPSS 0.28% (20th pctl)

Overview

CVE-2024-50217 is a high-severity vulnerability affecting linux linux_kernel. It was published on November 9, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix use-after-free of block device file in __btrfs_free_extra_devids()

Mounting btrfs from two images (which have the same one fsid and two

different dev_uuids) in certain executing order may trigger an UAF for

variable 'device->bdev_file' in __btrfs_free_extra_devids(). And

following are the details:

1. Attach image_1 to loop0, attach image_2 to loop1, and scan btrfs

devices by ioctl(BTRFS_IOC_SCAN_DEV):

/ btrfs_device_1 → loop0

fs_device

\ btrfs_device_2 → loop1

2. mount /dev/loop0 /mnt

btrfs_open_devices

btrfs_device_1->bdev_file = btrfs_get_bdev_and_sb(loop0)

btrfs_device_2->bdev_file = btrfs_get_bdev_and_sb(loop1)

btrfs_fill_super

open_ctree

fail: btrfs_close_devices // -ENOMEM

btrfs_close_bdev(btrfs_device_1)

fput(btrfs_device_1->bdev_file)

// btrfs_device_1->bdev_file is freed

btrfs_close_bdev(btrfs_device_2)

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.8, < 6.11.7 Affected

Frequently Asked Questions

What is CVE-2024-50217?

CVE-2024-50217 is a high-severity vulnerability affecting linux linux_kernel. It was published on November 9, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-50217?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-50217?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-50217?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-50217 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.