CVE-2024-47757 nilfs2: fix potential oob read in nilfs_btree_check_delete()
An out-of-bounds read in the nilfs2 filesystem allows attackers to read memory outside the block buffer if a crafted device image is mounted.
- 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-47757?
CVE-2024-47757 is a high-severity vulnerability in Linux kernel, published on 21 Oct 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: fix potential oob read in nilfs_btree_check_delete()
The function nilfs_btree_check_delete(), which checks whether degeneration to direct mapping occurs before deleting a b-tree entry, causes memory access outside the block buffer when retrieving the maximum key if the root node has no entries.
This does not usually happen because b-tree mappings with 0 child nodes are never created by mkfs.nilfs2 or nilfs2 itself. However, it can happen if the b-tree root node read from a device is configured that way, so fix this potential issue by adding a check for that case.
Weakness: CWE-125
Which versions are affected by CVE-2024-47757?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-47757?
Apply the vendor's patch.
Is CVE-2024-47757 being exploited?
There is no known exploitation of CVE-2024-47757 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-50652, AZL-50685, BELL-CVE-2024-47757, DEBIAN-CVE-2024-47757, GHSA-qf78-3cfm-29pm, UBUNTU-CVE-2024-47757.