Skip to content

Bluetooth: L2CAP: signalling response fixes

Siwei Zhang linux-bluetooth stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Bluetooth: L2CAP: Reject signalling responses in invalid statesnet/bluetooth/l2cap_core.c+36 -20 replies
2/3Bluetooth: L2CAP: Only accept connection responses to outstanding requestsinclude/net/bluetooth/l2cap.h net/bluetooth/a2mp.c net/bluetooth/a2mp.h +1 more+77 -172 replies
3/3Bluetooth: L2CAP: Ignore connection responses with wrong identnet/bluetooth/l2cap_core.c+15 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 5.15.y 0/3] Bluetooth: L2CAP: signalling response fixes

Backports of

6320736af7dc ("Bluetooth: L2CAP: Reject signalling responses in invalid states") a518b9a9ef6e ("Bluetooth: L2CAP: Only accept connection responses to outstanding requests")

which failed to apply to the 5.15-stable tree:

https://lore.kernel.org/stable/[email protected]/
https://lore.kernel.org/stable/[email protected]/

Patch 3 is a9f9eeb5344f ("Bluetooth: L2CAP: Ignore connection responses with wrong ident"), which tightens the check added by patch 2 and only applies on top of it.

The series goes on top of the three L2CAP patches already queued for 5.15.y:

c1398cf11b31 ("Bluetooth: L2CAP: Reject mode changes on connected channels") c5ebb0245fe9 ("Bluetooth: L2CAP: Reject invalid TxWindow in configuration requests") 226fa3b676cb ("Bluetooth: L2CAP: Use default TxWindow for zero socket option")

5.15.y still has AMP and A2MP, which upstream removed in e7b02296fb40 ("Bluetooth: Remove BT_HS"). Patches 1 to 3 also close the same holes in the AMP paths; the changes are described at the top of each commit message.

Jinwang Li (1):
Bluetooth: L2CAP: Ignore connection responses with wrong ident

Siwei Zhang (2):
Bluetooth: L2CAP: Reject signalling responses in invalid states
Bluetooth: L2CAP: Only accept connection responses to outstanding
requests

 include/net/bluetooth/l2cap.h |   2 +-
 net/bluetooth/a2mp.c          |  10 +--
 net/bluetooth/a2mp.h          |   1 +
 net/bluetooth/l2cap_core.c    | 126 ++++++++++++++++++++++++++++++----
 4 files changed, 122 insertions(+), 17 deletions(-)
Signature · 1 line
2.56.0