[PW_SID:1078747] Bluetooth: hci_conn: validate connection before BIG creation#54
[PW_SID:1078747] Bluetooth: hci_conn: validate connection before BIG creation#54BluezTestBot wants to merge 2 commits intoworkflowfrom
Conversation
bluez/action-ci uses master as default branch for workflow which is incorrect for kernel. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Add missing hci_conn_valid() check in create_big_sync() to prevent a potential use-after-free. The connection object passed via hci_cmd_sync_queue() could be freed before the async callback executes, leading to a dereference of stale memory. All other async callbacks using the same pattern already validate the connection (e.g. hci_le_big_create_sync, hci_acl_create_conn_sync, hci_le_create_conn_sync, abort_conn_sync). Signed-off-by: David Carlier <devnexen@gmail.com>
|
CheckPatch |
|
GitLint |
|
SubjectPrefix |
|
BuildKernel |
|
CheckAllWarning |
|
CheckSparse |
|
BuildKernel32 |
|
TestRunnerSetup |
|
TestRunner_l2cap-tester |
|
TestRunner_iso-tester |
|
TestRunner_bnep-tester |
|
TestRunner_mgmt-tester |
|
TestRunner_rfcomm-tester |
|
TestRunner_sco-tester |
|
TestRunner_ioctl-tester |
|
TestRunner_mesh-tester |
|
TestRunner_smp-tester |
|
TestRunner_userchan-tester |
|
TestRunner_6lowpan-tester |
|
IncrementalBuild |
Add missing hci_conn_valid() check in create_big_sync() to prevent
a potential use-after-free. The connection object passed via
hci_cmd_sync_queue() could be freed before the async callback
executes, leading to a dereference of stale memory.
All other async callbacks using the same pattern already validate
the connection (e.g. hci_le_big_create_sync, hci_acl_create_conn_sync,
hci_le_create_conn_sync, abort_conn_sync).
Signed-off-by: David Carlier devnexen@gmail.com
net/bluetooth/hci_conn.c | 3 +++
1 file changed, 3 insertions(+)