CVE-2024-57940

5.5 MEDIUM

📋 TL;DR

A denial-of-service vulnerability in the Linux kernel's exFAT filesystem driver where a corrupted filesystem with a self-referencing cluster chain causes an infinite loop in directory reading. This affects any Linux system using the exFAT filesystem driver. The infinite loop causes system hangs by preventing lock release.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions with vulnerable exFAT driver (specific commit ranges in references)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems using exFAT filesystem. Requires mounting a corrupted exFAT volume.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system hang requiring hard reboot, with potential data loss or corruption from interrupted operations.

🟠

Likely Case

Local denial-of-service affecting filesystem operations on corrupted exFAT volumes, causing system instability.

🟢

If Mitigated

Limited impact to specific corrupted filesystem mounts with no privilege escalation or data exfiltration.

🌐 Internet-Facing: LOW - Requires local filesystem access or mounting of malicious exFAT volumes.
🏢 Internal Only: MEDIUM - Internal users with filesystem access could trigger denial-of-service.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires ability to create or access corrupted exFAT filesystem. No known public exploits.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions with commits 28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17 or later

Vendor Advisory: https://git.kernel.org/stable/c/28c21f0ac5293a4bf19b3e0e32005d6dd31a6c17

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version. 2. Reboot system. 3. Verify kernel version with 'uname -r'.

🔧 Temporary Workarounds

Avoid exFAT mounting

linux

Prevent mounting of untrusted exFAT filesystems

# Remove exFAT module: rmmod exfat
# Blacklist exFAT: echo 'blacklist exfat' > /etc/modprobe.d/blacklist-exfat.conf

🧯 If You Can't Patch

  • Restrict filesystem mounting to trusted sources only
  • Implement monitoring for system hangs related to filesystem operations

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if exFAT module is loaded: 'lsmod | grep exfat' and 'uname -r'

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is patched and test with known corrupted exFAT volume

📡 Detection & Monitoring

Log Indicators:

  • System hangs during filesystem operations
  • Kernel lock warnings
  • High CPU usage by kernel threads

Network Indicators:

  • None - local filesystem vulnerability

SIEM Query:

Search for: 'kernel: exfat_readdir' OR 'system hang' OR 'lock contention'

🔗 References

📤 Share & Export