Skip to main content
Vulnerability Database/CVE-2024-50143

CVE-2024-50143: Linux Kernel Use-After-Free Vulnerability

CVE-2024-50143 is a use-after-free flaw in the Linux Kernel's UDF filesystem that can lead to memory corruption. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-50143 Overview

CVE-2024-50143 is an uninitialized memory use vulnerability in the Universal Disk Format (UDF) file system implementation of the Linux kernel. The flaw resides in the udf_current_aext function, where a missing overflow check when computing the alen value leads to later uninitialized value use in udf_get_fileshortad. The issue was identified through KMSAN (Kernel Memory Sanitizer) instrumentation and reproduced by the syzkaller fuzzer. Local attackers with low privileges can trigger the condition by mounting or interacting with a crafted UDF file system image, impacting confidentiality, integrity, and availability on the affected host.

Critical Impact

Local, low-privileged attackers can exploit uninitialized kernel memory handling in the UDF driver to cause memory disclosure, kernel instability, or further exploitation chains on affected Linux systems.

Affected Products

  • Linux Kernel (multiple stable branches prior to the fix commits)
  • Linux Kernel 6.12-rc1
  • Debian LTS distributions shipping affected kernel versions

Discovery Timeline

  • 2024-11-07 - CVE-2024-50143 published to the National Vulnerability Database (NVD)
  • 2025-01 - Debian LTS security announcement released
  • 2026-08-04 - Last updated in NVD database

Technical Details for CVE-2024-50143

Vulnerability Analysis

The vulnerability is categorized under [CWE-908: Use of Uninitialized Resource]. It affects the UDF file system driver, which parses on-disk structures when a UDF-formatted volume is mounted or accessed. During allocation extent (aext) processing, the udf_current_aext function computes an allocation length value named alen without validating for integer overflow. When a crafted or corrupted UDF image supplies values that overflow this computation, downstream code in udf_get_fileshortad reads kernel memory that was never properly initialized.

The attack surface is local because triggering the code path requires mounting a UDF file system or interacting with one that has already been mounted. On systems where unprivileged users can attach removable media or where automatic mounting is enabled, the barrier to exploitation is reduced. Successful exploitation can leak kernel memory contents, destabilize the kernel, or serve as a primitive in a larger exploitation chain targeting privilege escalation.

Root Cause

The root cause is the absence of an overflow check when computing alen in udf_current_aext. The function trusts length fields derived from on-disk UDF metadata without bounding them against the expected buffer size. When arithmetic overflows, the resulting length is used as an index or size parameter, causing udf_get_fileshortad to read uninitialized stack or heap memory. KMSAN detected the uninitialized read during syzkaller fuzzing, as documented in the syzbot report.

Attack Vector

Exploitation requires local access and low privileges. An attacker crafts a malicious UDF file system image and induces the kernel to parse it, for example by inserting removable media, loop-mounting an image, or leveraging automount daemons. The vulnerability manifests when the kernel processes allocation descriptors in the crafted volume. Public reproducers are available through the syzkaller infrastructure linked in the upstream advisory, though no weaponized exploit has been published and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog.

See the Linux kernel patch commit for the specific code paths and the overflow mitigation applied upstream.

Detection Methods for CVE-2024-50143

Indicators of Compromise

  • Unexpected mount events for UDF file systems on hosts where UDF media is not routinely used.
  • Kernel log entries referencing udf_current_aext, udf_get_fileshortad, or KMSAN warnings on UDF code paths.
  • Presence of unknown ISO or UDF image files staged in user-writable directories prior to mount operations.

Detection Strategies

  • Monitor syslog and dmesg for kernel oops, warnings, or sanitizer reports originating in the fs/udf/ subsystem.
  • Audit mount syscalls targeting udf file systems using auditd rules or eBPF-based telemetry collectors.
  • Correlate removable media insertion events with subsequent UDF mount activity to flag anomalous workflows.

Monitoring Recommendations

  • Track kernel version and patch level across the Linux fleet to confirm coverage of the stable-tree fix commits.
  • Alert on execution of mount -t udf or losetup invocations by non-administrative users.
  • Review automount and udev configurations to ensure untrusted volumes do not trigger implicit UDF parsing.

How to Mitigate CVE-2024-50143

Immediate Actions Required

  • Apply the stable kernel updates from your distribution containing the fix commits (1ac49babc952, 264db9d666ad, 417bd613bdbe, 4fc0d8660e39, 5eb76fb98b33, 72e445df65a0, e52e0b92ed31).
  • Debian LTS users should install the kernel package published in the Debian LTS Security Announcement.
  • Restrict mounting of UDF file systems to administrative users where feasible.
  • Disable automount of removable media on servers that do not require it.

Patch Information

The fix adds an overflow check when computing alen in udf_current_aext, preventing the uninitialized value from reaching udf_get_fileshortad. The patch has been backported across multiple stable branches. Review the full set of commits in the upstream patch index and distribution advisories to confirm the correct version for your kernel branch.

Workarounds

  • Blacklist the udf kernel module on systems that do not need UDF support using /etc/modprobe.d/.
  • Configure udev and desktop environments to prevent automatic mounting of UDF volumes from untrusted media.
  • Enforce least privilege by removing user access to mount capabilities and loop device creation.
bash
# Blacklist the UDF module to prevent automatic loading
echo "blacklist udf" | sudo tee /etc/modprobe.d/blacklist-udf.conf
sudo depmod -a

# Verify the current kernel version against patched releases
uname -r

# Confirm the module is not currently loaded
lsmod | grep -i udf

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.