CVE-2023-54210
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c before 0d4d6b083da9b033ddccef72d77f373c819ae3ea, from 7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c before bf00c2c8f6254f44ac041aa9a311ae9e0caf692b, from 7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c before de6dfcefd107667ce2dbedf4d9337f5ed557a4a1, 6.0
Not affected: before 6.0, from 6.1.42 up to 6.1.*, from 6.4.7 up to 6.4.*, from 6.5 up to *
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: hci_sync: Evitar uso después de liberación en dbg para hci_remove_adv_monitor() KASAN informa que hay un uso después de liberación en hci_remove_adv_monitor(). Revisando el desensamblado, se puede ver que la queja proviene del acceso en bt_dev_dbg() bajo el caso HCI_ADV_MONITOR_EXT_MSFT. El caso problemático ocurre porque msft_remove_monitor() puede terminar liberando la estructura del monitor. Específicamente: hci_remove_adv_monitor() -> msft_remove_monitor() -> msft_remove_monitor_sync() -> msft_le_cancel_monitor_advertisement_cb() -> hci_free_adv_monitor() Vamos a solucionar el problema simplemente guardando los datos relevantes cuando aún son válidos.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-54210 changed 2026-10-15CVE Terms of Use
NVDCVE-2023-54210 changed 2026-10-28Public domain