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

Published Jan 15, 2024
·
Updated

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

14 affected componentsFixes available
Microsoft cbl2 kernel 5.15.164.1-1
Microsoft cbl2 kernel 5.15.153.1-1
Microsoft cbl2 kernel 5.15.164.1-1
redhat/kernel<6.0
6.0
Linux Linux kernel>=5.15<5.15.164
Linux Linux kernel>=5.16<5.19.6
Linux Linux kernel=6.0-rc1
Linux Linux kernel=6.0-rc2
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
debian/linux<5.19.6-1
5.19.6-1
debian/linux<5.19.6-1
5.19.6-1
debian/linux<5.19.6-1
5.19.6-1
debian/linux
5.19.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.0
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.19.6-1

Event History

Jan 15, 2024
Data Sourced
via Red Hat·03:08 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·07:01 PM
Data Sourced
via MITRE·07:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Jan 23, 2024
Data Sourced
via NVD·09:00 PM
RemedyAffected Software
Updated
via NVD·09:00 PM
SeverityWeakness
Jan 24, 2024
Event
via FIRST·12:00 AM
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Jan 25, 2024
Updated
via NVD·08:15 PM
Affected Software
Aug 27, 2024
Updated
via NVD·02:57 PM
Affected Software
Nov 5, 2026
Updated
via NVD·12:17 PM
RemedyAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

Can CVE-2024-0562 be exploited remotely?

Yes, CVE-2024-0562 can potentially be exploited remotely if certain conditions are met.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203