Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6E5FB39F160 for ; Sun, 19 Jul 2026 14:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473142; cv=none; b=jVBJPO0pcTToiERhq2LL0edY+B5TdJK3hQ5cj83h2nT9S3jfUlEVFCa3+skkIlU5SD7//snTtjamLNsz7xqCRrwG9DOU9UbJE22B0PBDt2wIieF5kEDjxFQ5PGYa/uEtv/OvWJevuAmIifgLPaPDQC4FHHR6PIZo1pG32XigOAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473142; c=relaxed/simple; bh=wsP1P+OtKB1QtxYcDw/IYFHN8yyaZ0/jIz7YpiZ2+Dk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L2zrCB7LcWVbOtzIh08Z1M/YjjCvk5Q+cx0w+NrXDd2sWeyvyANWfcYciO9EFduyXmH9vC0WWyaU0obfqop3prYdXqpw2ZRTrdhOBHzTB18ySFht2IrUTkkrUeH892muLTLe8LmJDamuyOFnuC5D0xqWIZ8JaF60XgdMw1wVRbg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c3OqddO4; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c3OqddO4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1F191F000E9; Sun, 19 Jul 2026 14:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473141; bh=GMgRf3FhGMdEKaI+iERqxJC4Ir8T5HqFIdA2FWvKPaQ=; h=From:To:Cc:Subject:Date:Reply-To; b=c3OqddO40ErqESuoNoROi+EWowbGmp5C+cNguHssugHoiBGOZNj3BYBfCckXbT0nB Qqfp6aNaNns+fzPD+UZ55FhQ2e39j+9Ru5V++SOsGMGRSX1WMVsx4WiUaxnwzNYuQU bfWEotz/btACSRKpZIbpY+JZe+C4V1M5I4oSa03o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63883: serial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ Date: Sun, 19 Jul 2026 16:55:43 +0200 Message-ID: <2026071939-CVE-2026-63883-bdaa@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3542; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5muAXjpA4/UhG0lzfrY+T3GDkfx3g6OK0FEAnjyuPSE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT7P/cEw1WpF7gVVB/uiMeK89LVfurftUtEM61m2vc XR/gt+zjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIil8MC07d7ftVmVxqVBsW ah664cRViwivHIYFPZ8mVvQfuvWl7USo/5eUz8Iuf/a/AQA= 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: serial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ When uart_flush_buffer() runs before the DMA completion IRQ is delivered, the following race can occur (all steps serialized by uart_port_lock): 1. DMA starts: tx_remaining = N, kfifo contains N bytes 2. DMA completes in hardware; IRQ is pending but not yet delivered 3. uart_flush_buffer() acquires the port lock and calls kfifo_reset(), making kfifo_len() = 0 while tx_remaining remains N 4. uart_flush_buffer() releases the port lock 5. DMA IRQ fires; handle_tx_dma() acquires the port lock and calls uart_xmit_advance(uport, tx_remaining) on an empty kfifo uart_xmit_advance() increments kfifo->out by tx_remaining. Since kfifo_reset() already set both in and out to 0, out wraps past in, causing kfifo_len() to return UART_XMIT_SIZE - tx_remaining. The next start_tx_dma() call then submits a DMA transfer of stale buffer data. Fix this by snapshotting kfifo_len() at the start of handle_tx_dma() and skipping uart_xmit_advance() when fifo_len < tx_remaining, which indicates the kfifo was reset by a preceding flush. The Linux kernel CVE team has assigned CVE-2026-63883 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 6.6.143 with commit c91ea13375f70f6271a0183445e34e83b8f4d8f7 Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 6.12.93 with commit b1159dce10b38eb795e4c96cdc4d34b83cec81c5 Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 6.18.35 with commit 654f45a8569f3cd6ff20bd724a18e0cce65893ba Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 7.0.12 with commit 0d2c41a8b00934ddf8a7c1b4cf72dffa1e629c46 Issue introduced in 6.3 with commit 2aaa43c7077833301c237684cd7bc9ae5e3dec95 and fixed in 7.1 with commit 452d6fa37ae9b021f4f6d397dbae077f7296f6f4 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-63883 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/c91ea13375f70f6271a0183445e34e83b8f4d8f7 https://git.kernel.org/stable/c/b1159dce10b38eb795e4c96cdc4d34b83cec81c5 https://git.kernel.org/stable/c/654f45a8569f3cd6ff20bd724a18e0cce65893ba https://git.kernel.org/stable/c/0d2c41a8b00934ddf8a7c1b4cf72dffa1e629c46 https://git.kernel.org/stable/c/452d6fa37ae9b021f4f6d397dbae077f7296f6f4