SUNRPC: reject duplicate CREDS_VALUE options
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: reject duplicate CREDS_VALUE options gssx_dec_option_array() walks the wire-supplied option array and, for every entry whose name matches CREDS_VALUE, calls gssx_dec_linux_creds() on the same struct svc_cred. That helper unconditionally installs a fresh groups_alloc() result into creds->cr_group_info without releasing whatever pointer was already there: for (i = 0; i < count; i++) { ... decode name ... if (length == sizeof(CREDS_VALUE) && memcmp(p, CREDS_VALUE, sizeof(CREDS_VALUE)) == 0) { err = gssx_dec_linux_creds(xdr, creds); ... } } A reply that carries two CREDS_VALUE entries therefore overwrites cr_group_info on the second iteration and orphans the group_info allocated by the first call. The earlier free_creds path only releases the last cr_group_info via free_svc_cred(), so the first allocation's refcount stays at one and its kvmalloc-backed storage is leaked. No in-tree caller of gssp_accept_sec_context_upcall() expects more than one CREDS_VALUE per reply. Fix by tracking whether a CREDS_VALUE option has already been decoded and returning -EINVAL on any subsequent match, so the free_creds path releases the single group_info that was installed.
CVE-2026-89539
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-89539
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": "1d658336b05f8697d6445834f8867f8ad5e4f735",
"lessThan": "4b5ebb4f91a6152a0f7b1253f701197e5710d4da",
"versionType": "git"
},
{
"status": "affected",
"version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
"lessThan": "f615b884310bf82d0014e3b5a92eb9aa88146685",
"versionType": "git"
},
{
"status": "affected",
"version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
"lessThan": "7a1d0501cbb962beba23377035d667bf3c1726ee",
"versionType": "git"
},
{
"status": "affected",
"version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
"lessThan": "9d94f046b23de0f77849ea69133063c949297e30",
"versionType": "git"
},
{
"status": "affected",
"version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
"lessThan": "2e4ce62385c1b8a887c5370af058ac7b52a8eaf9",
"versionType": "git"
}
],
"programFiles": [
"net/sunrpc/auth_gss/gss_rpc_xdr.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.10"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "3.10",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.109",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.50",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/sunrpc/auth_gss/gss_rpc_xdr.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89539
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #46675 · Revision 1
- Added to Heist Feed
- Publisher date