Skip to content
Heist/ feed
High

serial: sc16is7xx: fix TX fifo corruption

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2024-44951

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-44951

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "9879e1bec3c0f077427dd0d258c80c63ce9babdf",
        "lessThan": "2a0ba376cdf729b5c66226c65c6c7cf9de744d52",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4409df5866b7ff7686ba27e449ca97a92ee063c9",
        "lessThan": "09cfe05e9907f3276887a20e267cc40e202f4fdd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4409df5866b7ff7686ba27e449ca97a92ee063c9",
        "lessThan": "133f4c00b8b2bfcacead9b81e7e8edfceb4b06c4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4b068e55bf5ea7bab4d8a282c6a24b03e80c0b68",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "dbe196ca489f3833e0f9eeb86ac346194f131c91",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6.6.15",
        "lessThan": "6.6.160",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.1.76",
        "lessThan": "6.2",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.7.3",
        "lessThan": "6.8",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "drivers/tty/serial/sc16is7xx.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.8"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.8",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.10.5",
        "versionType": "semver",
        "lessThanOrEqual": "6.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.11",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/tty/serial/sc16is7xx.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-44951

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#45900 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement