CVE-2024-46780 nilfs2: protect references to superblock parameters exposed in sysfs
A race condition in the nilfs2 filesystem allows attackers to cause memory access errors and system crashes by exploiting unsynchronized sysfs reads.
- 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-46780?
CVE-2024-46780 is a high-severity vulnerability in Linux kernel, published on 18 Sep 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: protect references to superblock parameters exposed in sysfs
The superblock buffers of nilfs2 can not only be overwritten at runtime for modifications/repairs, but they are also regularly swapped, replaced during resizing, and even abandoned when degrading to one side due to backing device issues. So, accessing them requires mutual exclusion using the reader/writer semaphore "nilfs->ns_sem".
Some sysfs attribute show methods read this superblock buffer without the necessary mutual exclusion, which can cause problems with pointer dereferencing and memory access, so fix it.
Which versions are affected by CVE-2024-46780?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-46780?
Apply the vendor's patch.
Is CVE-2024-46780 being exploited?
There is no known exploitation of CVE-2024-46780 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-46780, DEBIAN-CVE-2024-46780, GHSA-cfpv-586j-2mfm, UBUNTU-CVE-2024-46780.