CVE-2021-47166

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

MEDIUM
5.5
CVSS Score
Published: March 25, 2024 at 09:16 AM UTC
Updated: June 17, 2026 at 04:16 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.2%
SSVC
No known exploit

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.

Affected

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

4.0 ≤ v < 4.14.2354.0 ≤ v < 4.19.1934.0 ≤ v < 4.4.2714.0 ≤ v < 4.9.2714.0 ≤ v < 5.10.424.0 ≤ v < 5.12.94.0 ≤ v < 5.134.0 ≤ 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.425.13 rc15.13 rc25.13 rc3a7d42ddb3099727f58366fa006f850a219cce6c8
Vendor states this is fixed in 0d0ea309357dea0d85a82815f02157eb7fcda39f (fixed)
Vendor states this is fixed in 2fe1cac336b55a1f79e603e9ce3552c3623e90eb (fixed)
Vendor states this is fixed in 40f139a6d50c232c0d1fd1c5e65a845c62db0ede (fixed)
Vendor states this is fixed in 7087db95c0a06ab201b8ebfac6a7ec1e34257997 (fixed)
Vendor states this is fixed in 785917316b25685c9b3a2a88f933139f2de75e33 (fixed)
Vendor states this is fixed in b291baae24f876acd5a5dd57d0bb2bbac8a68b0c (fixed)
Vendor states this is fixed in c757c1f1e65d89429db1409429436cf40d47c008 (fixed)
Vendor states this is fixed in e8b8418ce14ae66ee55179901edd12191ab06a9e (fixed)
Vendor states this is fixed in 4.0 (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/0d0ea309357dea0d85a82815f02157eb7fcda39f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2fe1cac336b55a1f79e603e9ce3552c3623e90eb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/40f139a6d50c232c0d1fd1c5e65a845c62db0ede
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7087db95c0a06ab201b8ebfac6a7ec1e34257997
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/785917316b25685c9b3a2a88f933139f2de75e33
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b291baae24f876acd5a5dd57d0bb2bbac8a68b0c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c757c1f1e65d89429db1409429436cf40d47c008
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e8b8418ce14ae66ee55179901edd12191ab06a9e

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

StatusANALYZED
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