Skip to contentSkip to conversation

CVE-2026-93123: serial: qcom-geni: do not advance stale DMA completions

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

serial: qcom-geni: do not advance stale DMA completions

The qcom GENI serial DMA TX completion path advances the transmit fifo by the number of bytes recorded in port->tx_remaining.

If uart_flush_buffer() runs after the hardware has completed a DMA transfer but before the DMA completion interrupt has been handled, the serial core resets the transmit fifo while port->tx_remaining still describes the old DMA transfer.

A previous fix avoided advancing an empty fifo by checking that the fifo length is at least tx_remaining. That still does not distinguish the old DMA payload from new bytes written after the flush. If userspace writes new data before the stale DMA completion interrupt is handled, the fifo can again contain at least tx_remaining bytes and the stale completion can advance and discard those new bytes.

Mark an in-flight DMA transfer stale when the transmit fifo is flushed. The later completion still unprepares the original DMA mapping using the saved length, but it no longer advances the transmit fifo.

The Linux kernel CVE team has assigned CVE-2026-93123 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 6.12.110 with commit 231c84fe7ec40e4a06c398c0591d5b8e823d68e1
	Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 6.18.52 with commit c02d030747c46da33faf406dd772ef91100efa27
	Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 7.2.6 with commit 59faa59c25a0a098fbc86275408d7c8405015702
	Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 7.3-rc1 with commit 7ea38c49e7178960926657863299face6dc0e1b0

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-93123

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/tty/serial/qcom_geni_serial.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/231c84fe7ec40e4a06c398c0591d5b8e823d68e1
	https://git.kernel.org/stable/c/c02d030747c46da33faf406dd772ef91100efa27
	https://git.kernel.org/stable/c/59faa59c25a0a098fbc86275408d7c8405015702
	https://git.kernel.org/stable/c/7ea38c49e7178960926657863299face6dc0e1b0