What’s Vulnerable › Vulnerabilities

CVE-2024-0562: Kernel: use-after-free after removing device in wb_inode_writeback_end in mm/page-writeback.c

Description

A use-after-free flaw was found in the Linux Kernel. 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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.164, 5.19.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-0562 or the next vulnerability affects your stack