Linux
Bluetooth: bpa10x: avoid OOB read of revision string in bpa10x_setup()
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: bpa10x: avoid OOB read of revision string in bpa10x_setup() bpa10x_setup() sends the vendor command 0xfc0e and passes the response to bt_dev_info() and hci_set_fw_info() as a "%s" string starting at skb->data + 1, without checking the length: bt_dev_info(hdev, "%s", (char *)(skb->data + 1)); hci_set_fw_info(hdev, "%s", skb->data + 1); A device that returns a one-byte response (status only) leaves skb->data + 1 past the end of the data, and the %s walk reads adjacent slab memory until it meets a NUL. The same happens when the payload is not NUL-terminated within skb->len. The out-of-bounds bytes end up in the kernel log and the firmware-info debugfs file. Print the revision string with a bounded "%.*s" limited to skb->len - 1 instead. This keeps the string readable for well-behaved devices while never reading past the received data, and does not fail setup, so a device returning a short or unterminated response keeps working.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < 1813add71e386f77b3040e6c8dc9b7b3ff965a6c
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < bd56c23f1f8681a2857ee924a8bd3abf87c8913b
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < 7a64f39ebe1bacd9004a62eceadac0b122ec3cc2
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < f80b4afe893dffa9fabdbf80fb4d6782b24a6793
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < 4b4008dda1d0c6e598d7865631ad4eda63a560f0
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < bfc9e7be289df11e8e38c98cd78019d67fdd0bd5
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < a8e169d308775039200bb9c905c7ce420db6e8c5
- >= ddd68ec8f4847b460c9f580076eafe13b031a6fd, < dd068ef044128db655f48323a4acfd5907e04903
Fixed in 1813add71e386f77b3040e6c8dc9b7b3ff965a6c, bd56c23f1f8681a2857ee924a8bd3abf87c8913b, 7a64f39ebe1bacd9004a62eceadac0b122ec3cc2, f80b4afe893dffa9fabdbf80fb4d6782b24a6793, 4b4008dda1d0c6e598d7865631ad4eda63a560f0, bfc9e7be289df11e8e38c98cd78019d67fdd0bd5, a8e169d308775039200bb9c905c7ce420db6e8c5, dd068ef044128db655f48323a4acfd5907e04903
- 4.4
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 1813add71e386f77b3040e6c8dc9b7b3ff965a6c or bd56c23f1f8681a2857ee924a8bd3abf87c8913b or 7a64f39ebe1bacd9004a62eceadac0b122ec3cc2 or f80b4afe893dffa9fabdbf80fb4d6782b24a6793 or 4b4008dda1d0c6e598d7865631ad4eda63a560f0 or bfc9e7be289df11e8e38c98cd78019d67fdd0bd5 or a8e169d308775039200bb9c905c7ce420db6e8c5 or dd068ef044128db655f48323a4acfd5907e04903 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.