Bluetooth: MGMT: validate advertising TLV before type checks
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.259, Kernel 5.15.210, Kernel 6.1.176 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: validate advertising TLV before type checks tlv_data_is_valid() reads each advertising data field length from data[i], then inspects data[i + 1] for managed EIR types before checking that the current field still fits inside the supplied buffer. A malformed field whose length byte is the last byte of the buffer can therefore make the parser read one byte past the advertising data. KASAN reported the following when a malformed MGMT_OP_ADD_ADVERTISING request reached that path: BUG: KASAN: vmalloc-out-of-bounds in tlv_data_is_valid() Read of size 1 Call trace: tlv_data_is_valid() add_advertising() hci_mgmt_cmd() hci_sock_sendmsg() Move the existing element-length check before any type-octet inspection so each non-empty element is proven to contain its type byte before the parser looks at data[i + 1].
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.9 <5.10.259, >=5.11 <5.15.210, >=5.16 <6.1.176, >=6.13 <6.18.36, >=6.19 <7.0.13, >=6.2 <6.6.143, >=6.7 <6.12.94, =7.1, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <13ad995071a06570668dd8daab3616c247c72080, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <18fea1cb0c2599752e908c8217490f73ddd33e00, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <1a3c8ffbb469859b076445af44bdfa6a711d483e, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <2a3f3ed9e198ae23c15859ace2f9ca6cfdc35b57, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <74c08e4db35a476c3462aeb65846f955be732626, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <de23fb62259aa01d294f77238ae3b835eb674413, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <f7093ac233c1e7f51d125534f46067772a113175, =4.9, >=2bb36870e8cb29949ef9acec37129cd8e70f1857 <06fcbd79c3c360a50f9be9d370769bbd738d0976 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94, 13ad995071a06570668dd8daab3616c247c72080, 18fea1cb0c2599752e908c8217490f73ddd33e00, 1a3c8ffbb469859b076445af44bdfa6a711d483e, 2a3f3ed9e198ae23c15859ace2f9ca6cfdc35b57, 74c08e4db35a476c3462aeb65846f955be732626, de23fb62259aa01d294f77238ae3b835eb674413, f7093ac233c1e7f51d125534f46067772a113175, 06fcbd79c3c360a50f9be9d370769bbd738d0976 |
| linux-kernel: Kernel | >=4.9.0 <5.10.259, >=5.11.0 <5.15.210, >=5.16.0 <6.1.176, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.143, >=6.7.0 <6.12.94 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket