Bluetooth: ISO: Fix parent socket leak in iso_conn_ready()
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: Fix parent socket leak in iso_conn_ready()
iso_get_sock() returns the parent socket with a reference held, which is dropped by sock_put() once the child socket has been set up. The error path taken when iso_sock_alloc() fails only calls release_sock() and returns, leaking the reference and thus the parent socket itself.
Drop the reference on that path as well.
From the CVE record · Linux
The Linux kernel's Bluetooth ISO code leaks a reference to a parent socket when child socket allocation fails in iso_conn_ready(). This can keep the parent socket from being freed. The input does not specify how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Operators running Linux kernels with the affected Bluetooth ISO code should check their kernel version against the vendor advisory; affected versions are not specified.