CVE-2024-57896: btrfs: flush delalloc workers queue before stopping cleaner kthread during unmount
btrfs: flush delalloc workers queue before stopping cleaner kthread during unmount
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.76.1-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.15.176.3-1 - Configuration
During the btrfs unmount path (close_ctree()), flush the delalloc workers queue before stopping the cleaner kthread so that no remaining delalloc worker can wake a destroyed cleaner kthread (use-after-free on task_struct).
Linux kernel (btrfs) Unmount cleanup order for cleaner kthread vs delalloc workqueue = Flush delalloc workers queue before stopping cleaner kthread
Event History
Frequently Asked Questions
What is the severity of CVE-2024-57896?
CVE-2024-57896 is classified as a moderate severity vulnerability in the Linux kernel.
How do I fix CVE-2024-57896?
To fix CVE-2024-57896, you should update your Linux kernel to a version greater than 5.10.233, or within the specified fixed versions.
What versions of Linux kernel are affected by CVE-2024-57896?
CVE-2024-57896 affects Linux kernel versions from 5.10.0 up to but not including 5.10.233 and other specified versions.
What are the potential impacts of CVE-2024-57896?
CVE-2024-57896 could potentially lead to issues with the handling of btrfs file systems during the unmount process.
Is there a workaround for CVE-2024-57896?
There are no official workarounds for CVE-2024-57896; updating to a patched version of the Linux kernel is the recommended course of action.