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 54BCA1F8919 for ; Mon, 21 Oct 2024 12:17:58 +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=1729513078; cv=none; b=r3w/h/7oRGZzizX03OA1kDWhszPiSFquY3zvAKsVWRRCgMflBNTU5bIQAAhstDdl7kE57Fs/1PjmUH8pFh7DnH8PpDgE+L+qDWrCQFUi1u+2d6ue+S78LvHDpPXAXcaYrZJ3I32csvDiimO1wsC7gEz9Qu15kqSilYp9gHV3mQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729513078; c=relaxed/simple; bh=/uPQsHw06bsE/a9hHxxPLA1ByJFmQ1JTwaFqqTyq28o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qZjUqsqxqZHxont4uDWnRFAvIKIlgTGz1E1celTYhg2ttdAObHjrrI1WhlXPL5fam/VnLMgDQKRcypp5Fu3aZ0hoZ8Pb2UcwqjLLonsM9AVwgPzwYm7v97R5CYsifTp5HlTLD7QK6AiolIZzafYTWEgkraUWBqHFGKBdkEiRSPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2eCnwtx1; 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="2eCnwtx1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89FF3C4CEE5; Mon, 21 Oct 2024 12:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729513077; bh=/uPQsHw06bsE/a9hHxxPLA1ByJFmQ1JTwaFqqTyq28o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2eCnwtx1K8+IOCmjLzB5oBtt9JepldrYJ/ENWhQYFwky5o6Pvxa0UZAaeldDjp5Y1 DmvvDysHVzZ197/E0NxXhwiktpnUcamGfHjmM0SchYMdE9mh0ihMNc6NNV1npxsixg E1+e3KyjjzCzOKqwyQ7Hj/2gXObasdwISqNinXDY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47732: crypto: iaa - Fix potential use after free bug Date: Mon, 21 Oct 2024 14:16:11 +0200 Message-ID: <2024102106-CVE-2024-47732-f8aa@gregkh> X-Mailer: git-send-email 2.47.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=2236; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/uPQsHw06bsE/a9hHxxPLA1ByJFmQ1JTwaFqqTyq28o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlibuyfk8/PmCrkqOy7VuVUU/zhLS/mRXE8+sB51VblV +rGV9P9O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAioRMYFix4e+GbivlhxRMl Xv+z8uKTiroXbmKYn6C3R2uq5QE2hoVRLOcUlr7Wc1L4BgA= 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: iaa - Fix potential use after free bug The free_device_compression_mode(iaa_device, device_mode) function frees "device_mode" but it iss passed to iaa_compression_modes[i]->free() a few lines later resulting in a use after free. The good news is that, so far as I can tell, nothing implements the ->free() function and the use after free happens in dead code. But, with this fix, when something does implement it, we'll be ready. :) The Linux kernel CVE team has assigned CVE-2024-47732 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit b190447e0fa3 and fixed in 6.10.13 with commit b5d534b473e2 Issue introduced in 6.8 with commit b190447e0fa3 and fixed in 6.11.2 with commit c66f0be993ba Issue introduced in 6.8 with commit b190447e0fa3 and fixed in 6.12-rc1 with commit e0d3b845a1b1 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-47732 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/intel/iaa/iaa_crypto_main.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/b5d534b473e2c8d3e4560be2dd6c12a8eb9d61e9 https://git.kernel.org/stable/c/c66f0be993ba52410edab06124c54ecf143b05c1 https://git.kernel.org/stable/c/e0d3b845a1b10b7b5abdad7ecc69d45b2aab3209