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 5EC633F9C5 for ; Fri, 27 Dec 2024 13:52:55 +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=1735307575; cv=none; b=B5eTYe/mWDUOznIjtMNMRiXRBIiwAAJ74oRZ+zzWFA77vb+OX1YJ0NEnaqgCxfmCGHKlVFH5tY3qf1U0BW53AJS7kANWEMgihlthVMLXnk2B2S23Ve2eiqc9KV7N6SokCizgPgZYHorPGVZtAocxM2FwRVrkO+kg9OmaMHHsQis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307575; c=relaxed/simple; bh=admao8pvRg7Wp9GnIbpACwOKC3ZpRbl5DmbJ9M7o/7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hhOqVj/qOTYsyPQ36Pf4GJ7Uqala+BvyI2c8nNDvu75ucKdP0jEWSUO1P+hN79/5dNaG8mJHjr5f9c3tpExetat1npf0ZPzUoOGR17DknbZSzEoB+OHjE1UKSOh0ANtgmTg8nRMSRHCAY8CgbTohnDfWYWuoelm4vuXI2wbSVbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DUlCXxnB; 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="DUlCXxnB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A10BC4CED0; Fri, 27 Dec 2024 13:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307574; bh=admao8pvRg7Wp9GnIbpACwOKC3ZpRbl5DmbJ9M7o/7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DUlCXxnBzSxXxnbto1kiy6hKuEypkXf7UfpEHjEsQ/A+iQO1ZsXAuDC2xTVGbB6zv Syf8IfKN15NTGap8sEnugf5Sx78VQBsHJsiyTJzYeVZqYFQcLT8KEO6h/e/Uw/5G/m 5UUa86pdGgrZV3GwbwoDFFG0lXOH9Q96/6Iz83YA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53165: sh: intc: Fix use-after-free bug in register_intc_controller() Date: Fri, 27 Dec 2024 14:52:11 +0100 Message-ID: <2024122714-CVE-2024-53165-c311@gregkh> X-Mailer: git-send-email 2.47.1 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=3602; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=admao8pvRg7Wp9GnIbpACwOKC3ZpRbl5DmbJ9M7o/7E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G/lyCxiiTPjeNy9LqFyyhVH56f+OKMOUP3+jNmgdP F45ed2zjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIewWG+cUZ25ri17PxeXey BE6Td0td2bGzmmFB+94D+8OrDns+Nbn21m9Rldbtlq5tAA== 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: sh: intc: Fix use-after-free bug in register_intc_controller() In the error handling for this function, d is freed without ever removing it from intc_list which would lead to a use after free. To fix this, let's only add it to the list after everything has succeeded. The Linux kernel CVE team has assigned CVE-2024-53165 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 4.19.325 with commit 3c7c806b3eafd94ae0f77305a174d63b69ec187c Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 5.4.287 with commit d8de818df12d86a1a26a8efd7b4b3b9c6dc3c5cc Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 5.10.231 with commit 971b4893457788e0e123ea552f0bb126a5300e61 Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 5.15.174 with commit c3f4f4547fb291982f5ef56c048277c4d5ccc4e4 Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 6.1.120 with commit c43df7dae28fb9fce96ef088250c1e3c3a77c527 Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 6.6.64 with commit b8b84dcdf3ab1d414304819f824b10efba64132c Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 6.11.11 with commit 6ba6e19912570b2ad68298be0be1dc779014a303 Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 6.12.2 with commit 588bdec1ff8b81517dbae0ae51c9df52c0b952d3 Issue introduced in 2.6.30 with commit 2dcec7a988a1895540460a0bf5603bab63d5a3ed and fixed in 6.13-rc1 with commit 63e72e551942642c48456a4134975136cdcb9b3c 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-53165 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/sh/intc/core.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/3c7c806b3eafd94ae0f77305a174d63b69ec187c https://git.kernel.org/stable/c/d8de818df12d86a1a26a8efd7b4b3b9c6dc3c5cc https://git.kernel.org/stable/c/971b4893457788e0e123ea552f0bb126a5300e61 https://git.kernel.org/stable/c/c3f4f4547fb291982f5ef56c048277c4d5ccc4e4 https://git.kernel.org/stable/c/c43df7dae28fb9fce96ef088250c1e3c3a77c527 https://git.kernel.org/stable/c/b8b84dcdf3ab1d414304819f824b10efba64132c https://git.kernel.org/stable/c/6ba6e19912570b2ad68298be0be1dc779014a303 https://git.kernel.org/stable/c/588bdec1ff8b81517dbae0ae51c9df52c0b952d3 https://git.kernel.org/stable/c/63e72e551942642c48456a4134975136cdcb9b3c