Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A67DC12BF3D for ; Wed, 1 May 2024 13:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568807; cv=none; b=ZhyPJBSlYVDJ1qFYlmOkBON0+koWTM+kAaQxX/FaEyv8MrNJXS0BgYcTeAqiJ5d5KOqouWSlg/kJDD0USX8Q8jV12c66mePlFIpYXqk+sA491DlT+Rx63yu6cZlIc4GIwltfDAXlf8Z4C/8EoDGZ3v+dzgjJSEeEq6ZlhIr/pZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568807; c=relaxed/simple; bh=cS2qsazf0KA01c58pnD8/xL3JedJbP+iEbV6/wFpRQ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pJRYc7j38v1oF5lIdmud55pw1UVwK/ofHcpDfmG5lzf64fr3NnvGXRpRRiT8mP5Kosuqm6nPBBydaWwd76fszCz5HRHOZqWd7Y8TZy0veAXbD+KLFss4jVHKy3leVV+0Mw5pUMgk0lB+QKI80kZ6JIHPvSOdpcWoF7UtyYPU41E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=paRczNKK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="paRczNKK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AEC1C113CC; Wed, 1 May 2024 13:06:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568807; bh=cS2qsazf0KA01c58pnD8/xL3JedJbP+iEbV6/wFpRQ8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=paRczNKKRLyKbRWBQXl307igl8rD5k0vaSYQYFn2YOjXYRAi0zOgtbWF0Nzn6vEFw vHk1f9J3HnRhyayuH5+5DPR6AsLUW7r81EMlbhNFKJwmjnSeyUSNhj7q9Vs0SrneWb +wXx3eP+Pd+pBBwXxV35oK46FuYinQoCMzmmx/jw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52653: SUNRPC: fix a memleak in gss_import_v2_context Date: Wed, 1 May 2024 15:06:34 +0200 Message-ID: <2024050131-CVE-2023-52653-a5c2@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2332; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cS2qsazf0KA01c58pnD8/xL3JedJbP+iEbV6/wFpRQ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGduGftMO4Pu2t/K4vlvdWfNKa7i8pjCwB8Yuu/57W2 nP2uq54RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykupJhwSy7cm2Hq3sUoyYc O5hWc1N+tdjdSwwL9lgUT3eU3f2NX0LdZHLFvHtJ0/RmAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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. The Linux kernel CVE team has assigned CVE-2023-52653 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.35 with commit 47d848077629 and fixed in 6.6.23 with commit 99044c01ed53 Issue introduced in 2.6.35 with commit 47d848077629 and fixed in 6.7.11 with commit 47ac11db93e7 Issue introduced in 2.6.35 with commit 47d848077629 and fixed in 6.8.2 with commit d111e30d9cd8 Issue introduced in 2.6.35 with commit 47d848077629 and fixed in 6.9-rc1 with commit e67b652d8e85 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2023-52653 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/sunrpc/auth_gss/gss_krb5_mech.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/99044c01ed5329e73651c054d8a4baacdbb1a27c https://git.kernel.org/stable/c/47ac11db93e74ac49cd6c3fc69bcbc5964c4a8b4 https://git.kernel.org/stable/c/d111e30d9cd846bb368faf3637dc0f71fcbcf822 https://git.kernel.org/stable/c/e67b652d8e8591d3b1e569dbcdfcee15993e91fa