CVE-2024-42295 nilfs2: handle inconsistent state in nilfs_btnode_create_block()
A buffer state inconsistency in the nilfs2 filesystem can trigger a kernel bug, leading to a denial of service.
- 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-42295?
CVE-2024-42295 is a medium-severity denial of service vulnerability in Linux kernel, published on 17 Aug 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:
nilfs2: handle inconsistent state in nilfs_btnode_create_block()
Syzbot reported that a buffer state inconsistency was detected in nilfs_btnode_create_block(), triggering a kernel bug.
It is not appropriate to treat this inconsistency as a bug; it can occur if the argument block address (the buffer index of the newly created block) is a virtual block number and has been reallocated due to corruption of the bitmap used to manage its allocation state.
So, modify nilfs_btnode_create_block() and its callers to treat it as a possible filesystem error, rather than triggering a kernel bug.
Which versions are affected by CVE-2024-42295?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42295?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-42295 being exploited?
There is no known exploitation of CVE-2024-42295 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42295, DEBIAN-CVE-2024-42295, GHSA-2pr9-53x2-jqgh, UBUNTU-CVE-2024-42295.