Skip to content
High 7.8

Use-After-Free in Linux kernel

CVE-2024-50217 First seen on SecPulse

Summary

Vulnerability in Linux kernel (CVE-2024-50217). Successful exploitation can lead to full system takeover.

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2024-50217 has been found in Linux kernel.
Successful exploitation can lead to full system takeover. CVSS score: 7.8/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "Linux kernel CVE-2024-50217" on the vendor's site.

CVE-2024-50217 (Linux kernel) — CWE-416 / CVSS v3 7.8
Attack vector: local / unauthenticated
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Use-after-free (CWE-416) exists in Linux kernel.

Affected scope

Check the vendor advisory for the affected versions of Linux kernel.

Severity

Severity: High (CVSS 7.8/10). Successful exploitation can lead to full system takeover.

How to fix

Update to the patched release per vendor advisory.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで Linux kernel を使っているサービスとバージョンを洗い出す。

  2. 2
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
LinuxKernel
≥ 4.8.0, < 6.11.7→ 6.11.7

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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)
    fput(btrfs_device_2->bdev_file)

  3. mount /dev/loop1 /mnt
    btrfs_open_devices
    btrfs_get_bdev_and_sb(&bdev_file)
    // EIO, btrfs_device_1->bdev_file is not assigned,
    // which points to a freed memory area
    btrfs_device_2->bdev_file = btrfs_get_bdev_and_sb(loop1)
    btrfs_fill_super
    open_ctree
    btrfs_free_extra_devids
    if (btrfs_device_1->bdev_file)
    fput(btrfs_device_1->bdev_file) // UAF !

Fix it by setting 'device->bdev_file' as 'NULL' after closing th…

Source: NIST National Vulnerability Database NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details