CVE-2021-47168

NFS: fix an incorrect limit in filelayout_decode_layout()

9.8 critical EPSS 0.77%

Published 25 Mar 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47168

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-47168 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: fix an incorrect limit in filelayout_decode_layout()

The "sizeof(struct nfs_fh)" is two bytes too large and could lead to memory corruption. It should be NFS_MAXFHSIZE because that's the size of the ->data[] buffer.

I reversed the size of the arguments to put the variable on the left.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.77%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.6% 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 16b374ca439fb406e46e071f75428f5b033056f8, before 9d280ab53df1d4a1043bd7a9e7c6a2f9cfbfe040
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before b287521e9e94bb342ebe5fd8c3fd7db9aef4e6f1
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before f299522eda1566cbfbae4b15c82970fc41b03714
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before 945ebef997227ca8c20bad7f8a8358c8ee57a84a
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before e411df81cd862ef3d5b878120b2a2fef0ca9cdb1
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before 9b367fe770b1b80d7bf64ed0d177544a44405f6e
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before d34fb628f6ef522f996205a9e578216bbee09e84
affected from 16b374ca439fb406e46e071f75428f5b033056f8, before 769b01ea68b6c49dc3cde6adf7e53927dacbd3a8
Other versions: unaffected
Linux
affected 2.6.37
unaffected before 2.6.37
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-47168 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47168

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-47168
trivy image --scanners vuln IMAGE | grep CVE-2021-47168

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-47168 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.