CVE-2024-41086 bcachefs: Fix sb_field_downgrade validation
A missing bounds check in the bcachefs filesystem allows attackers to cause memory corruption or denial of service via malformed superblock data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-41086?
CVE-2024-41086 is a high-severity memory corruption vulnerability in Linux kernel, published on 29 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
In the Linux kernel, the following vulnerability has been resolved:
bcachefs: Fix sb_field_downgrade validation
- bch2_sb_downgrade_validate() wasn't checking for a downgrade entry extending past the end of the superblock section
- for_each_downgrade_entry() is used in to_text() and needs to work on malformed input; it also was missing a check for a field extending past the end of the section
Which versions are affected by CVE-2024-41086?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-41086?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-41086 being exploited?
There is no known exploitation of CVE-2024-41086 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-41086, DEBIAN-CVE-2024-41086, GHSA-966p-c3x9-6gp2, UBUNTU-CVE-2024-41086.