]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btintel: Validate length before parsing diagnostics TLV
authorZijun Hu <zijun.hu@oss.qualcomm.com>
Sat, 25 Jul 2026 08:54:40 +0000 (01:54 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 28 Jul 2026 20:13:12 +0000 (16:13 -0400)
commitb640ff9af3c809ff5ea2077fbba17df1594ec1e4
tree386f94b08e62df8511bf9138aa276e265ea146b5
parentaf24e338bf5dafb80f42baa9a0b9e9b57b1c5d9c
Bluetooth: btintel: Validate length before parsing diagnostics TLV

btintel_diagnostics() accesses tlv->val[0] without first validating
that the diagnostics VSE is long enough to contain that field, so
may cause reading data beyond the received frame.

Fix by validating the length before access.

Fixes: af395330abed ("Bluetooth: btintel: Add Intel devcoredump support")
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel.c