{"id":"CVE-2026-64573","aliases":["CVE-2026-64573"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: qca: fix NVM tag length underflow in TLV parser","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: qca: fix NVM tag length underflow in TLV parser\n\nIn the TLV_TYPE_NVM branch of qca_tlv_check_data() the tag loop bound is\n\"while (idx < length - sizeof(struct tlv_type_nvm))\". \"length\" is a signed\nint from the firmware TLV header and sizeof(struct tlv_type_nvm) is a\nsize_t (12), so \"length\" is converted to size_t and any firmware-supplied\n\"length\" < 12 makes the subtraction wrap to a huge value. The loop body\nthen reads a 12-byte struct tlv_type_nvm past the end of the short\nvmalloc'd firmware buffer (and the EDL_TAG_ID_* handlers can write past it).\n\nRewrite the bound as \"idx + sizeof(struct tlv_type_nvm) <= length\"; both\noperands are non-negative, so it no longer underflows and a \"length\" too\nsmall for one record correctly skips the loop.\n\n  BUG: KASAN: vmalloc-out-of-bounds in qca_download_firmware.isra.0 (drivers/bluetooth/btqca.c:421)\n  Read of size 2 at addr ffffc900000e5004 by task kworker/u9:0/52\n  Workqueue: hci0 hci_power_on\n  Call Trace:\n   ...\n   kasan_report (mm/kasan/report.c:595)\n   qca_download_firmware.isra.0 (drivers/bluetooth/btqca.c:421 drivers/bluetooth/btqca.c:617)\n   qca_uart_setup (drivers/bluetooth/btqca.c:948)\n   qca_setup (drivers/bluetooth/hci_qca.c:2029)\n   hci_uart_setup (drivers/bluetooth/hci_ldisc.c:438)\n   hci_dev_open_sync (net/bluetooth/hci_sync.c:5227)\n   hci_power_on (net/bluetooth/hci_core.c:920)\n   process_one_work (kernel/workqueue.c:3322)\n   worker_thread (kernel/workqueue.c:3486)\n   kthread (kernel/kthread.c:436)\n   ret_from_fork (arch/x86/kernel/process.c:158)\n   ret_from_fork_asm (arch/x86/entry/entry_64.S:245)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: qca: fix NVM tag length underflow in TLV parser\n\nIn the TLV_TYPE_NVM branch of qca_tlv_check_data() the tag loop bound is\n\"while (idx < length - sizeof(struct tlv_type_nvm))\". \"length\" is a signed\nint from the firmware TLV header and sizeof(struct tlv_type_nvm) is a\nsize_t (12), so \"length\" is converted to size_t and any firmware-supplied\n\"length\" < 12 makes the subtraction wrap to a huge value. The loop body\nthen reads a 12-byte struct tlv_type_nvm past the end of the short\nvmalloc'd firmware buffer (and the EDL_TAG_ID_* handlers can write past it).\n\nRewrite the bound as \"idx + sizeof(struct tlv_type_nvm) <= length\"; both\noperands are non-negative, so it no longer underflows and a \"length\" too\nsmall for one record correctly skips the loop.\n\n  BUG: KASAN: vmalloc-out-of-bounds in qca_download_firmware.isra.0 (drivers/bluetooth/btqca.c:421)\n  Read of size 2 at addr ffffc900000e5004 by task kworker/u9:0/52\n  Workqueue: hci0 hci_power_on\n  Call Trace:\n   ...\n   kasan_report (mm/kasan/report.c:595)\n   qca_download_firmware.isra.0 (drivers/bluetooth/btqca.c:421 drivers/bluetooth/btqca.c:617)\n   qca_uart_setup (drivers/bluetooth/btqca.c:948)\n   qca_setup (drivers/bluetooth/hci_qca.c:2029)\n   hci_uart_setup (drivers/bluetooth/hci_ldisc.c:438)\n   hci_dev_open_sync (net/bluetooth/hci_sync.c:5227)\n   hci_power_on (net/bluetooth/hci_core.c:920)\n   process_one_work (kernel/workqueue.c:3322)\n   worker_thread (kernel/workqueue.c:3486)\n   kthread (kernel/kthread.c:436)\n   ret_from_fork (arch/x86/kernel/process.c:158)\n   ret_from_fork_asm (arch/x86/entry/entry_64.S:245)","source":"cvelist"}],"published":"2026-08-05T08:08:09.669Z","modified":"2026-11-30T21:42:11.783Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-191"],"affected":[{"ranges":[{"type":"git","introduced":"ed53949cc92e28aaa3463d246942bda1fbb7f307","fixed":"a7ee11441d71ab036a705d110a415421f5a4a898","status":"affected"},{"type":"git","introduced":"1caceadfb50432dbf6d808796cb6c34ebb6d662c","fixed":"5d34e537755d2f9eba2d4e54d70126f987ef20b4","status":"affected"},{"type":"git","introduced":"427281f9498ed614f9aabc80e46ec077c487da6d","fixed":"70354dbb5f72d9a76da7b031de3cbaf6c7d8fc24","status":"affected"},{"type":"git","introduced":"2e4edfa1e2bd821a317e7d006517dcf2f3fac68d","fixed":"59fd2f075bca94f030c7c78e94878ea0803d7690","status":"affected"},{"type":"git","introduced":"2e4edfa1e2bd821a317e7d006517dcf2f3fac68d","fixed":"a087ed960fce54e9302796229e9d545bbc9bcd4a","status":"affected"},{"type":"git","introduced":"2e4edfa1e2bd821a317e7d006517dcf2f3fac68d","fixed":"4fcfb5b2c736785464ff9745f94c6726c5ee2d85","status":"affected"},{"type":"git","introduced":"2e4edfa1e2bd821a317e7d006517dcf2f3fac68d","fixed":"c90164ca0f7036942ba088eb7ea8d3f6c2352020","status":"affected"},{"type":"git","version":"02f05ed44b71152d5e11d29be28aed91c0489b4e","status":"affected"},{"type":"semver","introduced":"5.15.159","fixed":"5.15.216","status":"affected"},{"type":"semver","introduced":"6.1.91","fixed":"6.1.183","status":"affected"},{"type":"semver","introduced":"6.6.31","fixed":"6.6.148","status":"affected"},{"type":"semver","introduced":"6.8.10","fixed":"6.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.101","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.159","fixed":"5.15.216"},{"status":"affected","introduced":"6.1.91","fixed":"6.1.183"},{"status":"affected","introduced":"6.6.31","fixed":"6.6.148"},{"status":"affected","introduced":"6.8.10","fixed":"6.9"},{"status":"affected","introduced":"6.9.1","fixed":"6.12.101"},{"status":"affected","introduced":"6.13","fixed":"6.18.42"},{"status":"affected","introduced":"6.19","fixed":"7.1.6"},{"status":"affected","version":"6.9"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a7ee11441d71ab036a705d110a415421f5a4a898","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d34e537755d2f9eba2d4e54d70126f987ef20b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70354dbb5f72d9a76da7b031de3cbaf6c7d8fc24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59fd2f075bca94f030c7c78e94878ea0803d7690","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a087ed960fce54e9302796229e9d545bbc9bcd4a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fcfb5b2c736785464ff9745f94c6726c5ee2d85","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c90164ca0f7036942ba088eb7ea8d3f6c2352020","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64573","url":"https://www.cve.org/CVERecord?id=CVE-2026-64573","licence":"CVE Terms of Use","modified":"2026-08-19T16:28:52.002Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64573","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64573","licence":"Public domain","modified":"2026-11-30T21:42:11.783Z"}],"updatedAt":"2026-11-30T21:47:21.328Z","epss":{"score":0.00114,"percentile":0.01642,"date":"2026-12-01T12:00:22.000Z"}}