CVE-2024-44951: serial: sc16is7xx: fix TX fifo corruption
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 kfifooutlinearptr() in sc16is7xxhandletx() 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-44951?
CVE-2024-44951 is classified with a moderate severity level due to its potential impact on data integrity in the Linux kernel.
Which versions of the Linux kernel are affected by CVE-2024-44951?
CVE-2024-44951 affects Linux kernel versions from 6.1.76 to 6.2, as well as later versions up to 6.11-rc2.
How do I fix CVE-2024-44951?
To fix CVE-2024-44951, upgrade your Linux kernel to a patched version that addresses this vulnerability.
What type of vulnerability is CVE-2024-44951?
CVE-2024-44951 is a vulnerability related to TX FIFO corruption occurring in the serial driver for the sc16is7xx chipset within the Linux kernel.
What are the potential consequences of CVE-2024-44951?
The potential consequences of CVE-2024-44951 include data corruption during transmission, which may disrupt communication processes.