# CVE-2021-46952: NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2024-02-27T18:40:35.343Z
- Modified: 2026-06-17T04:15:57.717Z
- Weaknesses: CWE-125
- 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: fs_context: validate UDP retrans to prevent shift out-of-bounds

Fix shift out-of-bounds in xprt_calc_majortimeo(). This is caused
by a garbage timeout (retrans) mount option being passed to nfs mount,
in this case from syzkaller.

If the protocol is XPRT_TRANSPORT_UDP, then 'retrans' is a shift
value for a 64-bit long integer, so 'retrans' cannot be >= 64.
If it is >= 64, fail the mount and return an error.

(As written by CVE List.)

## Affected

- Linux Linux: from 9954bf92c0cddd50a2a470be302e1c1ffdf21d42 before 96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2; from 9954bf92c0cddd50a2a470be302e1c1ffdf21d42 before 2f3380121d49e829fb73ba86240c181bc32ad897; from 9954bf92c0cddd50a2a470be302e1c1ffdf21d42 before 3d0163821c035040a46d816a42c0780f0f0a30a8; from 9954bf92c0cddd50a2a470be302e1c1ffdf21d42 before c09f11ef35955785f92369e25819bf0629df2e59; 5.6 (not affected: before 5.6; from 5.10.36 up to 5.10.*; from 5.11.20 up to 5.11.*; from 5.12.3 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.6.0 before 5.10.36; from 5.11.0 before 5.11.20; from 5.12.0 before 5.12.3

## References

- <https://git.kernel.org/stable/c/96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2> (patch)
- <https://git.kernel.org/stable/c/2f3380121d49e829fb73ba86240c181bc32ad897> (patch)
- <https://git.kernel.org/stable/c/3d0163821c035040a46d816a42c0780f0f0a30a8> (patch)
- <https://git.kernel.org/stable/c/c09f11ef35955785f92369e25819bf0629df2e59> (patch)

## Sources

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

---

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