Skip to content

Commit e0a3593

Browse files
committed
Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm
jira VULN-8772 cve CVE-2022-42896 commit-author Luiz Augusto von Dentz <[email protected]> commit f937b75 l2cap_global_chan_by_psm shall not return fixed channels as they are not meant to be connected by (S)PSM. Signed-off-by: Luiz Augusto von Dentz <[email protected]> Reviewed-by: Tedd Ho-Jeong An <[email protected]> (cherry picked from commit f937b75) Signed-off-by: Brett Mastbergen <[email protected]>
1 parent fd7b30e commit e0a3593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/l2cap_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm,
19601960
if (link_type == LE_LINK && c->src_type == BDADDR_BREDR)
19611961
continue;
19621962

1963-
if (c->psm == psm) {
1963+
if (c->chan_type != L2CAP_CHAN_FIXED && c->psm == psm) {
19641964
int src_match, dst_match;
19651965
int src_any, dst_any;
19661966

0 commit comments

Comments
 (0)