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 C109B219A89 for ; Wed, 26 Feb 2025 02:15:32 +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=1740536132; cv=none; b=g2WL0MqV63xt667WVt3ZlmVfagIN40YvQbRmzqvBUSzemM9zrLsHv3wXKbCZTvkfu93mpyu8Sf2XnvxHvZstosZ82xeyVM0oWbIPftBII9u96RpMJgEXkF6MjASCFU4uKiYDZ4aA6ggpw68lHgCgILUHl/tfgFZnMtiqbJfp2bM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536132; c=relaxed/simple; bh=Kr37rzABnY5U4ixJi4yKn1UmdqbpONUzekBgVsDp/Jc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dwky16INtBVlPu/9mor44n0bTi18XiEYrtGbW2DxtOyxAPgp4+a0fwOP96amgkn30X4qvWFxEBxygA4LLRxQETxum7B4dfnXLrTdHiLo0nrjVnuFiFVY/cCoBus7s2Fv92cXp5/5Gkf7Pre/47H/2OvBy1dcHbVnKJMhUL7PxNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l2SwbrTx; 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="l2SwbrTx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9783BC4CEDD; Wed, 26 Feb 2025 02:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536132; bh=Kr37rzABnY5U4ixJi4yKn1UmdqbpONUzekBgVsDp/Jc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l2SwbrTxC9FGVHYyj17VnFGU3jAYRHmzz23lWdROhp/qhAD8nFOuW/BMELWvUxK9a 6r8MEUk2kFMX8qyb98KT2ZjHDQjAx2oZ8IN62vJrHTJjzOvnjcCY51/rHFQvd6xn2J vKuvRTJ0IutvuPYVppEUajSTaAvtMih3LLGRdFQk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49512: mtd: rawnand: denali: Use managed device resources Date: Wed, 26 Feb 2025 03:13:06 +0100 Message-ID: <2025022609-CVE-2022-49512-f7ca@gregkh> X-Mailer: git-send-email 2.48.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=3420; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Kr37rzABnY5U4ixJi4yKn1UmdqbpONUzekBgVsDp/Jc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7KhiXfNVuX1m++ZA/y49ulpAbN4SVa17LKn3+F+Pno lai3arUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMxv8wwVypzYbZTY5Ztiy+3 xvLA+f+EnLLXMswv1ImW/JPYvkVFc5nWHP+/N1fvu7odAA== 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: mtd: rawnand: denali: Use managed device resources All of the resources used by this driver has managed interfaces, so use them. Otherwise we will get the following splat: [ 4.472703] denali-nand-pci 0000:00:05.0: timeout while waiting for irq 0x1000 [ 4.474071] denali-nand-pci: probe of 0000:00:05.0 failed with error -5 [ 4.473538] nand: No NAND device found [ 4.474068] BUG: unable to handle page fault for address: ffffc90005000410 [ 4.475169] #PF: supervisor write access in kernel mode [ 4.475579] #PF: error_code(0x0002) - not-present page [ 4.478362] RIP: 0010:iowrite32+0x9/0x50 [ 4.486068] Call Trace: [ 4.486269] [ 4.486443] denali_isr+0x15b/0x300 [denali] [ 4.486788] ? denali_direct_write+0x50/0x50 [denali] [ 4.487189] __handle_irq_event_percpu+0x161/0x3b0 [ 4.487571] handle_irq_event+0x7d/0x1b0 [ 4.487884] handle_fasteoi_irq+0x2b0/0x770 [ 4.488219] __common_interrupt+0xc8/0x1b0 [ 4.488549] common_interrupt+0x9a/0xc0 The Linux kernel CVE team has assigned CVE-2022-49512 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit 93db446a424cee9387b532995e6b516667079555 and fixed in 5.10.121 with commit 3c68daf4a368cd9e63ae5a2145c9e4a6f838c166 Issue introduced in 4.17 with commit 93db446a424cee9387b532995e6b516667079555 and fixed in 5.15.46 with commit 3830dbdfb9a4aec680e43ed80b9f23db7a88eac9 Issue introduced in 4.17 with commit 93db446a424cee9387b532995e6b516667079555 and fixed in 5.17.14 with commit 87149cf9186201a63f0e0b93d9fa93d480bcb771 Issue introduced in 4.17 with commit 93db446a424cee9387b532995e6b516667079555 and fixed in 5.18.3 with commit efea1dd176edd17c8252051b7de6957f06efc394 Issue introduced in 4.17 with commit 93db446a424cee9387b532995e6b516667079555 and fixed in 5.19 with commit 3a745b51cddafade99aaea1b93aad31e9614e230 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-2022-49512 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/mtd/nand/raw/denali_pci.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/3c68daf4a368cd9e63ae5a2145c9e4a6f838c166 https://git.kernel.org/stable/c/3830dbdfb9a4aec680e43ed80b9f23db7a88eac9 https://git.kernel.org/stable/c/87149cf9186201a63f0e0b93d9fa93d480bcb771 https://git.kernel.org/stable/c/efea1dd176edd17c8252051b7de6957f06efc394 https://git.kernel.org/stable/c/3a745b51cddafade99aaea1b93aad31e9614e230