← Back to CVE Explorer

CVE-2026-89539

Full vulnerability record from the local CVENow database.

Description

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.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-11 20:19:36.977000
Last modified
2026-10-30 13:20:20.120000
View original CVE JSON
{
  "id": "CVE-2026-89539",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-11T20:19:36.977",
  "lastModified": "2026-10-30T13:20:20.120",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: reject duplicate CREDS_VALUE options\n\ngssx_dec_option_array() walks the wire-supplied option array and, for\nevery entry whose name matches CREDS_VALUE, calls\ngssx_dec_linux_creds() on the same struct svc_cred. That helper\nunconditionally installs a fresh groups_alloc() result into\ncreds->cr_group_info without releasing whatever pointer was already\nthere:\n\n    for (i = 0; i < count; i++) {\n        ... decode name ...\n        if (length == sizeof(CREDS_VALUE) &&\n            memcmp(p, CREDS_VALUE, sizeof(CREDS_VALUE)) == 0) {\n            err = gssx_dec_linux_creds(xdr, creds);\n            ...\n        }\n    }\n\nA reply that carries two CREDS_VALUE entries therefore overwrites\ncr_group_info on the second iteration and orphans the group_info\nallocated by the first call. The earlier free_creds path only\nreleases the last cr_group_info via free_svc_cred(), so the first\nallocation's refcount stays at one and its kvmalloc-backed storage\nis leaked. No in-tree caller of gssp_accept_sec_context_upcall()\nexpects more than one CREDS_VALUE per reply.\n\nFix by tracking whether a CREDS_VALUE option has already been\ndecoded and returning -EINVAL on any subsequent match, so the\nfree_creds path releases the single group_info that was installed."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "net/sunrpc/auth_gss/gss_rpc_xdr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
              "lessThan": "6207d7df96b3a7f507f0bfc8842b3760ee2fb1f8",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
              "lessThan": "4904d61eb2e2bd484000725fd302b8f37b4fcf3a",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "1d658336b05f8697d6445834f8867f8ad5e4f735",
              "lessThan": "64b9ef369a6f723294613cb129e5f62c35429df5",
              "versionType": "git",
              "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",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "net/sunrpc/auth_gss/gss_rpc_xdr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "3.10",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "3.10",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.273",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.224",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.191",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.160",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.109",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.50",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.4",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/2e4ce62385c1b8a887c5370af058ac7b52a8eaf9",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/4904d61eb2e2bd484000725fd302b8f37b4fcf3a",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/4b5ebb4f91a6152a0f7b1253f701197e5710d4da",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/6207d7df96b3a7f507f0bfc8842b3760ee2fb1f8",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/64b9ef369a6f723294613cb129e5f62c35429df5",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/7a1d0501cbb962beba23377035d667bf3c1726ee",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/9d94f046b23de0f77849ea69133063c949297e30",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f615b884310bf82d0014e3b5a92eb9aa88146685",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}