Bluetooth: L2CAP: Add missing checks for invalid DCID
stable inclusion from stable-v5.10.184 commit 0fee54fa330b6e86a960fa778c9d10d3e209d473 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0fee54fa330b6e86a960fa778c9d10d3e209d473 -------------------------------- [ Upstream commit 75767213 ] When receiving a connect response we should make sure that the DCID is within the valid range and that we don't already have another channel allocated for the same DCID. Missing checks may violate the specification (BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 3, Part A, Page 1046). Fixes: 40624183 ("Bluetooth: L2CAP: Add missing checks for invalid LE DCID") Signed-off-by:Sungwoo Kim <iam@sung-woo.kim> Signed-off-by:
Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment