From mboxrd@z Thu Jan 1 00:00:00 1970 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 5AD8BCA6F for ; Sun, 25 Feb 2024 08:17:09 +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=1708849030; cv=none; b=Cwu7i+zQMoWBWykpO2he72T2I8cgmaMwJlECaxAREA4OlFHOK6TBRq60ubj7Fy71IeLsKezgyBEnjCvNVWsD2cU4WZK5zfBby87kcAatLBL+VyThtr9Hlp4isP6ptdefQCZwhkWfLq+2qaOBpUk6YrM5VzcRKVcmPr46Wu5iOAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708849030; c=relaxed/simple; bh=XtB3KUUG4a9ycR56M0Z3LGHw2QjynvNonbBVafRYqEo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aLjfg5GUxUPDuHSsRzmLPOOCDRkh4TxSVdfs8CmYbDvdE8PfoMBObaz+JkmdUewarS1wrjGDlu8E5TSrblnyNeqALRWBME9zP6PimOEK7na+kCjrMB5xf799/ToHlV3ehkYqimthn+CSO1DqNFQ/QOQuV06jlePUVQpoh3MjYfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zFtochl+; 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="zFtochl+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A41C6C433F1; Sun, 25 Feb 2024 08:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708849029; bh=XtB3KUUG4a9ycR56M0Z3LGHw2QjynvNonbBVafRYqEo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zFtochl+eF9FqsEHH6WpAiSBT1VZ6bbVYVckbuWdaMz4h9lm7wVGqrBOxufDkBaQF 1s/4Z0ZicSvramhMwtMKeULwwmIpiMm7YF+0CtTQz3/DNNVl2zg7rtJ5KPIgVRTp8H y5usu8KKeMQilox4mlTHpuTeOQ+upRE24aYEfCRs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52472: crypto: rsa - add a check for allocation failure Date: Sun, 25 Feb 2024 09:16:47 +0100 Message-ID: <2024022547-CVE-2023-52472-fa03@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=2054; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XtB3KUUG4a9ycR56M0Z3LGHw2QjynvNonbBVafRYqEo=; b=owGbwMvMwCRo6H6F97bub03G02pJDKm3vuf/Xx+02UQh/dbM+9PfX9s+efnB+SVBdkqLey4cs LKYlHqOpyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcqKUYa7Y81W/eA8v6Vox QfCPrdf9WcoKd/YyzE+3T9x6Yv7NhY0hIctMFLkPd/dN+QgA 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: crypto: rsa - add a check for allocation failure Static checkers insist that the mpi_alloc() allocation can fail so add a check to prevent a NULL dereference. Small allocations like this can't actually fail in current kernels, but adding a check is very simple and makes the static checkers happy. The Linux kernel CVE team has assigned CVE-2023-52472 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 6637e11e4ad2 and fixed in 6.6.14 with commit 2831f4d3bfa6 Issue introduced in 6.5 with commit 6637e11e4ad2 and fixed in 6.7.2 with commit 95ad8b6879e2 Issue introduced in 6.5 with commit 6637e11e4ad2 and fixed in 6.8-rc1 with commit d872ca165cb6 Please see https://www.kernel.org or 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-52472 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: crypto/rsa.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/2831f4d3bfa68e64c5f83e96688be779c87b3511 https://git.kernel.org/stable/c/95ad8b6879e2e49d02e3bfc0e1fb46421633fe2a https://git.kernel.org/stable/c/d872ca165cb67112f2841ef9c37d51ef7e63d1e4