CVE-2024-26632 block: Fix iterating over an empty bio with bio_for_each_folio_all
A null pointer dereference in the Linux kernel block layer allows local attackers to cause a system crash by triggering an empty bio iteration.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26632?
CVE-2024-26632 is a high-severity vulnerability in Linux kernel, published on 18 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
block: Fix iterating over an empty bio with bio_for_each_folio_all
If the bio contains no data, bio_first_folio() calls page_folio() on a NULL pointer and oopses. Move the test that we've reached the end of the bio from bio_next_folio() to bio_first_folio().
[axboe: add unlikely() to error case]
Weakness: CWE-476
Which versions are affected by CVE-2024-26632?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26632?
Apply the vendor's patch.
Is CVE-2024-26632 being exploited?
There is no known exploitation of CVE-2024-26632 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-26632, DEBIAN-CVE-2024-26632, GHSA-627x-567f-x2pf, UBUNTU-CVE-2024-26632.