Skip to contentSkip to conversation

CVE-2026-31773: Bluetooth: SMP: derive legacy responder STK authentication from MITM state

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: SMP: derive legacy responder STK authentication from MITM state

The legacy responder path in smp_random() currently labels the stored STK as authenticated whenever pending_sec_level is BT_SECURITY_HIGH. That reflects what the local service requested, not what the pairing flow actually achieved.

For Just Works/Confirm legacy pairing, SMP_FLAG_MITM_AUTH stays clear and the resulting STK should remain unauthenticated even if the local side requested HIGH security. Use the established MITM state when storing the responder STK so the key metadata matches the pairing result.

This also keeps the legacy path aligned with the Secure Connections code, which already treats JUST_WORKS/JUST_CFM as unauthenticated.

The Linux kernel CVE team has assigned CVE-2026-31773 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 5.10.253 with commit 9a38659a3d06080715691bd3139f9c4b61f688e3
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 5.15.203 with commit 667f44f1392df6482483756458c48670e579e9ff
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 6.1.168 with commit 929db734d12db41ca5f95424db4612397f1bd4a7
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 6.6.134 with commit b1c6a8e554a39b222c0879a288ea98e338fc4d77
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 6.12.81 with commit 0afc846bd80073ffcd2b8040f2b2fafaea3d9f72
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 6.18.22 with commit 061ee71ac6b03c9f8432fe49538c3682bfcf4cf3
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 6.19.12 with commit 9a6d0db176f082685e0b6149700c0baf3ce2aa8b
	Issue introduced in 3.16 with commit fff3490f47810e2d34b91fb9e31103e923b11c2f and fixed in 7.0 with commit 20756fec2f0108cb88e815941f1ffff88dc286fe
	Issue introduced in 3.15.5 with commit 14ec593d6bb050cf40a4ade2f9ac9ca050e0412c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31773

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/bluetooth/smp.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/9a38659a3d06080715691bd3139f9c4b61f688e3
	https://git.kernel.org/stable/c/667f44f1392df6482483756458c48670e579e9ff
	https://git.kernel.org/stable/c/929db734d12db41ca5f95424db4612397f1bd4a7
	https://git.kernel.org/stable/c/b1c6a8e554a39b222c0879a288ea98e338fc4d77
	https://git.kernel.org/stable/c/0afc846bd80073ffcd2b8040f2b2fafaea3d9f72
	https://git.kernel.org/stable/c/061ee71ac6b03c9f8432fe49538c3682bfcf4cf3
	https://git.kernel.org/stable/c/9a6d0db176f082685e0b6149700c0baf3ce2aa8b
	https://git.kernel.org/stable/c/20756fec2f0108cb88e815941f1ffff88dc286fe