CVE-2021-47168

NFS: fix an incorrect limit in filelayout_decode_layout()

MEDIUM
5.5
CVSS Score
Published: March 25, 2024 at 09:16 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.37 ≤ v < 4.14.2352.6.37 ≤ v < 4.19.1932.6.37 ≤ v < 4.4.2712.6.37 ≤ v < 4.9.2712.6.37 ≤ v < 5.10.422.6.37 ≤ v < 5.12.92.6.37 ≤ v < 5.132.6.37 ≤ v < 5.4.1244.10 ≤ v < 4.14.2354.15 ≤ v < 4.19.1934.20 ≤ v < 5.4.1244.5 ≤ v < 4.9.2715.11 ≤ v < 5.12.95.5 ≤ v < 5.10.4216b374ca439fb406e46e071f75428f5b033056f85.13 rc15.13 rc25.13 rc3
Vendor states this is fixed in 769b01ea68b6c49dc3cde6adf7e53927dacbd3a8 (fixed)
Vendor states this is fixed in 945ebef997227ca8c20bad7f8a8358c8ee57a84a (fixed)
Vendor states this is fixed in 9b367fe770b1b80d7bf64ed0d177544a44405f6e (fixed)
Vendor states this is fixed in 9d280ab53df1d4a1043bd7a9e7c6a2f9cfbfe040 (fixed)
Vendor states this is fixed in b287521e9e94bb342ebe5fd8c3fd7db9aef4e6f1 (fixed)
Vendor states this is fixed in d34fb628f6ef522f996205a9e578216bbee09e84 (fixed)
Vendor states this is fixed in e411df81cd862ef3d5b878120b2a2fef0ca9cdb1 (fixed)
Vendor states this is fixed in f299522eda1566cbfbae4b15c82970fc41b03714 (fixed)
Vendor states this is fixed in 2.6.37 (unaffected)
Vendor states this is fixed in 4.14.235 (unaffected)
Vendor states this is fixed in 4.19.193 (unaffected)
Vendor states this is fixed in 4.4.271 (unaffected)
Vendor states this is fixed in 4.9.271 (unaffected)
Vendor states this is fixed in 5.10.42 (unaffected)
Vendor states this is fixed in 5.12.9 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.124 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/769b01ea68b6c49dc3cde6adf7e53927dacbd3a8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/945ebef997227ca8c20bad7f8a8358c8ee57a84a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b367fe770b1b80d7bf64ed0d177544a44405f6e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9d280ab53df1d4a1043bd7a9e7c6a2f9cfbfe040
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b287521e9e94bb342ebe5fd8c3fd7db9aef4e6f1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d34fb628f6ef522f996205a9e578216bbee09e84
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e411df81cd862ef3d5b878120b2a2fef0ca9cdb1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f299522eda1566cbfbae4b15c82970fc41b03714

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card