Look up another CVE · open CVE-2024-44951 in the interactive tracker
CVE-2024-44951
serial: sc16is7xx: fix TX fifo corruption
Published 2024-09-04 (2 years ago) by the Linux kernel CNA. Subsystem drivers/tty. Debian urgency: not yet assigned.
Debian does not build this code. The per-release build detail is under "Where it lives" below.
What to do, per Debian release
Debian's own status for CVE-2024-44951 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.10.6-1 | Update the kernel and reboot. Fixed in 6.10.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.10.6-1 | Update the kernel and reboot. Fixed in 6.10.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.10.6-1 | Update the kernel and reboot. Fixed in 6.10.6-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
Sometimes, when a packet is received on channel A at almost the same time as a packet is about to be transmitted on channel B, we observe with a logic analyzer that the received packet on channel A is transmitted on channel B. In other words, the Tx buffer data on channel B is corrupted with data from channel A. The problem appeared since commit 4409df5866b7 ("serial: sc16is7xx: change EFR lock to operate on each channels"), which changed the EFR locking to operate on each channel instead of chip-wise. This commit has introduced a regression, because the EFR lock is used not only to protect the EFR registers access, but also, in a very obscure and undocumented way, to protect access to the data buffer, which is shared by the Tx and Rx handlers, but also by each channel of the IC. Fix this regression first by switching to kfifo_out_linear_ptr() in sc16is7xx_handle_tx() to eliminate the need for a shared Rx/Tx buffer. Secondly, replace the chip-wise Rx buffer with a separate Rx buffer for each channel.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
drivers/tty/serial/sc16is7xx.c
- What this is
- TTY LAYER AND SERIAL DRIVERSMAINTAINERS section matched on drivers/tty/ · linux-kernel@vger.kernel.org · Supported
Check it on the machine
grep -wE 'CONFIG_SERIAL_SC16IS7XX|CONFIG_SERIAL_SC16IS7XX_CORE' /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
Show whether Debian builds this, per release
Debian does not build this code. In 4 releases below, every kernel flavour Debian publishes has the switch off, so the vulnerable file is compiled into no kernel binary Debian ships.
- bookworm, trixie, forky, sidn
- n
- not enabled on any flavour - this release does not build the code
- Build switches
- CONFIG_SERIAL_SC16IS7XX, CONFIG_SERIAL_SC16IS7XX_CORE
- Reads as
- all on means the file is compiled; any one off means it is not.
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2024-09-04 (2 years ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.18%, higher than 7.2% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- drivers/tty
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 6.8 | 6.10.5 | 09cfe05e9907 |
| 6.8 | 6.11 | 133f4c00b8b2 |
| 6.1.76 | 0 | 0 |
| 6.6.15 | 0 | 0 |
| 6.7.3 | 0 | 0 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- Both sides of the race are driven purely from local userspace — `write(2)` on one `/dev/ttySC*` node queues `tx_work` into the chip kworker while `read(2)`/incoming traffic on the sibling channel runs the threaded-IRQ RX handler. No network path exists, but no physical access is needed either, since the corrupting write and the observable leak both occur through tty device nodes.
- AC:LAttack complexity, low
- The unprotected window spans an entire SPI/I²C bus transfer of up to 64 bytes, and the attacker can keep one channel transmitting continuously to re-arm the race indefinitely at no cost. The upstream report confirms the corruption occurs spontaneously under normal dual-channel traffic, so no condition beyond the attacker's control is required.
- PR:LPrivileges required, low
- The attacker needs only open/read/write access to one of the chip's tty nodes, which on the embedded, industrial and automotive systems using SC16IS75x/76x bridges is granted to ordinary users via the dialout group or service accounts. No CAP_SYS_ADMIN or root is required anywhere on the path.
- UI:NUser interaction, none
- The race is triggered by the attacker's own writes racing against ambient traffic on the sibling channel; no victim action is needed. The victim process is affected simply by using its own serial port normally.
- S:UScope, unchanged
- The vulnerable driver and all impacted resources (the tty ports it manages) are within the same kernel security authority. No VM, IOMMU or sandbox boundary is crossed.
- C:HConfidentiality impact, high
- The race copies one channel's data into the other's stream in both directions — channel A's received bytes are emitted on channel B's physical wire, and channel B's transmit payload appears in channel A's tty read buffer where a different, lower-privileged user can read it. Because the attacker can sustain the race by flooding its own channel, a large fraction of the victim channel's traffic (console output, credentials, modem/AT sequences, metering or control data) can be harvested over time.
- I:HIntegrity impact, high
- Attacker-supplied bytes written to one tty are injected into the other channel's receive stream and are consumed by the victim as legitimate serial input — including passing through `uart_handle_sysrq_char()` on a console channel — while the victim's intended TX payload is silently replaced with foreign data on the wire. This is unauthenticated modification of another security context's data stream and of the commands actually delivered to attached hardware.
- A:HAvailability impact, high
- Data taken from `xmit_fifo` by `uart_fifo_out()` is destroyed when overwritten, so the victim channel's traffic is permanently lost, and the attacker can sustain this by keeping its own channel busy. For the RS-485 control buses, modem links and serial consoles these bridge chips serve, continuous corruption renders the link unusable — a total loss of that communication resource.