# CVE-2025-38566: sunrpc: fix handling of server side tls alerts

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.06% (percentile 64, 2026-11-26)
- **CWE:** CWE-754
- **Published:** 2025-08-19T17:02:42.506Z
- **Modified:** 2026-10-15T22:18:45.637Z

## Who should check

- Anyone running Linux \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< b1df394621710b312f0393e3f240fdac0764f968; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 25bb3647d30a20486b5fe7cff2b0e503c16c9692; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 3b549da875414989f480b66835d514be80a0bd9c; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 6b33c31cc788073bfbed9297e1f4486ed73d87da; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< bee47cb026e762841f3faece47b51f985e215edb
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

sunrpc: fix handling of server side tls alerts

Scott Mayhew discovered a security exploit in NFS over TLS in
tls\_alert\_recv() due to its assumption it can read data from
the msg iterator's kvec..

kTLS implementation splits TLS non-data record payload between
the control message buffer (which includes the type such as TLS
aler or TLS cipher change) and the rest of the payload (say TLS
alert's level/description) which goes into the msg payload buffer.

This patch proposes to 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 msg buffer and read in the control message such as a
TLS alert. 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 and fixed versions

- Linux: \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< b1df394621710b312f0393e3f240fdac0764f968; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 25bb3647d30a20486b5fe7cff2b0e503c16c9692; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 3b549da875414989f480b66835d514be80a0bd9c; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 6b33c31cc788073bfbed9297e1f4486ed73d87da; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< bee47cb026e762841f3faece47b51f985e215edb (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38566. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38566.md
Affected: Linux >= 5e052dda121e2870dd87181783da4a95d7d2927b, < b1df394621710b312f0393e3f240fdac0764f968; >= 5e052dda121e2870dd87181783da4a95d7d2927b, < 25bb3647d30a20486b5fe7cff2b0e503c16c9692; >= 5e052dda121e2870dd87181783da4a95d7d2927b, < 3b549da875414989f480b66835d514be80a0bd9c; >= 5e052dda121e2870dd87181…
Fixed in: Linux 25bb3647d30a20486b5fe7cff2b0e503c16c9692, Linux 3b549da875414989f480b66835d514be80a0bd9c, Linux 6b33c31cc788073bfbed9297e1f4486ed73d87da

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38566 being exploited?

There is no confirmed exploitation: CVE-2025-38566 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.06% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38566?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-38566?

Linux \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< b1df394621710b312f0393e3f240fdac0764f968; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 25bb3647d30a20486b5fe7cff2b0e503c16c9692; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 3b549da875414989f480b66835d514be80a0bd9c; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< 6b33c31cc788073bfbed9297e1f4486ed73d87da; \>= 5e052dda121e2870dd87181783da4a95d7d2927b, \< bee47cb026e762841f3faece47b51f985e215edb; Linux 6.4.

### Is there a fix for CVE-2025-38566?

Yes. Fixed in Linux 25bb3647d30a20486b5fe7cff2b0e503c16c9692, Linux 3b549da875414989f480b66835d514be80a0bd9c, Linux 6b33c31cc788073bfbed9297e1f4486ed73d87da. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38566?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b1df394621710b312f0393e3f240fdac0764f968>
- patch: <https://git.kernel.org/stable/c/25bb3647d30a20486b5fe7cff2b0e503c16c9692>
- patch: <https://git.kernel.org/stable/c/3b549da875414989f480b66835d514be80a0bd9c>
- patch: <https://git.kernel.org/stable/c/6b33c31cc788073bfbed9297e1f4486ed73d87da>
- patch: <https://git.kernel.org/stable/c/bee47cb026e762841f3faece47b51f985e215edb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38566>

HTML: <https://flawdb.com/CVE-2025-38566> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38566>
