{"id":"CVE-2023-52653","title":"SUNRPC: fix a memleak in gss_import_v2_context","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: fix a memleak in gss_import_v2_context\n\nThe ctx->mech_used.data allocated by kmemdup is not freed in neither\ngss_import_v2_context nor it only caller gss_krb5_i…","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cvssSource":"adp","vendor":"Linux","product":"Linux","affected":["Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < 32a15b6a9a0ac326ca65ce988a1ba046517af3d5","Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < 99044c01ed5329e73651c054d8a4baacdbb1a27c","Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < 47ac11db93e74ac49cd6c3fc69bcbc5964c4a8b4","Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < d111e30d9cd846bb368faf3637dc0f71fcbcf822","Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < e67b652d8e8591d3b1e569dbcdfcee15993e91fa","Linux 2.6.35"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-06T18:26:34.838791Z"},"published":"2024-05-01","updated":"2026-10-30","sourceUpdated":"2026-10-30T12:17:18.750Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-52653","references":[{"url":"https://git.kernel.org/stable/c/32a15b6a9a0ac326ca65ce988a1ba046517af3d5"},{"url":"https://git.kernel.org/stable/c/99044c01ed5329e73651c054d8a4baacdbb1a27c"},{"url":"https://git.kernel.org/stable/c/47ac11db93e74ac49cd6c3fc69bcbc5964c4a8b4"},{"url":"https://git.kernel.org/stable/c/d111e30d9cd846bb368faf3637dc0f71fcbcf822"},{"url":"https://git.kernel.org/stable/c/e67b652d8e8591d3b1e569dbcdfcee15993e91fa"}],"tags":["cve.org"],"epss":0.00275,"epssPercentile":0.19986,"ingestedAt":"2026-11-03T11:43:15.781Z","slug":"CVE-2023-52653","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: fix a memleak in gss_import_v2_context\n\nThe ctx->mech_used.data allocated by kmemdup is not freed in neither\ngss_import_v2_context nor it only caller gss_krb5_import_sec_context,\nwhich frees ctx on error.\n\nThus, this patch reform the last call of gss_import_v2_context to the\ngss_krb5_import_ctx_v2, preventing the memleak while keepping the return\nformation.\n\n## Affected\n\n- `Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < 32a15b6a9a0ac326ca65ce988a1ba046517af3d5`\n- `Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < 99044c01ed5329e73651c054d8a4baacdbb1a27c`\n- `Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < 47ac11db93e74ac49cd6c3fc69bcbc5964c4a8b4`\n- `Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < d111e30d9cd846bb368faf3637dc0f71fcbcf822`\n- `Linux >= 47d84807762966c3611c38adecec6ea703ddda7a < e67b652d8e8591d3b1e569dbcdfcee15993e91fa`\n- `Linux 2.6.35`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}