Skip to content
Heist/ feed
High

Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor() KASAN reports that there's a use-after-free in hci_remove_adv_monitor(). Trawling through the disassembly, you can see that the complaint is from the access in bt_dev_dbg() under the HCI_ADV_MONITOR_EXT_MSFT case. The problem case happens because msft_remove_monitor() can end up freeing the monitor structure. Specifically: hci_remove_adv_monitor() -> msft_remove_monitor() -> msft_remove_monitor_sync() -> msft_le_cancel_monitor_advertisement_cb() -> hci_free_adv_monitor() Let's fix the problem by just stashing the relevant data when it's still valid.

Announced Source revision 1
Original source ↗

CVE-2023-54210

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-2023-54210

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": "7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c",
        "lessThan": "0d4d6b083da9b033ddccef72d77f373c819ae3ea",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c",
        "lessThan": "bf00c2c8f6254f44ac041aa9a311ae9e0caf692b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c",
        "lessThan": "de6dfcefd107667ce2dbedf4d9337f5ed557a4a1",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/bluetooth/hci_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": "6.0"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.42",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.4.7",
        "versionType": "semver",
        "lessThanOrEqual": "6.4.*"
      },
      {
        "status": "unaffected",
        "version": "6.5",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/bluetooth/hci_core.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2023-54210

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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