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

SUNRPC: fix gss_auth kref leak in gss_alloc_msg error path

Commit 5940d1cf9f42 ("SUNRPC: Rebalance a kref in auth_gss.c") added
a kref_get(&gss_auth->kref) call to balance the gss_put_auth() done
in gss_release_msg(), but forgot to add a corresponding kref_put()
on the error path when kstrdup_const() fails.

If service_name is non-NULL and kstrdup_const() fails, the function
jumps to err_put_pipe_version which calls put_pipe_version() and
kfree(gss_msg), but never releases the gss_auth reference. This leads
to a kref leak where the gss_auth structure is never freed.

Add a forward declaration for gss_free_callback() and call kref_put()
in the err_put_pipe_version error path to properly release the
reference taken earlier.
Published: 2026-05-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A memory leak exists in the Linux kernel’s SUNRPC implementation. The leak is caused when the gss_alloc_msg function fails to call kref_put() on the gss_auth reference during an error path where kstrdup_const() fails. The missing reference release keeps the gss_auth structure allocated indefinitely, leading to uncontrolled memory consumption. This is a classic memory leak, and the error path also matches CWE-911.

Affected Systems

All Linux kernel releases that contain the SUNRPC code before the inclusion of commit 5940d1cf9f42 are potentially affected. The vulnerability applies to any distribution that has not yet applied that commit, regardless of distribution name or kernel version, because the patch is a kernel‑level change.

Risk and Exploitability

The CVSS score is 5.5 and the EPSS data is unavailable, so the precise likelihood of exploitation is unclear. The flaw requires a failure of kstrdup_const() during SUNRPC authentication, a path that is triggered by RPC traffic. Based on the description, it is inferred that the attack vector is local to the host or relies on a malicious RPC client that can induce the error path. The vulnerability is not listed in the CISA KEV catalog, indicating that no active exploitation has been documented.

Generated by OpenCVE AI on May 28, 2026 at 04:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that incorporates the fix from commit 5940d1cf9f42.
  • If updating the kernel is not immediately possible, disable GSS authentication in SUNRPC to prevent the kref leak from occurring.
  • Restrict or firewall access to the SUNRPC service to limit the number of RPC requests that can trigger the error path.

Generated by OpenCVE AI on May 28, 2026 at 04:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 03:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Thu, 28 May 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Wed, 27 May 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: SUNRPC: fix gss_auth kref leak in gss_alloc_msg error path Commit 5940d1cf9f42 ("SUNRPC: Rebalance a kref in auth_gss.c") added a kref_get(&gss_auth->kref) call to balance the gss_put_auth() done in gss_release_msg(), but forgot to add a corresponding kref_put() on the error path when kstrdup_const() fails. If service_name is non-NULL and kstrdup_const() fails, the function jumps to err_put_pipe_version which calls put_pipe_version() and kfree(gss_msg), but never releases the gss_auth reference. This leads to a kref leak where the gss_auth structure is never freed. Add a forward declaration for gss_free_callback() and call kref_put() in the err_put_pipe_version error path to properly release the reference taken earlier.
Title SUNRPC: fix gss_auth kref leak in gss_alloc_msg error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:18:22.052Z

Reserved: 2026-05-13T15:03:33.089Z

Link: CVE-2026-45964

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:13.177

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-45964

cve-icon Redhat

Severity : Low

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-45964 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T05:00:09Z

Weaknesses