7.8high
serial: sc16is7xx: fix TX fifo corruption
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: serial: sc16is7xx: fix TX fifo corruption 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4b068e55bf5ea7bab4d8a282c6a24b03e80c0b68 before 263682f5669ceeb70b14b4eda209fb34d67331ec, from 9879e1bec3c0f077427dd0d258c80c63ce9babdf before 2a0ba376cdf729b5c66226c65c6c7cf9de744d52, from 4409df5866b7ff7686ba27e449ca97a92ee063c9 before 09cfe05e9907f3276887a20e267cc40e202f4fdd, from 4409df5866b7ff7686ba27e449ca97a92ee063c9 before 133f4c00b8b2bfcacead9b81e7e8edfceb4b06c4, dbe196ca489f3833e0f9eeb86ac346194f131c91, from 6.1.76 before 6.1.191, from 6.6.15 before 6.6.160, from 6.7.3 before 6.8 and 1 more Not affected: before 6.8, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.10.5 up to 6.10.*, from 6.11 up to * | CVE List |
| linux linux_kernel | from 6.1.76 before 6.2, from 6.6.15 before 6.7, from 6.7.3 before 6.8, from 6.8 before 6.10.5, 6.11 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: serial: sc16is7xx: fix TX fifo corruption 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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: serial: sc16is7xx: fix TX fifo democracy A veces, cuando se recibe un paquete en el canal A casi al mismo tiempo que se va a transmitir un paquete en el canal B, observamos con un analizador lógico que el paquete recibido en el canal A se transmite en el canal B. En otras palabras, los datos del búfer de Tx en el canal B están dañados con datos del canal A. El problema apareció desde el commit 4409df5866b7 ("serial: sc16is7xx: change EFR lock to operate on each channels"), que cambió el bloqueo de EFR para que funcione en cada canal en lugar de en todo el chip. Este commit ha introducido una regresión, porque el bloqueo de EFR se utiliza no solo para proteger el acceso a los registros de EFR, sino también, de una forma muy oscura y no documentada, para proteger el acceso al búfer de datos, que es compartido por los manejadores de Tx y Rx, pero también por cada canal del IC. Primero, solucione esta regresión cambiando a kfifo_out_linear_ptr() en sc16is7xx_handle_tx() para eliminar la necesidad de un búfer Rx/Tx compartido. En segundo lugar, reemplace el búfer Rx por chip con un búfer Rx separado para cada canal.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-44951 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2024-44951 changed 2026-10-30 | Public domain |