CVE-2024-56581: btrfs: ref-verify: fix use-after-free after invalid ref action
btrfs: ref-verify: fix use-after-free after invalid ref action
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 - Compensating control
For Btrfs systems affected by the btrfs: ref-verify: fix use-after-free after invalid ref action issue, ensure the kernel change that removes the newly inserted ref entry from the respective block entry's rbtree on the error path in btrfs_ref_tree_mod() (when encountering an unexpected BTRFS_DROP_DELAYED_REF action) is applied, so the freed ref entry is not left referenced in the rbtree during btrfs_free_ref_cache()/free_block_entry().
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56581?
The severity of CVE-2024-56581 is classified as high due to its potential for exploitation leading to use-after-free vulnerabilities.
How do I fix CVE-2024-56581?
To fix CVE-2024-56581, update the Linux kernel to a version that includes the patches for this vulnerability.
Which Linux kernel versions are affected by CVE-2024-56581?
CVE-2024-56581 affects various versions of the Linux kernel from 4.15 to 6.13-rc1.
What is the impact of CVE-2024-56581?
The impact of CVE-2024-56581 includes the potential for a remote attacker to execute arbitrary code or crash the system.
Is CVE-2024-56581 exploitable remotely?
Yes, CVE-2024-56581 may be exploitable remotely, depending on the specific configuration and environment.