CVE-2024-44951CWE-667

CVE-2024-44951

High · published September 4, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
6.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00174 · 6.5th percentile
Weakness
CWE-667 · Improper Locking
Published
2024-09-04T23:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 6.1.76, < 6.26.2
linux/linux_kernel≥ 6.6.15, < 6.76.7
linux/linux_kernel≥ 6.7.3, < 6.86.8
linux/linux_kernel≥ 6.8, < 6.10.56.10.5
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (3)
EPSS history
Timeline
  • 04 SEP 18:35Z
    serial: sc16is7xx: fix TX fifo corruption
    cvelistv5