Bluetooth: btnxpuart: Fix out-of-bounds firmware read in nxp_recv_fw_req_v3()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel badff6c3bed8923a1257a853f137d447976eec30, Kernel 21e60eb4d95854196e7c0e77383f35e7ac95df61, Kernel 2a68a773089204af1c8581dc79668b775418c5ee and 6 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btnxpuart: Fix out-of-bounds firmware read in nxp_recv_fw_req_v3() During the v3 firmware download the controller sends a v3_data_req with a 32 bit offset and a 16 bit len. nxp_recv_fw_req_v3() checks only the lower bound of the offset and then sends firmware from that offset. nxpdev->fw_dnld_v3_offset = offset - nxpdev->fw_v3_offset_correction; serdev_device_write_buf(nxpdev->serdev, nxpdev->fw->data + nxpdev->fw_dnld_v3_offset, len); Nothing checks that fw_dnld_v3_offset + len stays within nxpdev->fw->size, so a controller that asks for an offset or length past the firmware image makes the driver read past the end of nxpdev->fw->data and send that memory back over UART. nxp_recv_fw_req_v1() already bounds the same write. Add the equivalent check to the v3 path, reject the request when it falls outside the firmware image, and zero len on the error path so the fw_v3_prev_sent bookkeeping at free_skb stays consistent.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=689ca16e523278470c38832a3010645a78c544d8 <badff6c3bed8923a1257a853f137d447976eec30, >=689ca16e523278470c38832a3010645a78c544d8 <21e60eb4d95854196e7c0e77383f35e7ac95df61, >=689ca16e523278470c38832a3010645a78c544d8 <2a68a773089204af1c8581dc79668b775418c5ee, >=689ca16e523278470c38832a3010645a78c544d8 <441088792ffec3ca01f4efe2934060570eb11eb8, >=689ca16e523278470c38832a3010645a78c544d8 <49bcb39e3a041ce26021f77971eaccb49a275118, =6.4 | badff6c3bed8923a1257a853f137d447976eec30, 21e60eb4d95854196e7c0e77383f35e7ac95df61, 2a68a773089204af1c8581dc79668b775418c5ee, 441088792ffec3ca01f4efe2934060570eb11eb8, 49bcb39e3a041ce26021f77971eaccb49a275118 |
| linux-kernel: Kernel | >=6.19.0 <7.1.4, >=6.4.0 <6.6.145, >=6.7.0 <6.12.96, >=6.13.0 <6.18.39 | 7.1.4, 6.6.145, 6.12.96, 6.18.39 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket