Encryption Key Negotiation of Bluetooth Vulnerability (CVE-2019-9506)
The Bluetooth BR/EDR key negotiation process allows an attacker to force the encryption key length down to 1 byte of entropy, making it trivial to brute-force. An attacker with specialised hardware within radio range could then decrypt or tamper with Bluetooth traffic.
Originally disclosed on Microsoft
Description
Executive Summary Microsoft is aware of the Bluetooth BR/EDR (basic rate/enhanced data rate, known as "Bluetooth Classic") key negotiation vulnerability that exists at the hardware specification level of any BR/EDR Bluetooth device. An attacker could potentially be able to negotiate the offered key length down to 1 byte of entropy, from a maximum of 16 bytes. To exploit this vulnerability, an attacker would need specialized hardware and would be limited by the range of the Bluetooth devices in use. Using this specialized equipment, they would need to be close enough to communicate and interfere with the legitimate transmissions being made wirelessly. CERT/CC has issued CVE-2019-9506 and VU#918987 for this tampering vulnerability, which has a CVSS score of 9.3. To address the vulnerability Microsoft has released a software update that enforces a default 7-octet minimum key length to ensure that the key negotiation does not trivialize the encryption. This functionality is disabled by default when the update is installed. Customers must enable this functionality by setting a specific flag in the registry. When the flag is set, Windows software will read the encryption key size and reject the Bluetooth connection if it does not meet the defined minimum key size. If your particular Bluetooth device or the Bluetooth radio in your Windows device, or the driver for that Bluetooth radio does not support the longer key length, this update could block connections with that device when the registry key EnableMinimumEncryptionKeySize is set to a value of 1. Users who have issues connecting their Bluetooth devices after installing and enabling this functionality should check to see if their manufacturer is providing additional guidance on updates and mitigations. To enable this enforcement feature by using Registry Editor, follow these steps: Note Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or view the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Open a command prompt as Administrator. Type: reg add HKLM\System\CurrentControlSet\Policies\Hardware\Bluetooth /v EnableMinimumEncryptionKeySize /t REG_DWORD /f /d 1 Restart the computer. If you don't want to restart your computer, you will need to reset your Bluetooth device as follows: On the device, go to the Bluetooth Settings. Turn off Bluetooth. Open the Device Manager and locate the Bluetooth Controller. Right-click on the Bluetooth Controller and select Disable device . After the device is disabled, right-click again and select Enable device . Turn on Bluetooth in Bluetooth Settings Computers with incompatible Bluetooth controllers or devices may have to temporarily or permanently set EnableMinimumEncryptionKeySize = 0 until controllers, firmware or drivers can be updated or the device itself updated. Bluetooth connections on computers in this state will not be secure. To disable this enforcement feature: Open a command prompt as Administrator. Type: reg add HKLM\System\CurrentControlSet\Policies\Hardware\Bluetooth /v EnableMinimumEncryptionKeySize /t REG_DWORD /f /d 0 Restart the computer. Recommended Actions The best protection is to keep computers up to date. Please see Microsoft Knowledge Base Article 4514157 for guidance on protecting Windows devices. If your particular device does not support the longer key length, this update could block connections with that device. Users who have issues connecting their Bluetooth devices after installing and enabling this functionality should check to see if their manufacturer is providing additional guidance on updates and mitigations. FAQ 1. Why is this enforcement not enabled by default? A number of devices may not currently be able to support a longer key length and would not function with this fix enabled. Combined with the difficulty to use this attack and the need of specialized equipment and proximity to the target, this was decided to be left disabled initially to avoid any compatibility issues. The choice to enable this functionality would be left up to the user. 2. Where can I find more information about enabling this functionality? If you determine that you need to enable this functionality to enforce a default 7-octet minimum key length, see Microsoft Knowledge Base Article 4514157 . References Thank you to ICASI for coordinating multi-vendor response. Also see Statement from the International Consortium for Advancement of Cybersecurity on the Internet (ICASI) on the Bluetooth Vulnerability CERT/CC VU#918987 See Bluetooth SIG advisory: https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth
Microsoft Bluetooth Driver
Microsoft Bluetooth Driver
Microsoft
Microsoft
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Bluetooth specification does not enforce a minimum encryption key length during negotiation, allowing a man-in-the-middle to downgrade the key size.
Impact
An attacker with specialised hardware and close proximity could decrypt or tamper with Bluetooth communications; the fix is disabled by default and must be manually enabled, and some devices may not support the longer key length.
What the attacker needed
Specialised Bluetooth hardware; within radio range of target
The fix
Microsoft released a software update that enforces a default 7-octet minimum key length, but it is disabled by default and must be enabled via a registry flag.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Bluetooth devices agree on a secret key length when they connect. This flaw lets someone nearby with special radio equipment force that key to be very short, so it can be guessed easily. They could then listen in on or alter the data sent between your devices.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.