8.2high
sunrpc: fix client side handling of tls alerts
- Severity
- 8.2high CVSS:3.1 by Linux
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: sunrpc: fix client side handling of tls alerts A security exploit was discovered in NFS over TLS in tls_alert_recv due to its assumption that there is valid data in the msghdr's iterator's kvec. Instead, this patch proposes the rework how control messages are setup and used by sock_recvmsg(). If no control message structure is setup, kTLS layer will read and process TLS data record types. As soon as it encounters a TLS control message, it would return an error. At that point, NFS can setup a kvec backed control buffer and read in the control message such as a TLS alert. Scott found that a msg iterator can advance the kvec pointer as a part of the copy process thus we need to revert the iterator before calling into the tls_alert_recv.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from dea034b963c8901bdcc3d3880c04f0d75c95112f before a55b3d15331859d9fdd261cfa6d34ca2aeb0fb95, from dea034b963c8901bdcc3d3880c04f0d75c95112f before c36b2fbd60e8f9c6f975522130998608880c93be, from dea034b963c8901bdcc3d3880c04f0d75c95112f before 3ee397eaaca4fa04db21bb98c8f1d0c6cc525368, from dea034b963c8901bdcc3d3880c04f0d75c95112f before 3feada5baf4dc96e151ff2ca54630e1d274e5458, from dea034b963c8901bdcc3d3880c04f0d75c95112f before cc5d59081fa26506d02de2127ab822f40d88bc5a, 6.5 Not affected: before 6.5, from 6.6.102 up to 6.6.*, from 6.12.42 up to 6.12.*, from 6.15.10 up to 6.15.*, from 6.16.1 up to 6.16.*, from 6.17 up to * | CVE List |
| linux linux_kernel | from 6.5 before 6.6.102, from 6.7 before 6.12.42, from 6.13 before 6.15.10, from 6.16 before 6.16.1 | NVD |
All scores
| Linux | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: sunrpc: fix client side handling of tls alerts A security exploit was discovered in NFS over TLS in tls_alert_recv due to its assumption that there is valid data in the msghdr's iterator's kvec. Instead, this patch proposes the rework how control messages are setup and used by sock_recvmsg(). If no control message structure is setup, kTLS layer will read and process TLS data record types. As soon as it encounters a TLS control message, it would return an error. At that point, NFS can setup a kvec backed control buffer and read in the control message such as a TLS alert. Scott found that a msg iterator can advance the kvec pointer as a part of the copy process thus we need to revert the iterator before calling into the tls_alert_recv.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sunrpc: arregla el manejo del lado del cliente de las alertas tls Se descubrió un exploit de seguridad en NFS sobre TLS en tls_alert_recv debido a su suposición de que hay datos válidos en el kvec del iterador de msghdr. En cambio, este parche propone volver a trabajar en cómo se configuran y utilizan los mensajes de control por sock_recvmsg(). Si no se configura ninguna estructura de mensaje de control, la capa kTLS leerá y procesará los tipos de registros de datos TLS. Tan pronto como encuentre un mensaje de control TLS, devolverá un error. En ese punto, NFS puede configurar un búfer de control respaldado por kvec y leer el mensaje de control como una alerta TLS. Scott encontró que un iterador msg puede avanzar el puntero kvec como parte del proceso de copia, por lo tanto, necesitamos revertir el iterador antes de llamar a tls_alert_recv.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38571 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-38571 changed 2026-10-15 | Public domain |