First published: Mon Mar 13 2023(Updated: )
A double free vulnerability was found in the hci_conn_cleanup function of net/bluetooth/hci_conn.c, which may cause DOS or privilege escalation. Version: Linux kernel 6.2 (this problem also exists in 6.3-rc1) At the end of the hci_conn_del_sysfs(conn) function in the hci_conn_cleanup function, hci_dev_put(hdev) will be called. The hci_dev_put function will eventually call kfree to release the space used by name: ``` hci_dev_put put_device kobject_put kref_put kobject_release kobject_cleanup kfree_const kfree ``` After the hci_conn_del_sysfs function ends, the hci_dev_put function is called again in the hci_conn_cleanup function, and their parameters hdev are the same, so double free will be caused when the name is released. In addition, at the end of hci_conn_cleanup, the hci_conn_put function is called again, which will call the put_device function to release conn->dev. Obviously conn->dev has been released, so there will also be a double free problem here. Call Trace from syzbot, <a href="https://syzkaller.appspot.com/bug?id=1bb51491ca5df96a5f724899d1dbb87afda61419">https://syzkaller.appspot.com/bug?id=1bb51491ca5df96a5f724899d1dbb87afda61419</a>:
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Linux kernel | =6.1.25 | |
Linux Linux kernel | =6.2.12 | |
Linux Linux kernel | =6.3 | |
Linux Linux kernel | =6.3-rc1 | |
Linux Linux kernel | =6.3-rc2 | |
Linux Linux kernel | =6.3-rc3 | |
Linux Linux kernel | =6.3-rc4 | |
Linux Linux kernel | =6.3-rc5 | |
Linux Linux kernel | =6.3-rc6 | |
Netapp Baseboard Management Controller H300s Firmware | ||
Netapp Baseboard Management Controller H410c Firmware | ||
Netapp Baseboard Management Controller H410s Firmware | ||
Netapp Baseboard Management Controller H500s Firmware | ||
Netapp Baseboard Management Controller H700s Firmware | ||
Netapp H300s Firmware | ||
Netapp H410c Firmware | ||
Netapp H410s Firmware | ||
Netapp H500s Firmware | ||
Netapp H700s Firmware |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID for this issue is CVE-2023-28464.
CVE-2023-28464 has a severity level of 7.8, which is considered high.
The Linux kernel versions 6.1.25, 6.2.12, 6.3, and all release candidates (6.3-rc1 to 6.3-rc6) are affected by CVE-2023-28464. Additionally, Netapp Baseboard Management Controller firmware versions H300s, H410c, H410s, H500s, and H700s are also affected.
CVE-2023-28464 is a use-after-free vulnerability in the Linux kernel's hci_conn_cleanup function that can lead to privilege escalation due to a double free issue.
To fix CVE-2023-28464, it is recommended to apply the relevant patch or update provided by the Linux kernel or Netapp, depending on the affected software version.