Skip to content

Commit d247834

Browse files
committed
Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm
jira VULN-210 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: Marcin Wcisło <[email protected]>
1 parent da2d199 commit d247834

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
@@ -1984,7 +1984,7 @@ static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm,
19841984
if (link_type == LE_LINK && c->src_type == BDADDR_BREDR)
19851985
continue;
19861986

1987-
if (c->psm == psm) {
1987+
if (c->chan_type != L2CAP_CHAN_FIXED && c->psm == psm) {
19881988
int src_match, dst_match;
19891989
int src_any, dst_any;
19901990

0 commit comments

Comments
 (0)