# CVE-2025-38571: sunrpc: fix client side handling of tls alerts

- Severity: High 8.2 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/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.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2025-08-19T17:02:51.620Z
- Modified: 2026-10-15T22:18:45.810Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a55b3d15331859d9fdd261cfa6d34ca2aeb0fb95> (patch)
- <https://git.kernel.org/stable/c/c36b2fbd60e8f9c6f975522130998608880c93be> (patch)
- <https://git.kernel.org/stable/c/3ee397eaaca4fa04db21bb98c8f1d0c6cc525368> (patch)
- <https://git.kernel.org/stable/c/3feada5baf4dc96e151ff2ca54630e1d274e5458> (patch)
- <https://git.kernel.org/stable/c/cc5d59081fa26506d02de2127ab822f40d88bc5a> (patch)

## Sources

- CVE List: [CVE-2025-38571](https://www.cve.org/CVERecord?id=CVE-2025-38571), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38571](https://nvd.nist.gov/vuln/detail/CVE-2025-38571), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38571 · Whole record: https://cve.day/CVE-2025-38571.json · Rebuilt by cve.day 2026-11-25T22:59:02.714Z
