7.8high
Kernel: use-after-free after removing device in wb_inode_writeback_end in mm/page-writeback.c
- Severity
- 7.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| kernel | before 6.0-rc3 Not affected: from 0:4.18.0-372.87.1.el8_6 before * | CVE List |
| kernel-rt | Not specified | CVE List |
| linux linux_kernel | from 5.15 before 5.15.164, from 5.16 before 5.19.6, 6.0 | NVD |
| redhat enterprise_linux | 8.0, 9.0 | NVD |
All scores
| redhat | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se encontró un fallo de use after free en el kernel de Linux. Cuando se elimina un disco, se llama a bdi_unregister para detener la reescritura adicional y espera a que se complete el trabajo retrasado asociado. Sin embargo, wb_inode_writeback_end() puede programar el trabajo de estimación del ancho de banda después de que se haya completado, lo que puede provocar que el temporizador intente acceder al bdi_writeback recientemente liberado.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-0562 changed 2026-11-26 | CVE Terms of Use |
| NVD | CVE-2024-0562 changed 2026-11-26 | Public domain |