From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154500; b=EN1fmP8UP+5XhNeEFuExVzCvMAfW3PWPiD7K14AWI+IOlWb58pgtG8RHBiejN+GeGp2B Ojj+MdjJCVwLWlfbHDAWKSHlZVFSh3iAgXK/uxShx0q3PPvGanHomQJURimnI6bBfhUag eBLIxRWaGtSTfxWAIadqmxvv7DAIFkM44W0Vko4mAePugiavZzSl8d7QnGUS7yDcJAq2B 3vmgSdfBdLja7ObINoI1Ft9AIY2QbIv2UUvFKcySntsu/T+jTPmLwaWRINROcit/s+mCy KrpE+HQrelcg0f/KAT0SnXZASwnT6pRDWo5dHlPfgnZO5IYGWeg6JeYo+vaDR8uia7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154500; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=pLo5gnguEiSzRiqU5O7b/EUTpz83oCt4O0R+LxHGU8E=; b=1odcnU2U1q6HEZ7fZ2pZtFIXNTwyYGBjFpCzxPZF+U94I5HkdJvzjLWYjqDRqFf+xQat dgeulbCReAFdPD5gOjCEEiBw1FtV1/Awnmk+MpOc+GFOX5hj58x0UfdYRkJV5tYii5BOw 5WLYRW9nFkoELSg1dgewFB43pfhBtLtRJdMkjS839k8DiWNpZLf0odBnZ8zfz1ctq7A+4 AxHRuLh1smL/9xFUq6YbF5RKMh7+s092FJ5L4J/Z0C6Ai1iFonvXu48nOvgmuUuimJ1ed FQxgV9+PXoROcTqs1juwMheZKbA1waxK1W6F7cViEwIoQDcuHTRbfHaL3qHbj2XKddA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XYtZIi+l; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83897606A339 for ; Fri, 20 Nov 2026 06:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XYtZIi+l Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9480C1F000C6; Fri, 20 Nov 2026 06:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154500; bh=pLo5gnguEiSzRiqU5O7b/EUTpz83oCt4O0R+LxHGU8E=; h=From:To:Cc:Subject:Date:Reply-To; b=XYtZIi+lvAtNn+HCuAuCMmX2bZbXORgwlvdS2pV2U30t7/iBT62v/KzP1bNTSI0fW 8EMj1r7jbr3aQHuAn6uVZBjiojWIxxha72YN71VxnMROSEI/VC9mHYtNij+lpP6DNV XYjXUVnkPlw9URLHGwI8siSyoTY/5raMTpS/fbW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99766: scsi: aic79xx: Fix NULL pointer dereference in device reset Date: Fri, 20 Nov 2026 06:52:32 +0100 Message-ID: <2026112026-CVE-2026-99766-df08@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3003; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gdFsFvjRwkyVkA+jCVWCuEcdE/CbV2AEmdOXIQK2aAA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7y/i+HRi79yyE//vl0Q+8eZwbC97+Pjiqvz0NS9+d zRfOf9nakcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMxDmPYcHa8NDHLAL5WVXT mJLdqyt62FKMbjIs6DtS08u3Y8vuL0/Tb+Varv/I17f2FwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: aic79xx: Fix NULL pointer dereference in device reset Since commit c67e63800446 ("scsi: aic79xx: Do not reference SCSI command when resetting device") the device reset SCB has no SCSI command, but ahd_linux_dev_reset() still sets its residual, and ahd_abort_scbs(), which completes it, sets its status. Seen on an AIC-7902 when a failing disk triggered a device reset, which killed the SCSI error handler: BUG: kernel NULL pointer dereference, address: 0000009c EIP: ahd_linux_dev_reset.cold+0xee/0x26e Add NULL command checks to the accessors in aic79xx_osm.h. Also skip autosense for an SCB without a command and complete it with ahd_done() right away: the REQUEST SENSE path can clear SCB_DEVICE_RESET, after which ahd_done() would dereference the missing command. The Linux kernel CVE team has assigned CVE-2026-99766 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit c67e63800446f9c72e362fe6f5e0c623fbe2e394 and fixed in 6.12.118 with commit 8eba199dce256eaa2ee3da460588f2ba5494a4d5 Issue introduced in 6.7 with commit c67e63800446f9c72e362fe6f5e0c623fbe2e394 and fixed in 6.18.64 with commit 856e3bf320c777b4676d58166745d1c96670574e Issue introduced in 6.7 with commit c67e63800446f9c72e362fe6f5e0c623fbe2e394 and fixed in 7.3.5 with commit dab8971b78d13d0aaca40e96feb6188b85d3c752 Issue introduced in 6.7 with commit c67e63800446f9c72e362fe6f5e0c623fbe2e394 and fixed in 7.4-rc2 with commit f057a8bfeb6ff89c65e95540b8700a53c66d4a31 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-2026-99766 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/scsi/aic7xxx/aic79xx_core.c drivers/scsi/aic7xxx/aic79xx_osm.h 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/8eba199dce256eaa2ee3da460588f2ba5494a4d5 https://git.kernel.org/stable/c/856e3bf320c777b4676d58166745d1c96670574e https://git.kernel.org/stable/c/dab8971b78d13d0aaca40e96feb6188b85d3c752 https://git.kernel.org/stable/c/f057a8bfeb6ff89c65e95540b8700a53c66d4a31