Bluetooth: virtio_bt: avoid OOB read of build info string
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: virtio_bt: avoid OOB read of build info string The virtbt_setup_zephyr() sends the Zephyr vendor command 0xfc08 (Read Build Information) and hands the response to bt_dev_info() and hci_set_fw_info() as a "%s" string starting at skb->data + 1, without checking the length. A backend that answers with status only leaves that pointer past the end of the received data, so the walk reads adjacent slab memory until it meets a NUL. Those bytes reach the kernel log and the firmware-info debugfs file. To fix this, print the string with a bounded "%.*s" limited to skb->len - 1. A short or unterminated response then prints as much as arrived instead of failing setup. This mirrors commit dd068ef04412 ("Bluetooth: bpa10x: avoid OOB read of revision string in bpa10x_setup()"), which fixed the identical pattern.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in fb445b3466a8d1c7a0b0d0676fb475e3ce22d94e; From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in d08c99abf06133a7829d46627e77e3315ca974d2; From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in 0e388d805233a883a31271676eae6031dfc9e898; From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in 54e9387eb7546eaa6f600220599d55740956ffc3; From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in be1e3df2c49c91b0a052c6563884e8d39bd768b2; From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in 84ea9c99874804f5ca13f35bbc186ba93902f30f; From afd2daa26c7abd734d78bd274fc6c59a15e61063 · fixed in 502adc06ba76dee19c292ae4a07d74d202fe734d
- Linux Linux
5.13
- KernelLinux
From 5.13.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 7
git.kernel.org
- stable/c/fb445b3466a8d1c7a0b0d0676fb475e3ce22d94e
- stable/c/d08c99abf06133a7829d46627e77e3315ca974d2
- stable/c/0e388d805233a883a31271676eae6031dfc9e898
- stable/c/54e9387eb7546eaa6f600220599d55740956ffc3
- stable/c/be1e3df2c49c91b0a052c6563884e8d39bd768b2
- stable/c/84ea9c99874804f5ca13f35bbc186ba93902f30f
- stable/c/502adc06ba76dee19c292ae4a07d74d202fe734d