CVE-2024-44951

serial: sc16is7xx: fix TX fifo corruption

State
Published
Severity
7.8 High
Published
Sep 4, 2024
Updated
Oct 30, 2026
Reserved
Aug 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4b068e55bf5ea7bab4d8a282c6a24b03e80c0b68 to before 263682f5669ceeb70b14b4eda209fb34d67331ecAffected
  • 9879e1bec3c0f077427dd0d258c80c63ce9babdf to before 2a0ba376cdf729b5c66226c65c6c7cf9de744d52Affected
  • 4409df5866b7ff7686ba27e449ca97a92ee063c9 to before 09cfe05e9907f3276887a20e267cc40e202f4fddAffected
  • 4409df5866b7ff7686ba27e449ca97a92ee063c9 to before 133f4c00b8b2bfcacead9b81e7e8edfceb4b06c4Affected
  • dbe196ca489f3833e0f9eeb86ac346194f131c91Affected
  • 6.1.76 to before 6.1.191Affected
  • 6.6.15 to before 6.6.160Affected
  • 6.7.3 to before 6.8Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.10.5 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.