CVE-2023-52653

SUNRPC: fix a memleak in gss_import_v2_context

State
Published
Severity
5.5 Medium
Published
May 1, 2024
Updated
Oct 30, 2026
Reserved
Mar 6, 2024

Read the record on cve.org

Description

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

SUNRPC: fix a memleak in gss_import_v2_context

The ctx->mech_used.data allocated by kmemdup is not freed in neither gss_import_v2_context nor it only caller gss_krb5_import_sec_context, which frees ctx on error.

Thus, this patch reform the last call of gss_import_v2_context to the gss_krb5_import_ctx_v2, preventing the memleak while keepping the return formation.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 47d84807762966c3611c38adecec6ea703ddda7a to before 32a15b6a9a0ac326ca65ce988a1ba046517af3d5Affected
  • 47d84807762966c3611c38adecec6ea703ddda7a to before 99044c01ed5329e73651c054d8a4baacdbb1a27cAffected
  • 47d84807762966c3611c38adecec6ea703ddda7a to before 47ac11db93e74ac49cd6c3fc69bcbc5964c4a8b4Affected
  • 47d84807762966c3611c38adecec6ea703ddda7a to before d111e30d9cd846bb368faf3637dc0f71fcbcf822Affected
  • 47d84807762966c3611c38adecec6ea703ddda7a to before e67b652d8e8591d3b1e569dbcdfcee15993e91faAffected
LinuxLinux
  • 2.6.35Affected
  • before 2.6.35Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.23 through 6.6.*Not affected
  • 6.7.11 through 6.7.*Not affected
  • 6.8.2 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.