CVE-2024-0562
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2024-0562) was discovered in the Linux Kernel. The issue occurs when a disk is removed - bdi_unregister is called to stop further write-back and waits for associated delayed work to complete. However, wb_inode_writeback_end() may schedule bandwidth estimation work after this has completed, which can result in the timer attempting to access the recently freed bdi_writeback (NVD, Red Hat CVE).

Technical details

The vulnerability exists in the writeback mechanism of the Linux kernel. When a disk device is removed, the bdi_unregister function is called to stop further writeback operations and wait for associated delayed work to complete. However, there is a race condition where wb_inode_writeback_end() may schedule bandwidth estimation work after the completion, leading to a use-after-free condition when the timer attempts to access the freed bdi_writeback structure. The issue was fixed by adding checks to verify if the bdi_writeback is alive before scheduling work, similar to existing writeback work scheduling checks. The fix also required changing wb->work_lock to an irqsafe lock since wb_inode_writeback_end() may be called from interrupt context (Kernel Patch).

Impact

This use-after-free vulnerability could potentially lead to system crashes, memory corruption, or privilege escalation. The issue has been assigned a CVSS v3.1 base score of 7.8 (High), indicating significant potential impact on system security (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 6.0-rc3. Various Linux distributions have released security updates to address this issue. For example, Red Hat has released fixes for Red Hat Enterprise Linux 8.6 Extended Update Support through RHSA-2024:0412 (Red Hat Advisory). Users are advised to update their systems to the patched versions.

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

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