Skip to content

[PW_SID:1078747] Bluetooth: hci_conn: validate connection before BIG creation#3464

Open
BluezTestBot wants to merge 1 commit intoworkflowfrom
1078747
Open

[PW_SID:1078747] Bluetooth: hci_conn: validate connection before BIG creation#3464
BluezTestBot wants to merge 1 commit intoworkflowfrom
1078747

Conversation

@BluezTestBot
Copy link
Copy Markdown
Owner

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(+)

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>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

CheckPatch
Desc: Run checkpatch.pl script
Duration: 0.45 seconds
Result: PENDING

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

GitLint
Desc: Run gitlint
Duration: 0.34 seconds
Result: PENDING

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

SubjectPrefix
Desc: Check subject contains "Bluetooth" prefix
Duration: 3.11 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

BuildKernel
Desc: Build Kernel for Bluetooth
Duration: 26.33 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

CheckAllWarning
Desc: Run linux kernel with all warning enabled
Duration: 28.67 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

CheckSparse
Desc: Run sparse tool with linux kernel
Duration: 27.91 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

BuildKernel32
Desc: Build 32bit Kernel for Bluetooth
Duration: 25.27 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunnerSetup
Desc: Setup kernel and bluez for test-runner
Duration: 571.37 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_l2cap-tester
Desc: Run l2cap-tester with test-runner
Duration: 28.16 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_iso-tester
Desc: Run iso-tester with test-runner
Duration: 37.98 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_bnep-tester
Desc: Run bnep-tester with test-runner
Duration: 6.50 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_mgmt-tester
Desc: Run mgmt-tester with test-runner
Duration: 114.33 seconds
Result: FAIL
Output:

Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4

Failed Test Cases
Read Exp Feature - Success                           Failed       0.108 seconds

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_rfcomm-tester
Desc: Run rfcomm-tester with test-runner
Duration: 9.68 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_sco-tester
Desc: Run sco-tester with test-runner
Duration: 14.67 seconds
Result: FAIL
Output:

WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_ioctl-tester
Desc: Run ioctl-tester with test-runner
Duration: 10.61 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_mesh-tester
Desc: Run mesh-tester with test-runner
Duration: 12.68 seconds
Result: FAIL
Output:

Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0

Failed Test Cases
Mesh - Send cancel - 1                               Timed out    2.705 seconds
Mesh - Send cancel - 2                               Timed out    1.994 seconds

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_smp-tester
Desc: Run smp-tester with test-runner
Duration: 8.82 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

TestRunner_userchan-tester
Desc: Run userchan-tester with test-runner
Duration: 6.79 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

IncrementalBuild
Desc: Incremental build with the patches in the series
Duration: 0.52 seconds
Result: PENDING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants