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 06E3C218823 for ; Wed, 26 Feb 2025 02:15:15 +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=1740536119; cv=none; b=scyLUfcJTFERnePo1WVlzuK/+zYGwrg84kJyYifFqu+cDYhiU/NUttAgVfVrL94dTqZKE+XQbpkHtOFDDdje+baMzTRuIxcaKEU+66J7YkOURv2Ik5hzmLDWSDTD2L0GBkNA9RJlO7+J+euIYV6GUeGycHx5KfU54BaWHvEmvZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536119; c=relaxed/simple; bh=Q0qcMdVhcGOqkuSgpImUW0LYvMQXpqAlBmCJkw9IP8c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IFoXtlnqvkKilmFGrSv3N/kFF5L14ZSdLD99iewjBggyks+cKsEA+hxONDBmM1nLXoRR4nDdQnGP5qq1LQtap5SnvT0XQ+9OGKwGNOXwHhngasUpmq73XeBsbhcCKEPFcnneeQAPMiEzc+u+gkJJn6ZNei1E/UEtVWEK6YbEhUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fxw1pysj; 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="fxw1pysj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EBFFC4CEE6; Wed, 26 Feb 2025 02:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536115; bh=Q0qcMdVhcGOqkuSgpImUW0LYvMQXpqAlBmCJkw9IP8c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fxw1pysj4jpwSB6ZMg7tTaHuzS4ovvYdfLtZex1a7iO87UJ1xTUSyWuw7jbH6HQmX M75Pvb6mjrXtwKZCQL79FIpY/uG0WC9RSw4oZYi+nh4FhmO56ndrbwbLOhf2YiFO7p El8PcAjW0IMP8BezP6TM7fItB0Tms1aCLRpNsltA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49475: spi: spi-fsl-qspi: check return value after calling platform_get_resource_byname() Date: Wed, 26 Feb 2025 03:12:29 +0100 Message-ID: <2025022603-CVE-2022-49475-9398@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=2584; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q0qcMdVhcGOqkuSgpImUW0LYvMQXpqAlBmCJkw9IP8c=; b=kA0DAAIRMUfUDdst+ykByyZiAGe+d/uiUrDS2/WDVnYe4m92wRUGGWPUQIPOJ/vibF6XfLUBX YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme+d/sACgkQMUfUDdst+ym/gACgmlR0 FfquWP8Revw/U5AiLrUdRxYAoNKJCe0ZVXmhHoEqspP6RdrAT3op 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: spi: spi-fsl-qspi: check return value after calling platform_get_resource_byname() It will cause null-ptr-deref if platform_get_resource_byname() returns NULL, we need check the return value. The Linux kernel CVE team has assigned CVE-2022-49475 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 858e26a515c28df3ef542d9c09493b54a329d6cf and fixed in 5.10.121 with commit 560dcbe1c7a78f597f2167371ebdbe2bca3d0735 Issue introduced in 5.8 with commit 858e26a515c28df3ef542d9c09493b54a329d6cf and fixed in 5.15.46 with commit 10f537219629769498ecb8515e096be213224c24 Issue introduced in 5.8 with commit 858e26a515c28df3ef542d9c09493b54a329d6cf and fixed in 5.17.14 with commit 33dda87d04598ac5d9a849218a373443f7d3de66 Issue introduced in 5.8 with commit 858e26a515c28df3ef542d9c09493b54a329d6cf and fixed in 5.18.3 with commit 9d9c84825c3ec359b165c762a424cfdefe87fdd7 Issue introduced in 5.8 with commit 858e26a515c28df3ef542d9c09493b54a329d6cf and fixed in 5.19 with commit a2b331ac11e1cac56f5b7d367e9f3c5796deaaed 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-49475 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/spi/spi-fsl-qspi.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/560dcbe1c7a78f597f2167371ebdbe2bca3d0735 https://git.kernel.org/stable/c/10f537219629769498ecb8515e096be213224c24 https://git.kernel.org/stable/c/33dda87d04598ac5d9a849218a373443f7d3de66 https://git.kernel.org/stable/c/9d9c84825c3ec359b165c762a424cfdefe87fdd7 https://git.kernel.org/stable/c/a2b331ac11e1cac56f5b7d367e9f3c5796deaaed