# CVE-2021-47166: NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-25T09:16:19.133Z
- Modified: 2026-06-17T04:16:48.780Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a7d42ddb3099727f58366fa006f850a219cce6c8 before e8b8418ce14ae66ee55179901edd12191ab06a9e; from a7d42ddb3099727f58366fa006f850a219cce6c8 before b291baae24f876acd5a5dd57d0bb2bbac8a68b0c; from a7d42ddb3099727f58366fa006f850a219cce6c8 before c757c1f1e65d89429db1409429436cf40d47c008; from a7d42ddb3099727f58366fa006f850a219cce6c8 before 40f139a6d50c232c0d1fd1c5e65a845c62db0ede; from a7d42ddb3099727f58366fa006f850a219cce6c8 before 785917316b25685c9b3a2a88f933139f2de75e33; from a7d42ddb3099727f58366fa006f850a219cce6c8 before 7087db95c0a06ab201b8ebfac6a7ec1e34257997; from a7d42ddb3099727f58366fa006f850a219cce6c8 before 2fe1cac336b55a1f79e603e9ce3552c3623e90eb; from a7d42ddb3099727f58366fa006f850a219cce6c8 before 0d0ea309357dea0d85a82815f02157eb7fcda39f; 4.0 (not affected: before 4.0; from 4.4.271 up to 4.4.*; from 4.9.271 up to 4.9.*; from 4.14.235 up to 4.14.*; from 4.19.193 up to 4.19.*; from 5.4.124 up to 5.4.*; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.0 before 4.4.271; from 4.5 before 4.9.271; from 4.10 before 4.14.235; from 4.15 before 4.19.193; from 4.20 before 5.4.124; from 5.5 before 5.10.42; from 5.11 before 5.12.9; 5.13

## References

- <https://git.kernel.org/stable/c/e8b8418ce14ae66ee55179901edd12191ab06a9e> (patch)
- <https://git.kernel.org/stable/c/b291baae24f876acd5a5dd57d0bb2bbac8a68b0c> (patch)
- <https://git.kernel.org/stable/c/c757c1f1e65d89429db1409429436cf40d47c008> (patch)
- <https://git.kernel.org/stable/c/40f139a6d50c232c0d1fd1c5e65a845c62db0ede> (patch)
- <https://git.kernel.org/stable/c/785917316b25685c9b3a2a88f933139f2de75e33> (patch)
- <https://git.kernel.org/stable/c/7087db95c0a06ab201b8ebfac6a7ec1e34257997> (patch)
- <https://git.kernel.org/stable/c/2fe1cac336b55a1f79e603e9ce3552c3623e90eb> (patch)
- <https://git.kernel.org/stable/c/0d0ea309357dea0d85a82815f02157eb7fcda39f> (patch)

## Sources

- CVE List: [CVE-2021-47166](https://www.cve.org/CVERecord?id=CVE-2021-47166), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47166](https://nvd.nist.gov/vuln/detail/CVE-2021-47166), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47166 · Whole record: https://cve.day/CVE-2021-47166.json · Rebuilt by cve.day 2026-11-25T22:58:08.695Z
