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=1795099790; b=zcnUbwxHnXVliVCej8gsq4aTp9RceU8/l4ypV4jNXB32ffHmX9v1Eol+uN6J/ceoTsq2 2SIP2FOYE83vWUWwRhYkXwSif5uN1rGy9b5+KAwoZx9jenXHudRAN5aaBdFdjDZUKUD9K /7RdRh0e3NGrB1MmazjFuY5IJtsqwG1gs91bvFVo97tzZ+2vgRSTySrpKPuQXhxdE0ATo NcF5ZGo/pog8Mw8f7h5QSCI4LMl4H/axP3oYKCvkynCKfpuYn3zY0LxmxeyMT9+2cfdOm Fhh6Z1bN+9gjjxE4VeLZzI6f3yFNCH/2jZ2VftglrGzo6drkug82pc3h/K1RXgO7Vnw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099790; 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=GCJVxWYNAdO4UnETu0y5YIxsu5f6TxoPCU4DIxSdd+Q=; b=vRkKfzVznD2w7msKBEcMJff/WEw+at703sObmzNjEZcQWL/4eusP4hJ3mrMyndaf/U2h cAMaRpZBLDdA02Fi6TN1WCVaVI6dPmGYg2ZjGuIrAnp4wGtCdZ2nsen0lL2Oo7kWh+xQq SDCY71b8Kf3W/AJd0rXU5NbeWxqVYXuU1vob6Vp6vLAZz5GpryKacUY06CRYYM8PqEhCZ 8CQdMm/h+NnEOs93UIGjmhiJIUi/FWHVk3lcnuXID0+P9c2jq15cQ+aYNtKPQ1lvFZn7/ cudfobLRRb7qdjvuecyxRQVdZ3UY8lZOd/GhmNBDHLy10CJjrKV3dAyo0W2B7jTvxIw== 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=f0Q66qLm; 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 54A50606B047 for ; Thu, 19 Nov 2026 14:49:49 +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=f0Q66qLm Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE5E01F000C4; Thu, 19 Nov 2026 14:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099789; bh=GCJVxWYNAdO4UnETu0y5YIxsu5f6TxoPCU4DIxSdd+Q=; h=From:To:Cc:Subject:Date:Reply-To; b=f0Q66qLm0DYjwF9Vzh+pBpFn8WRpWApC9zwIo6upi8Ok0Pr61v+HlyiZSxCEfmHwo RcVAz4mSUVmxn8HxGoDr19xGPzItYsCnv3teTGGn/r2rEyJNMazSoiLmAuLYbaF356 iJGjtlJUT5Kmn8VLIExy7VxvUXnL9Q0NH22HSS68= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99447: spi: spi-pci1xxxx: quiesce DMA engines on transfer timeout Date: Thu, 19 Nov 2026 15:25:45 +0100 Message-ID: <2026111906-CVE-2026-99447-6d05@gregkh> X-Mailer: git-send-email 2.56.0 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=4295; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/PP9fedNeYDcCphzUzG3GsW4FVnZ4aHqaAioLX7vs0Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2drUtWPVunrjZ6n4L2JrN3Tz8Us789JwjlzLn7b3G y43FHt1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwER0RRgWHDuqcrSg6u1aEbEX 87Y/S36U22EewDA/x+Oc+J6gao/J6lsOv76csZfTXi0EAA== 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: spi: spi-pci1xxxx: quiesce DMA engines on transfer timeout If a DMA-mapped transfer times out waiting for DMA_TERM and neither DMA abort interrupt arrived, pci1xxxx_spi_transfer_with_dma() returns through the error label while both DMA engines are still enabled, the done/abort interrupt status is still armed and the transfer state (p->xfer, p->tx_sgl, p->rx_sgl) is still registered. The ISRs keep firing afterwards: they reprogram the DMA engines from p->tx_sgl / p->rx_sgl and signal completion through p->xfer and p->spi_xfer_done, all of which the SPI core is free to unmap or reuse once transfer_one() has returned, which is a use-after-free. A late done interrupt can also start the next transfer queued behind the failed one. Stop both DMA engines, drain the pending done/abort interrupt status and synchronize the DMA IRQs before dropping the in-progress state and the transfer pointers, and re-enable the engines afterwards so that subsequent transfers keep working. The engines are only turned back on once both were confirmed to have stopped: re-enabling an engine that failed to stop would cancel the pending stop request and let it keep running into buffers the SPI core is about to unmap or free, which is exactly the window this patch closes. An engine that failed to stop is left disabled, as the abort paths already do. The DMA interrupt status and mask registers are shared between the two SPI instances, so the cleanup drains only this instance's done/abort status bits instead of masking the interrupt lines, which would also suppress the peer instance's completion interrupts. Also make the DMA ISRs ignore interrupts while no transfer is in progress so that a stray MSI after the cleanup can no longer act on the cleared state. No PCI1XXXX hardware was available for testing and QEMU has no model of this PCIe part, so the timeout path was exercised with a userspace replica of the timeout branch and the DMA ISRs, with the register and interrupt accesses mocked: on the unfixed code both a wedged engine that clears after the timeout and a late done interrupt touch the freed transfer state, while with this fix applied neither does and an engine that failed to stop is left disabled. The module was also loaded and unloaded in a QEMU x86_64 guest running a kernel with this fix applied. The Linux kernel CVE team has assigned CVE-2026-99447 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 9538edeb72c989a4b90964ae4bba107eaf21a791 and fixed in 6.18.61 with commit 733552f8c5f5fdce6b2a135dfa2a05ead9f66e91 Issue introduced in 6.9 with commit 9538edeb72c989a4b90964ae4bba107eaf21a791 and fixed in 7.3.2 with commit d858330e288a7818cf6d52ed1bd62153f4cd35c0 Issue introduced in 6.9 with commit 9538edeb72c989a4b90964ae4bba107eaf21a791 and fixed in 7.4-rc1 with commit 0b591332a2bdc13d3f9163793131fe3651d1556a 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-99447 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-pci1xxxx.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/733552f8c5f5fdce6b2a135dfa2a05ead9f66e91 https://git.kernel.org/stable/c/d858330e288a7818cf6d52ed1bd62153f4cd35c0 https://git.kernel.org/stable/c/0b591332a2bdc13d3f9163793131fe3651d1556a