sunrpc: fix client side handling of tls alerts
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.
CVE-2025-38571
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2025-38571
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "dea034b963c8901bdcc3d3880c04f0d75c95112f",
"lessThan": "a55b3d15331859d9fdd261cfa6d34ca2aeb0fb95",
"versionType": "git"
},
{
"status": "affected",
"version": "dea034b963c8901bdcc3d3880c04f0d75c95112f",
"lessThan": "c36b2fbd60e8f9c6f975522130998608880c93be",
"versionType": "git"
},
{
"status": "affected",
"version": "dea034b963c8901bdcc3d3880c04f0d75c95112f",
"lessThan": "3ee397eaaca4fa04db21bb98c8f1d0c6cc525368",
"versionType": "git"
},
{
"status": "affected",
"version": "dea034b963c8901bdcc3d3880c04f0d75c95112f",
"lessThan": "3feada5baf4dc96e151ff2ca54630e1d274e5458",
"versionType": "git"
},
{
"status": "affected",
"version": "dea034b963c8901bdcc3d3880c04f0d75c95112f",
"lessThan": "cc5d59081fa26506d02de2127ab822f40d88bc5a",
"versionType": "git"
}
],
"programFiles": [
"net/sunrpc/xprtsock.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.5"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.5",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.102",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.42",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.15.10",
"versionType": "semver",
"lessThanOrEqual": "6.15.*"
},
{
"status": "unaffected",
"version": "6.16.1",
"versionType": "semver",
"lessThanOrEqual": "6.16.*"
},
{
"status": "unaffected",
"version": "6.17",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/sunrpc/xprtsock.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2025-38571
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #30594 · Revision 1
- Added to Heist Feed
- Publisher date