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 79A0C33DD for ; Wed, 1 May 2024 12:58:18 +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=1714568298; cv=none; b=dE/+igqN5BalL2D0C/rHAeVgUNMUIR4c1BurwKxBvWk6Ce9g+13+dwALVEZr0zX5uuz0fDqlPPNv6mtLvT5B+MtkWrpbH++yUbUlr/ZL4JjFrye8Zzzj5vsmRxu81YUXT9LFu9BFWGaYSk5xSPPoY2/V17FIfRkg+Nuz95EJp94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568298; c=relaxed/simple; bh=LIfBaAsePsnU7Q0oDmy9gpXgDBT+ZT9VK5IfKCRQjCY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tqsxSyYcAjzZFQPrNmV8R0onBbpsxYNeNWITiJ9aSBd2bPLYCXRV1lRa/9O9lTYsQFI+3MdeivLUWc/Gg21O/I8XnQPiglioX8rAmnPdfnyD4syB5ImUh1Y4FomqDR7TBk4Q9bfXMRSTKiWRXrIC273eneWoiABHW5CbIyyf4eQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ws5GCYH9; 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="ws5GCYH9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D5DC4AF18; Wed, 1 May 2024 12:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568298; bh=LIfBaAsePsnU7Q0oDmy9gpXgDBT+ZT9VK5IfKCRQjCY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ws5GCYH9DEaZzTeqeVgqnDbZd9bUHO5tE3W39ap8Cn5xFKPE8jqMc23vk5tpWhvQU F7NGj6xKgC1qBkQgKYSZivxcgx499pczxW2eEbSUdmYbuZ1LngHWXgTkN6IG5vYOk4 ooBG/zE/nrm2sROm0As/aojooiTsQTjoemKk3je8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27028: spi: spi-mt65xx: Fix NULL pointer access in interrupt handler Date: Wed, 1 May 2024 14:57:13 +0200 Message-ID: <2024050110-CVE-2024-27028-42f0@gregkh> X-Mailer: git-send-email 2.44.0 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=3057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LIfBaAsePsnU7Q0oDmy9gpXgDBT+ZT9VK5IfKCRQjCY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGNmoekxWmXNl+X/rnN7WSgu1Wm/uOhW1N/nB1EtfM+ XYLm8/YdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvoswLDg7n+WJ4ZOdMy47 ssll7Hqu9Sbp+UqGBecL7pzdrmt6NnO5Xpif4GYZvVjPxwA= 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-mt65xx: Fix NULL pointer access in interrupt handler The TX buffer in spi_transfer can be a NULL pointer, so the interrupt handler may end up writing to the invalid memory and cause crashes. Add a check to trans->tx_buf before using it. The Linux kernel CVE team has assigned CVE-2024-27028 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 4.19.311 with commit 2342b05ec534 Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 5.4.273 with commit 55f8ea6731aa Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 5.10.214 with commit bcfcdf196980 Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 5.15.153 with commit c10fed329c1c Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 6.1.83 with commit 766ec94cc574 Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 6.6.23 with commit 62b1f837b15c Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 6.7.11 with commit bea82355df9e Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 6.8.2 with commit 1784053cf10a Issue introduced in 4.11 with commit 1ce24864bff4 and fixed in 6.9-rc1 with commit a20ad45008a7 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-27028 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-mt65xx.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/2342b05ec5342a519e00524a507f7a6ea6791a38 https://git.kernel.org/stable/c/55f8ea6731aa64871ee6aef7dba53ee9f9f3b2f6 https://git.kernel.org/stable/c/bcfcdf19698024565eff427706ebbd8df65abd11 https://git.kernel.org/stable/c/c10fed329c1c104f375a75ed97ea3abef0786d62 https://git.kernel.org/stable/c/766ec94cc57492eab97cbbf1595bd516ab0cb0e4 https://git.kernel.org/stable/c/62b1f837b15cf3ec2835724bdf8577e47d14c753 https://git.kernel.org/stable/c/bea82355df9e1c299625405b1947fc9b26b4c6d4 https://git.kernel.org/stable/c/1784053cf10a14c4ebd8a890bad5cfe1bee51713 https://git.kernel.org/stable/c/a20ad45008a7c82f1184dc6dee280096009ece55