Skip to content
Heist/ feed
Unrated

serial: protect uart_port_dtr_rts() in uart_shutdown() too

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: serial: protect uart_port_dtr_rts() in uart_shutdown() too Commit af224ca2df29 (serial: core: Prevent unsafe uart port access, part 3) added few uport == NULL checks. It added one to uart_shutdown(), so the commit assumes, uport can be NULL in there. But right after that protection, there is an unprotected "uart_port_dtr_rts(uport, false);" call. That is invoked only if HUPCL is set, so I assume that is the reason why we do not see lots of these reports. Or it cannot be NULL at this point at all for some reason :P. Until the above is investigated, stay on the safe side and move this dereference to the if too. I got this inconsistency from Coverity under CID 1585130. Thanks.

Announced Group revision 1
Original source ↗

CVE-2024-50058

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-50058

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": "af224ca2df297440448b9d407d21b50982c6d532",
        "lessThan": "2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af224ca2df297440448b9d407d21b50982c6d532",
        "lessThan": "399927f0f875b93f3d5a0336d382ba48b8671eb2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af224ca2df297440448b9d407d21b50982c6d532",
        "lessThan": "d7b5876a6e74cdf8468a478be6b23f2f5464ac7a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af224ca2df297440448b9d407d21b50982c6d532",
        "lessThan": "e418d91195d29d5f9c9685ff309b92b04b41dc40",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af224ca2df297440448b9d407d21b50982c6d532",
        "lessThan": "76ed24a34223bb2c6b6162e1d8389ec4e602a290",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af224ca2df297440448b9d407d21b50982c6d532",
        "lessThan": "602babaa84d627923713acaf5f7e9a4369e77473",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/tty/serial/serial_core.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.7",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.229",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.170",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.115",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.57",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.11.4",
        "versionType": "semver",
        "lessThanOrEqual": "6.11.*"
      },
      {
        "status": "unaffected",
        "version": "6.12",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/tty/serial/serial_core.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-50058

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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