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

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2024-01-15T19:01:36.947Z
- Modified: 2026-11-26T18:17:12.030Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- kernel: before 6.0-rc3 (not affected: from 0:4.18.0-372.87.1.el8_6 before *)
- kernel-rt: no versions given
- linux linux_kernel: from 5.15 before 5.15.164; from 5.16 before 5.19.6; 6.0
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2024:0412> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2024-0562> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2258475> (issue-tracking, third-party-advisory)
- <https://patchwork.kernel.org/project/linux-mm/patch/20220801155034.3772543-1-khazhy@google.com/> (mailing-list, patch)

## Sources

- CVE List: [CVE-2024-0562](https://www.cve.org/CVERecord?id=CVE-2024-0562), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2024-0562](https://nvd.nist.gov/vuln/detail/CVE-2024-0562), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2024-0562 · Whole record: https://cve.day/CVE-2024-0562.json · Rebuilt by cve.day 2026-11-26T18:32:34.643Z
