{"id":"CVE-2026-63883","aliases":["CVE-2026-63883"],"related":[],"kind":"vulnerability","state":"published","title":"serial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ\n\nWhen uart_flush_buffer() runs before the DMA completion IRQ is delivered,\nthe following race can occur (all steps serialized by uart_port_lock):\n\n  1. DMA starts: tx_remaining = N, kfifo contains N bytes\n  2. DMA completes in hardware; IRQ is pending but not yet delivered\n  3. uart_flush_buffer() acquires the port lock and calls kfifo_reset(),\n     making kfifo_len() = 0 while tx_remaining remains N\n  4. uart_flush_buffer() releases the port lock\n  5. DMA IRQ fires; handle_tx_dma() acquires the port lock and calls\n     uart_xmit_advance(uport, tx_remaining) on an empty kfifo\n\nuart_xmit_advance() increments kfifo->out by tx_remaining. Since\nkfifo_reset() already set both in and out to 0, out wraps past in,\ncausing kfifo_len() to return UART_XMIT_SIZE - tx_remaining. The next\nstart_tx_dma() call then submits a DMA transfer of stale buffer data.\n\nFix this by snapshotting kfifo_len() at the start of handle_tx_dma()\nand skipping uart_xmit_advance() when fifo_len < tx_remaining, which\nindicates the kfifo was reset by a preceding flush.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ\n\nWhen uart_flush_buffer() runs before the DMA completion IRQ is delivered,\nthe following race can occur (all steps serialized by uart_port_lock):\n\n  1. DMA starts: tx_remaining = N, kfifo contains N bytes\n  2. DMA completes in hardware; IRQ is pending but not yet delivered\n  3. uart_flush_buffer() acquires the port lock and calls kfifo_reset(),\n     making kfifo_len() = 0 while tx_remaining remains N\n  4. uart_flush_buffer() releases the port lock\n  5. DMA IRQ fires; handle_tx_dma() acquires the port lock and calls\n     uart_xmit_advance(uport, tx_remaining) on an empty kfifo\n\nuart_xmit_advance() increments kfifo->out by tx_remaining. Since\nkfifo_reset() already set both in and out to 0, out wraps past in,\ncausing kfifo_len() to return UART_XMIT_SIZE - tx_remaining. The next\nstart_tx_dma() call then submits a DMA transfer of stale buffer data.\n\nFix this by snapshotting kfifo_len() at the start of handle_tx_dma()\nand skipping uart_xmit_advance() when fifo_len < tx_remaining, which\nindicates the kfifo was reset by a preceding flush.","source":"cvelist"}],"published":"2026-07-19T14:54:56.356Z","modified":"2026-11-12T20:00:16.807Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"2aaa43c7077833301c237684cd7bc9ae5e3dec95","fixed":"c91ea13375f70f6271a0183445e34e83b8f4d8f7","status":"affected"},{"type":"git","introduced":"2aaa43c7077833301c237684cd7bc9ae5e3dec95","fixed":"b1159dce10b38eb795e4c96cdc4d34b83cec81c5","status":"affected"},{"type":"git","introduced":"2aaa43c7077833301c237684cd7bc9ae5e3dec95","fixed":"654f45a8569f3cd6ff20bd724a18e0cce65893ba","status":"affected"},{"type":"git","introduced":"2aaa43c7077833301c237684cd7bc9ae5e3dec95","fixed":"0d2c41a8b00934ddf8a7c1b4cf72dffa1e629c46","status":"affected"},{"type":"git","introduced":"2aaa43c7077833301c237684cd7bc9ae5e3dec95","fixed":"452d6fa37ae9b021f4f6d397dbae077f7296f6f4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.143","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.93","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.35","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.12","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.3","fixed":"6.6.143"},{"status":"affected","introduced":"6.7","fixed":"6.12.93"},{"status":"affected","introduced":"6.13","fixed":"6.18.35"},{"status":"affected","introduced":"6.19","fixed":"7.0.12"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c91ea13375f70f6271a0183445e34e83b8f4d8f7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1159dce10b38eb795e4c96cdc4d34b83cec81c5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/654f45a8569f3cd6ff20bd724a18e0cce65893ba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d2c41a8b00934ddf8a7c1b4cf72dffa1e629c46","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/452d6fa37ae9b021f4f6d397dbae077f7296f6f4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63883","url":"https://www.cve.org/CVERecord?id=CVE-2026-63883","licence":"CVE Terms of Use","modified":"2026-08-05T12:36:52.126Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63883","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63883","licence":"Public domain","modified":"2026-11-12T20:00:16.807Z"}],"updatedAt":"2026-11-25T22:59:28.792Z","epss":{"score":0.00132,"percentile":0.02963,"date":"2026-12-01T12:00:22.000Z"}}