CVE-2021-47166 NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
A flaw in the Linux kernel NFS subsystem could corrupt memory during recoalescing, potentially leading to system instability or 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-2021-47166?
CVE-2021-47166 is a medium-severity memory corruption vulnerability in Linux kernel, published on 25 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:
NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
The value of mirror->pg_bytes_written should only be updated after a successful attempt to flush out the requests on the list.
Weakness: CWE-787
Which versions are affected by CVE-2021-47166?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47166?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-47166 being exploited?
There is no known exploitation of CVE-2021-47166 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47166, GHSA-gqm5-q6hv-hp8w, UBUNTU-CVE-2021-47166.