CVE-2021-47166

NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()

No CVSS score yet EPSS 0.24%

Published 25 Mar 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47166

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47166 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before e8b8418ce14ae66ee55179901edd12191ab06a9e
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before b291baae24f876acd5a5dd57d0bb2bbac8a68b0c
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before c757c1f1e65d89429db1409429436cf40d47c008
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before 40f139a6d50c232c0d1fd1c5e65a845c62db0ede
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before 785917316b25685c9b3a2a88f933139f2de75e33
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before 7087db95c0a06ab201b8ebfac6a7ec1e34257997
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before 2fe1cac336b55a1f79e603e9ce3552c3623e90eb
affected from a7d42ddb3099727f58366fa006f850a219cce6c8, before 0d0ea309357dea0d85a82815f02157eb7fcda39f
Other versions: unaffected
Linux
affected 4.0
unaffected before 4.0
unaffected from 4.4.271 up to and including 4.4.*
unaffected from 4.9.271 up to and including 4.9.*
unaffected from 4.14.235 up to and including 4.14.*
unaffected from 4.19.193 up to and including 4.19.*
unaffected from 5.4.124 up to and including 5.4.*
unaffected from 5.10.42 up to and including 5.10.*
unaffected from 5.12.9 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47166 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47166

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47166
trivy image --scanners vuln IMAGE | grep CVE-2021-47166

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47166 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.