CVE-2024-42300
Linux Debian vulnerability analysis and mitigation

Overview

A race condition vulnerability was discovered in the Linux kernel's EROFS (Enhanced Read-Only File System) implementation, identified as CVE-2024-42300. The issue occurs in the zerofsgetgbuf() function where a task may be migrated to another CPU between zerofsgbufid() and spin_lock(&gbuf->lock) operations. This vulnerability was discovered through stress testing and affects the kernel's file system functionality (Kernel Git).

Technical details

The vulnerability stems from a race condition in the EROFS filesystem's buffer management code. When executing zerofsgetgbuf(), there is a window between calling zerofsgbufid() and acquiring the spin lock where task migration can occur, leading to potential memory corruption. The issue manifests as a kernel BUG at fs/erofs/zutil.c:58 during the execution of zerofsput_gbuf(). The vulnerability was confirmed through stress testing on Linux kernel version 6.10.0-rc7+ (Kernel Git).

Impact

When triggered, this vulnerability causes a kernel BUG condition, which results in a system crash. This can lead to denial of service conditions, particularly under heavy system load or stress conditions. The issue specifically affects systems using the EROFS filesystem and can be triggered during file operations that involve compressed data decompression (Kernel Git).

Mitigation and workarounds

The issue has been fixed by adding migratedisable() and migrateenable() calls around the critical section in zerofsgetgbuf() and zerofsputgbuf() functions. The fix prevents task migration during the critical buffer management operations. The patch has been merged into the Linux kernel (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67726HIGH7.5
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-67725HIGH7.5
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-11266MEDIUM6.8
  • Linux DebianLinux Debian
  • gdcm
NoNoDec 12, 2025
CVE-2025-67749MEDIUM5.3
  • Linux DebianLinux Debian
  • pcsx2
NoNoDec 12, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • kernel-headers
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management