CVE-2024-0562: Kernel: use-after-free after removing device in wb_inode_writeback_end in mm/page-writeback.c
A use-after-free flaw was found in the Linux Kernel. When a disk is removed, bdiunregister is called to stop further write-back and waits for associated delayed work to complete. However, wbinodewritebackend() may schedule bandwidth estimation work after this has completed, which can result in the timer attempting to access the recently freed bdiwriteback.
Other sources
A use-after-free problem was found when a disk is removed, bdiunregister gets called to stop further writeback and wait for associated delayed work to complete. However, wbinodewritebackend() may schedule bandwidth estimation dwork after this has completed, which can result in the timer attempting to access the just freed bdiwriteback.
Refer: https://patchwork.kernel.org/project/linux-mm/patch/20220801155034.3772543-1-khazhy@google.com/
— Red Hat
Kernel: use-after-free after removing device in wbinodewritebackend in mm/page-writeback.c
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.0 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.19.6-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-0562?
CVE-2024-0562 has been classified with a high severity due to the potential for exploitation leading to denial of service.
How do I fix CVE-2024-0562?
To mitigate CVE-2024-0562, it is recommended to upgrade the Linux Kernel to version 6.0 or later.
Which software versions are affected by CVE-2024-0562?
CVE-2024-0562 affects the Linux Kernel versions 5.15 through 5.19.6 and 6.0-rc1 and 6.0-rc2.
Can CVE-2024-0562 be exploited remotely?
Yes, CVE-2024-0562 can potentially be exploited remotely if certain conditions are met.
What systems need to be updated to mitigate CVE-2024-0562?
Systems running affected versions of Red Hat Enterprise Linux 8.0, 9.0, and specific Linux Kernel versions need to be updated.