CVE-2026-63947: Bluetooth: HIDP: fix missing length checks in hidp_input_report()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: HIDP: fix missing length checks in hidp_input_report()
hidp_input_report() reads keyboard and mouse payload data from an skb without first verifying that skb->len contains enough data.
hidp_recv_intr_frame() pulls the 1-byte HIDP header before dispatching to hidp_input_report(). If a paired device sends a truncated packet, the handler reads beyond the valid skb data, resulting in an out-of-bounds read of skb data. The OOB bytes may be interpreted as phantom key presses or spurious mouse movement.
Replace the open-coded length tracking and pointer arithmetic with skb_pull_data() calls. skb_pull_data() returns NULL if the requested bytes are not present, eliminating the need for a manual size variable and the separate skb->len guard.
The Linux kernel CVE team has assigned CVE-2026-63947 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.210 with commit 1f08a90013e1e632b34321334e861fcefc056505 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.176 with commit cc3832b19f863e3677c5651f001a2e3795f39eb8 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.143 with commit d313683d6ccdd8c01e0562270a2ae25b86d8461d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.93 with commit d7d6a81b8dd1a8d084a1b755db9406041d53adb5 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.35 with commit 6348dfed5b0f9c6074f14322332e97493d32fef0 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.12 with commit b83dcacd2ec7fcc5a48be215f82d573759f87ec2 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit 2a3ac9ee11dbb9845f3947cef4a79dba658cf6f6
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-63947
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/hidp/core.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/1f08a90013e1e632b34321334e861fcefc056505 https://git.kernel.org/stable/c/cc3832b19f863e3677c5651f001a2e3795f39eb8 https://git.kernel.org/stable/c/d313683d6ccdd8c01e0562270a2ae25b86d8461d https://git.kernel.org/stable/c/d7d6a81b8dd1a8d084a1b755db9406041d53adb5 https://git.kernel.org/stable/c/6348dfed5b0f9c6074f14322332e97493d32fef0 https://git.kernel.org/stable/c/b83dcacd2ec7fcc5a48be215f82d573759f87ec2 https://git.kernel.org/stable/c/2a3ac9ee11dbb9845f3947cef4a79dba658cf6f6