ipv6: xfrm: use full sockets in local error paths
In the Linux kernel, the following vulnerability has been resolved: ipv6: xfrm: use full sockets in local error paths xfrm6_local_rxpmtu() and xfrm6_local_error() dereference skb->sk as if it always pointed at a full IPv6 socket. That is not guaranteed. TCP SYN-ACK skbs can be owned by a TCP_NEW_SYN_RECV request_sock while the output path itself is driven by the full listener. If rerouting selects an IPv6 XFRM tunnel route with a lower MTU, the local PMTU/error handling path can reach these callbacks with that mini-socket still attached to the skb. The callbacks then miscast the request socket as a full inet/IPv6 socket and can read beyond the request_sock allocation when they access inet_sock or ipv6_pinfo state. Resolve the owner with skb_to_full_sk() in both callbacks and bail out when no full socket is attached. This matches the surrounding XFRM IPv6 PMTU/error logic, which already reasons about full sockets with skb_to_full_sk().
CVE-2026-98241
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-2026-98241
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": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "b1a88633c36d2cbc3831382f3846754d344276fd",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "904a0e827d0d7189271a3a2eb648293809f25efc",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "675919e08ce266b8cac11fd9af29170e762a480f",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "60459c670329d586a58db5d8f811fa5accfe4862",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "ca3d68c3213475b53db6647e159dc73bd1af5ab1",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "4c030a0400ebfd2318361c923a88103b2c67c49f",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "c21f3f7fbfeda7c5794f606cb0ffcc2d9001eef8",
"versionType": "git"
},
{
"status": "affected",
"version": "dd767856a36e00b631d65ebc4bb81b19915532d6",
"lessThan": "6973a21ee73c5567f883813c8ef414774b45892f",
"versionType": "git"
}
],
"programFiles": [
"net/ipv6/xfrm6_output.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "3.2"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "3.2",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.271",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.222",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.189",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.112",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.54",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.8",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/ipv6/xfrm6_output.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98241
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #38321 · Revision 1
- Added to Heist Feed
- Publisher date