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 0E79954BEF for ; Fri, 17 May 2024 14:01:54 +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=1715954514; cv=none; b=M5FYMSNDTazMzhCeQhnxVZ/1tLP7MNc+WyUAmqIkRYi0y4XaAkcRPSGx7HwZcMdNyAqW5JLg2bwtA3itZ8Qyv0HUZLkeOeBWJjefsKB6ab5oHe/JFlbl5dlCRPXe0S9WfrK7yoqvvdi7fJRFngRdaZjWg/Ul++GzFGXNHSBxqB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715954514; c=relaxed/simple; bh=uPbWU1PmejH22eP0u4DDqupinDJAGS79al32f027QB8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=abNaXX+za5CteLFLzvC9hVvAsR9RGFs04LczSWab/0Rhbz/8EH1Pth4/a2uHbuCZM6YfxDH2g+Pip1GRpkweGueND7o9hbu+rTDIvHZwhlkP5BsirllNHfXxiXC3PA8Yn5EDmmlRTuvrMwhDFmD+ADnHwqed9CwJfpapT2kwIWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LhQ41Zw9; 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="LhQ41Zw9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79C0FC2BD11; Fri, 17 May 2024 14:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715954513; bh=uPbWU1PmejH22eP0u4DDqupinDJAGS79al32f027QB8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LhQ41Zw9iujBRbQXTk2/NwOWrnUh28UG1ZgntXmAXFriJBHfnoeirV7vJe2cJ599v /YQGfQpbeJe6NkXsJn90zhT0dDIwv8rfRN+aPi4WR7MVHFVawvEP6Aob2qSXS5NGfH jJ3ULISgTrtt5oxmkLEMceopKicJ9ohC9M4SCuxA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35836: dpll: fix pin dump crash for rebound module Date: Fri, 17 May 2024 16:01:37 +0200 Message-ID: <2024051730-CVE-2024-35836-9638@gregkh> X-Mailer: git-send-email 2.45.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=2390; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uPbWU1PmejH22eP0u4DDqupinDJAGS79al32f027QB8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuydZt0zZsTeFWkb98PHfVnlaLrLr2khc3hC6nxW2P3 v3e7/mGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIUP08I94zsq6Xnoj99360 ge3RxUkLP/zezzCHe3tiwrWF0av1Unm+M2zvvO5yR+8sAA== 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: dpll: fix pin dump crash for rebound module When a kernel module is unbound but the pin resources were not entirely freed (other kernel module instance of the same PCI device have had kept the reference to that pin), and kernel module is again bound, the pin properties would not be updated (the properties are only assigned when memory for the pin is allocated), prop pointer still points to the kernel module memory of the kernel module which was deallocated on the unbind. If the pin dump is invoked in this state, the result is a kernel crash. Prevent the crash by storing persistent pin properties in dpll subsystem, copy the content from the kernel module when pin is allocated, instead of using memory of the kernel module. The Linux kernel CVE team has assigned CVE-2024-35836 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 9d71b54b65b1 and fixed in 6.7.3 with commit 5050a5b9d8b4 Issue introduced in 6.7 with commit 9d71b54b65b1 and fixed in 6.8 with commit 830ead5fb0c5 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-35836 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/dpll/dpll_core.c drivers/dpll/dpll_core.h drivers/dpll/dpll_netlink.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/5050a5b9d8b4d3c6f7e376e07670e437db7ccf9c https://git.kernel.org/stable/c/830ead5fb0c5855ce4d70ba2ed4a673b5f1e7d9b