Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: SMP: force responder MITM requirements before building the pairing response smp_cmd_pairing_req() currently builds the pairing response from the initiator auth_req before enforcing the local BT_SECURITY_HIGH requirement. If the initiator omits SMP_AUTH_MITM, the response can also omit it even though the local side still requires MITM. tk_request() then sees an auth value without SMP_AUTH_MITM and may select JUST_CFM, making method selection inconsistent with the pairing policy the responder already enforces. When the local side requires HIGH security, first verify that MITM can be achieved from the IO capabilities and then force SMP_AUTH_MITM in the response in both rsp.auth_req and auth. This keeps the responder auth bits and later method selection aligned.
Product status
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before 425a22c5373d4e1b46492ab869074ebeeade61f3
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before 7ab69426e7ecbd18a222ee2ec87ca612d30197d7
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before 01bb4045d2306c266178f49ce0c3576d237a3040
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before 91649c02c1baaa18cedf7fb425fa1f0f852c8183
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before c8ff0ca6508535bccabd81c5c9dcc63de8a3d4fb
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before fa14e0e19820b1bbdb42185c9c4efa950bcffef9
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before ec17efb1ef91506cfd17a77692eaf4bbacb520ea
2b64d153a0cc9d2b60e47be013cde8490f16e0a5 (git) before d05111bfe37bfd8bd4d2dfe6675d6bdeef43f7c7
3.3
Any version before 3.3
5.10.253 (semver)
5.15.203 (semver)
6.1.168 (semver)
6.6.134 (semver)
6.12.81 (semver)
6.18.22 (semver)
6.19.12 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/425a22c5373d4e1b46492ab869074ebeeade61f3
git.kernel.org/...c/7ab69426e7ecbd18a222ee2ec87ca612d30197d7
git.kernel.org/...c/01bb4045d2306c266178f49ce0c3576d237a3040
git.kernel.org/...c/91649c02c1baaa18cedf7fb425fa1f0f852c8183
git.kernel.org/...c/c8ff0ca6508535bccabd81c5c9dcc63de8a3d4fb
git.kernel.org/...c/fa14e0e19820b1bbdb42185c9c4efa950bcffef9
git.kernel.org/...c/ec17efb1ef91506cfd17a77692eaf4bbacb520ea
git.kernel.org/...c/d05111bfe37bfd8bd4d2dfe6675d6bdeef43f7c7