7.1high
NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.28% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| 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 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: NFS: fs_context: valida las retransmisiones UDP para evitar cambios fuera de los límites. Corrige cambios fuera de los límites en xprt_calc_majortimeo(). Esto se debe a que se pasa una opción de montaje de tiempo de espera de basura (retransmisión) al montaje nfs, en este caso desde syzkaller. Si el protocolo es XPRT_TRANSPORT_UDP, entonces 'retrans' es un valor de desplazamiento para un entero largo de 64 bits, por lo que 'retrans' no puede ser >= 64. Si es >= 64, falla el montaje y devuelve un error.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46952 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-46952 changed 2026-06-17 | Public domain |