CVE-2024-0562
JSON

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 packageVersionsReported by
kernelbefore 6.0-rc3
Not affected: from 0:4.18.0-372.87.1.el8_6 before *
CVE List
kernel-rtNot specifiedCVE List
linux linux_kernelfrom 5.15 before 5.15.164, from 5.16 before 5.19.6, 6.0NVD
redhat enterprise_linux8.0, 9.0NVD

All scores

redhat7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

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

Sources

SourceRecordLicence
CVE ListCVE-2024-0562 changed 2026-11-26CVE Terms of Use
NVDCVE-2024-0562 changed 2026-11-26Public domain