CVE-2026-97907: Bluetooth: btrtl: Don't leak return code when parsing firmware format v2
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: btrtl: Don't leak return code when parsing firmware format v2
When key_id from chip is zero, rtlbt_parse_firmware_v2() intentionally ignores all security headers. However, the implementation simply breaks from a switch statement and leaks uninitialized return code rc' (if the first section is a security one) or the previous section's rc'.
Fix it by really skipping a loop with `continue'. For consistency and readability, also do the same for the default case.
The Linux kernel CVE team has assigned CVE-2026-97907 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit 9a24ce5e29b15c4c6b0c89c04f9df6ce14addefa and fixed in 6.12.111 with commit 90f3a142b5f8596a565b8e080d18a8050be6edef Issue introduced in 6.4 with commit 9a24ce5e29b15c4c6b0c89c04f9df6ce14addefa and fixed in 6.18.53 with commit 422f6547259654bae690713614c794dd1e2c0a0b Issue introduced in 6.4 with commit 9a24ce5e29b15c4c6b0c89c04f9df6ce14addefa and fixed in 7.2.7 with commit c4249cf6e80b1bd62a6a409aaabe760fe025dac3 Issue introduced in 6.4 with commit 9a24ce5e29b15c4c6b0c89c04f9df6ce14addefa and fixed in 7.3-rc3 with commit 83e3e515fd261600ed8491fb0a8bcdfb115c904e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-97907
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/bluetooth/btrtl.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/90f3a142b5f8596a565b8e080d18a8050be6edef https://git.kernel.org/stable/c/422f6547259654bae690713614c794dd1e2c0a0b https://git.kernel.org/stable/c/c4249cf6e80b1bd62a6a409aaabe760fe025dac3 https://git.kernel.org/stable/c/83e3e515fd261600ed8491fb0a8bcdfb115c904e