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 0110F13AA2A for ; Fri, 5 Jul 2024 06:55:39 +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=1720162540; cv=none; b=EC1o47KJIzxZf4DAuBk6cnWzbm/QHhTzp1O6e5LvID0y7BSgF8AoQViYJvmKtFHpD0O0VsBKOV6BodsTI0a4LDjV8lS9VWsBlnJC6f1tRjHOX46f3+9yppxGyWwLx0krHxVqR2ya/3236vOXG+LAfgh2gGAgYILzJRZyC+Y4gP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720162540; c=relaxed/simple; bh=g6oIM4xo5C3yeD+8dFdORXOmWD6CldiPwxOqTg2jiMY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nkpufc5Np8G9GeaOzlu/CWMyUPh2pAXEBLThL3/KrNvMP/OKNsSatBYFDtJTAxg4LaRXiZI6CXoLeKfbMpFpDStc6zy0YRmSGhlJkr8Cl+VNoJjb89Gs1Ex5bBY9hKh5VHzJ/Ua8/dA3lE4z8nKZAvTC9fRqUS84nC5/B7daj5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rdf5BHMN; 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="Rdf5BHMN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35C18C116B1; Fri, 5 Jul 2024 06:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720162539; bh=g6oIM4xo5C3yeD+8dFdORXOmWD6CldiPwxOqTg2jiMY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Rdf5BHMNkiEyCYzcx/SwFU2DJcSUxWMtJoArJcH6Fg9+xwV5ZC3N5OvDJ0H+6U6r1 DqNXHPjcld0qbYYl1P6SIRZmMDcqoHyRGrzGIhUejRQNFM78jXD0jXR5Ycr+jrelcO l//r07k0gxsdQJ5MnHciuJrSYW4GD0r7pEBdI49I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39478: crypto: starfive - Do not free stack buffer Date: Fri, 5 Jul 2024 08:55:22 +0200 Message-ID: <2024070519-CVE-2024-39478-7e1c@gregkh> X-Mailer: git-send-email 2.45.2 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=1690; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g6oIM4xo5C3yeD+8dFdORXOmWD6CldiPwxOqTg2jiMY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGntM67vd/kWV3TVr6a3+Mbzl+GBbXlVFl9LF2eyru66n rTzyv4rHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRnlSG+R4bbkoaZFbU9Znr bK7Lyhc3V/P9xbBgqp7U/g3d19ozoy422pirpyvtWfoBAA== 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: starfive - Do not free stack buffer RSA text data uses variable length buffer allocated in software stack. Calling kfree on it causes undefined behaviour in subsequent operations. The Linux kernel CVE team has assigned CVE-2024-39478 to this issue. Affected and fixed versions =========================== Fixed in 6.9.5 with commit 5944de192663 Fixed in 6.10-rc1 with commit d7f01649f4ea 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-2024-39478 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: drivers/crypto/starfive/jh7110-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/5944de192663f272033501dcd322b008fca72006 https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c