Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b4066eb04bb67e7ff66e5aaab0db4a753f37eaad, Kernel 6.4, Kernel 357ab53c83a5322437fa434e9a9e3e0bafe6b383 and 1 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link hci_connect_sco currently returns NULL when there is no link (i.e. when hci_conn_link() returns NULL). sco_connect() expects an ERR_PTR in case of any error (see line 266 in sco.c). Thus, hcon set as NULL passes through to sco_conn_add(), which tries to get hcon->hdev, resulting in dereferencing a NULL pointer as reported by syzkaller. The same issue exists for iso_connect_cis() calling hci_connect_cis(). Thus, make hci_connect_sco() and hci_connect_cis() return ERR_PTR instead of NULL.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =f72fc94a17d45be98aecfd59c39b5b24a6a342e2, >=06149746e7203d5ffe2d6faf9799ee36203aa8b8 <b4066eb04bb67e7ff66e5aaab0db4a753f37eaad, >=6.3.8 <6.4, =6.4, >=06149746e7203d5ffe2d6faf9799ee36203aa8b8 <357ab53c83a5322437fa434e9a9e3e0bafe6b383 | b4066eb04bb67e7ff66e5aaab0db4a753f37eaad, 6.4, 357ab53c83a5322437fa434e9a9e3e0bafe6b383 |
| linux-kernel: Kernel | >=6.4.0 <6.4.7, >=6.3.8 <6.4 | 6.4.7, 6.4 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket