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 ED14D10E3 for ; Tue, 30 Jul 2024 07:49:22 +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=1722325763; cv=none; b=ZtJ6HcLgyHSjvTguHK02AKYJIf2cWC8vv5nafA8pDOAf/kt2OKjv7lGV1HMHAE1gA4YtlQ2yvy9GYCalLgZSMtRqcpVmJBteaNi93JOpgtigg1uPyXTmvmEqgRBbGKkYogkWyuFC04nzl95RWUWJSDSMNUwGR4bhiGkLIb6d5GA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325763; c=relaxed/simple; bh=q/dKNrfGjUhj43CdDVJGXMeb3Z99NOQRwCUO+Aw8Ah0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ivUEf8UscLH/2Ks4yLtgkxt9wZh9o4dpYWQm0MCyb8BjC/DuxMXwlwYhITKtl0pYsxvNT26CbaykUcvC3naC/YJBncXvgPgtvrONEPOKWmRc/ozeDbwPecRGPYGccrEau9Bm9kxJD1f7BPeMt+6vvvE7EKCatOqvHvaw5iktdUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PdAe6q1d; 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="PdAe6q1d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BFA2C32782; Tue, 30 Jul 2024 07:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325762; bh=q/dKNrfGjUhj43CdDVJGXMeb3Z99NOQRwCUO+Aw8Ah0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PdAe6q1dBwXOeyoO5TStqUO5wuP7n3cWFYVotU5kBDx/s5jAF3OGPIK9sDbhXqySD UHUczwQ4j3H+LVIBULNOBT+SZdoGputJ52n/jThDKopFkKzezzmPXyTB2gIv8VmJDk zYRHJetyOKciA2I+G5VCTXKDDe1vTfeFEwrpC8pg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42127: drm/lima: fix shared irq handling on driver remove Date: Tue, 30 Jul 2024 09:47:45 +0200 Message-ID: <2024073026-CVE-2024-42127-c29c@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=2814; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q/dKNrfGjUhj43CdDVJGXMeb3Z99NOQRwCUO+Aw8Ah0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZvXdMukU3xmueiz9vf776FkONtU6Zy9IxKre+3e9n EN1RevbjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIPAWGBb3lubcf33586KcK C/O/39NfnP4Un82wYMHW+D2LFH2545sC/qR8ZHZ7p3blFgA= 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: drm/lima: fix shared irq handling on driver remove lima uses a shared interrupt, so the interrupt handlers must be prepared to be called at any time. At driver removal time, the clocks are disabled early and the interrupts stay registered until the very end of the remove process due to the devm usage. This is potentially a bug as the interrupts access device registers which assumes clocks are enabled. A crash can be triggered by removing the driver in a kernel with CONFIG_DEBUG_SHIRQ enabled. This patch frees the interrupts at each lima device finishing callback so that the handlers are already unregistered by the time we fully disable clocks. The Linux kernel CVE team has assigned CVE-2024-42127 to this issue. Affected and fixed versions =========================== Fixed in 5.4.280 with commit 0d60c43df59e Fixed in 5.10.222 with commit 25d0d9b83d85 Fixed in 5.15.163 with commit 17fe8b75aaf0 Fixed in 6.1.98 with commit 0a487e977cb8 Fixed in 6.6.39 with commit 04d531b9a187 Fixed in 6.9.9 with commit b5daf9217a50 Fixed in 6.10 with commit a6683c690bbf 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-42127 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/gpu/drm/lima/lima_gp.c drivers/gpu/drm/lima/lima_mmu.c drivers/gpu/drm/lima/lima_pp.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/0d60c43df59ef01c08dc7b0c45495178f9d05a13 https://git.kernel.org/stable/c/25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8 https://git.kernel.org/stable/c/17fe8b75aaf0bb1bdc31368963446b421c22d0af https://git.kernel.org/stable/c/0a487e977cb8897ae4c51ecd34bbaa2b005266c9 https://git.kernel.org/stable/c/04d531b9a1875846d4f89953b469ad463aa7a770 https://git.kernel.org/stable/c/b5daf9217a50636a969bc1965f827878aeb09ffe https://git.kernel.org/stable/c/a6683c690bbfd1f371510cb051e8fa49507f3f5e