Bluetooth: ISO: lock sk in iso_connect_ind
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: ISO: lock sk in iso_connect_ind
Accessing iso_pi(sk)->conn requires lock_sock, which is not taken in the "ev3" part of iso_connect_ind. It may also be NULL if socket has transitioned away from the LISTEN/CONNECT states before locking.
Fix by adding lock/release. Recheck hcon is valid after lock acquire where needed.
From the CVE record · Linux
The Linux kernel's Bluetooth ISO code accesses a socket connection without the required lock in part of iso_connect_ind. The connection may also be NULL if the socket changes state before locking. The input does not establish what an attacker can do or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with Bluetooth ISO support should check their kernel; affected versions are not specified.