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=1795153991; b=RZaKn4mPqmY2rs5wMIygkW7mikG8N7+B4XgtQWXl0jW3jpfOBrifN4v24HkDAcf89Smr fhsnH2hZZS+OSVlvcq4KS1TsuM8k0aFx9CTFCN2GgGhNqE1xkvHppWKfEZzQZN6my3lhc U7tHD+Mm3FDTK+X9C5Nf7JDAzhprxMybq/W8gIX6sHZ7BBa5ems4qFeYxxRckwoulPM4K BGRUMdnYv3ba0C1Iekl2Rw+1bHgo+HFhRKlnTDmj2s+2lsChwnU3bV7buk3HkST2LTG7E vB872zZNtY3diLFE/19NdO8qcVKWIyDaZg/Zvq11x4vgW3PzDDPvBugPr4lp74AiCuA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795153991; 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=5xfLGlUX8RTkMfA5G5RNAEys429jN3vEawHtz1Uctlo=; b=IWny/KTmi/wfuPGnUbBRDczaz6oFXINXGabmArdonVfhArTnkWzFzPgMzXjmVIlHa8qA EluaTvq2HpXyks2ihTiwfOjtt48JqiZksr5t3iDubrw+e0+8nAdpKxyulDq7PxjVTUoK6 rBYHgEeeT67ZJaBR/9ytCwry5SyFXC2701hfU2iDz/KPuO2rv6Hzf8VjEVCE+UDNAv88k Y8pyz58JXP5sw/dOwS3vF/MmJka3s+fAnjnh/6nLItMF0/QMmBs3VMc0yhl6H+gdyMJh/ f4G3U8tYfYMpD0SwhUY3C1+sg1taUh1L7HMattf6VSScdkdPEZgQnngSGNzIg7jIDmQ== 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=R60nf79s; 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 E7517606A320 for ; Fri, 20 Nov 2026 05:53:10 +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=R60nf79s Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E1A11F000CA; Fri, 20 Nov 2026 05:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795153990; bh=5xfLGlUX8RTkMfA5G5RNAEys429jN3vEawHtz1Uctlo=; h=From:To:Cc:Subject:Date:Reply-To; b=R60nf79sMPTsuNPY6xk1cG+EIyZON0UhOuzwZyz86/p6YKX59am2OI00GKj2MHU3p YOsVDnAgSTQ1FnufeHdLrycQyA45ySuZRB1Bv+Y7Al9ACxGRtX60x5XYZKwUnXVEsa LcKI0nJru8wxi3czSKi+JOE3byT5UIbAtry3SUH4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99587: ata: libata-scsi: reject data-in commands with a data-out buffer Date: Fri, 20 Nov 2026 06:49:33 +0100 Message-ID: <2026112021-CVE-2026-99587-1b85@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=3048; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nNYPXXPRsEmMQY756BSh+IuC1M8jpURqI60QvsrRJT8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7yeWPjf5c3vnisBDE9980Xvzptcm809WwRoJ7mWNW S5Pph+U7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHHjLsGB+ksANrkWuyZd9 snV+y08zyV92PZ9hfsmF4OTAvV4Hpe22lUhlBy8T711dDQA= 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: ata: libata-scsi: reject data-in commands with a data-out buffer SG_IO can submit a data-in SCSI command with DMA_TO_DEVICE. The scatterlist can then contain pages pinned without write access. ata_scsi_rbuf_fill() writes simulated replies to that scatterlist; in the reported case, the copy tried to write the shared zero page and faulted in the kernel. The same mismatch can affect SG_IO commands translated by libata. ZBC IN and GET PHYSICAL ELEMENT STATUS completion handlers can modify the receive buffer even if the drive aborts the command. For ATAPI, the successful INQUIRY completion also rewrites the buffer in atapi_fixup_inquiry(). Reject these mismatched commands before the buffer is written or the command is issued. Report ABORTED COMMAND / DATA IN BUFFER ERROR because the CDB itself can be valid; the supplied transfer direction is wrong. The Linux kernel CVE team has assigned CVE-2026-99587 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.118 with commit cd77d3791e66350541f1c7c5447db2f28857bba4 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.64 with commit f4cfd238e806e6784a7b4ff609a0592382d54df3 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.5 with commit 10c6a917284f584162974767d4e2a0cf411db684 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc2 with commit a4845f077415ef32fe672c841e2fc58ae9e28273 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-99587 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/ata/libata-scsi.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/cd77d3791e66350541f1c7c5447db2f28857bba4 https://git.kernel.org/stable/c/f4cfd238e806e6784a7b4ff609a0592382d54df3 https://git.kernel.org/stable/c/10c6a917284f584162974767d4e2a0cf411db684 https://git.kernel.org/stable/c/a4845f077415ef32fe672c841e2fc58ae9e28273