CVE-2024-41077 null_blk: fix validation of block size
Loading the null_blk module with an invalid block size causes a null pointer dereference, leading to a kernel crash.
- 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-41077?
CVE-2024-41077 is a medium-severity vulnerability in Linux kernel, published on 29 Jul 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:
null_blk: fix validation of block size
Block size should be between 512 and PAGE_SIZE and be a power of 2. The current check does not validate this, so update the check.
Without this patch, null_blk would Oops due to a null pointer deref when loaded with bs=1536 [1].
[axboe: remove unnecessary braces and != 0 check]
Weakness: CWE-476
Which versions are affected by CVE-2024-41077?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-41077?
Apply the vendor's patch.
Is CVE-2024-41077 being exploited?
There is no known exploitation of CVE-2024-41077 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-41077, DEBIAN-CVE-2024-41077, GHSA-fxx9-q7vv-g6p2, UBUNTU-CVE-2024-41077.