From mboxrd@z Thu Jan 1 00:00:00 1970 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 97F6A21766B for ; Wed, 26 Feb 2025 02:14: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=1740536095; cv=none; b=fvddnhtVHabzfOQYDKx5lhvzIUltwmjOW1skl+v6z6gIUpXmitarVJ7K0w93M9dlvSvxEREpAYdlROhZzzcCqginWL91yRHRVswEl0EPWnULs3yi6GsiBvMXe9RzvtpBVv6XVl16s/JDEfYkitV+EOW5tFdJsA6OaiOkqpADhNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536095; c=relaxed/simple; bh=/u7pvEWX0flEy6BFIZIJh8q4dt5i+dsq4M7tMF/h+y4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EPE+S/nypDQisuMTtV6hMonuJc61NMR5y+kXkjcR5Zbqb1MrcZSPL1K0I/cFnjgj0qWuDNwW/8f3EDs8B2nx1KnYqieYzZr4RCn8bmanxWCCLyLCZqn5Vd1ZMdFgS31cLjbI8nT9nOjpL6f1smQAed6gky7auIzS3d+VprBe7PI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G2i9kzuN; 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="G2i9kzuN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 641D8C4CEDD; Wed, 26 Feb 2025 02:14:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536095; bh=/u7pvEWX0flEy6BFIZIJh8q4dt5i+dsq4M7tMF/h+y4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G2i9kzuN/aWHFsIXAzdRcG8r27ErzrFpve33nWswFI3axcw6/biAxT2dhQ2UBohlw dUhOg4AX9KYbvn3Jtkdsnmz+uGbFeFh1rg8pBVUlf2gaeSHWUZ/gzObbh+5nhTj540 HEet7ZyDeGC7UoRl2BHw2iFqs2M8CNNBS+52fPyg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49487: mtd: rawnand: intel: fix possible null-ptr-deref in ebu_nand_probe() Date: Wed, 26 Feb 2025 03:12:41 +0100 Message-ID: <2025022605-CVE-2022-49487-c710@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=2437; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/u7pvEWX0flEy6BFIZIJh8q4dt5i+dsq4M7tMF/h+y4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv82m6XL5bzfqiu4tXuRwvri3HNP2L6U5SZ5XJu9Y 7mpwZK6jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI4gMMc+VOvmpUPvQtuu2o 7O2ss+t7D8j8M2BYMPPz+SdvJvc12PgsjjvOrbDw5uqZ+wE= 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: intel: fix possible null-ptr-deref in ebu_nand_probe() It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. The Linux kernel CVE team has assigned CVE-2022-49487 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 0b1039f016e8a37c779a4aee362cb2100ebb1cfd and fixed in 5.15.46 with commit e5b1e419cdb6dd8709eb05ed34039a3ded8e6003 Issue introduced in 5.11 with commit 0b1039f016e8a37c779a4aee362cb2100ebb1cfd and fixed in 5.17.14 with commit daa5166450b447415aeeaac0199e445bae7bd0f2 Issue introduced in 5.11 with commit 0b1039f016e8a37c779a4aee362cb2100ebb1cfd and fixed in 5.18.3 with commit f8e262eb7575a4a2412f30f7a1b293875aceba80 Issue introduced in 5.11 with commit 0b1039f016e8a37c779a4aee362cb2100ebb1cfd and fixed in 5.19 with commit ddf66aefd685fd46500b9917333e1b1e118276dc 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-49487 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/intel-nand-controller.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/e5b1e419cdb6dd8709eb05ed34039a3ded8e6003 https://git.kernel.org/stable/c/daa5166450b447415aeeaac0199e445bae7bd0f2 https://git.kernel.org/stable/c/f8e262eb7575a4a2412f30f7a1b293875aceba80 https://git.kernel.org/stable/c/ddf66aefd685fd46500b9917333e1b1e118276dc