Skip to content

Conversation

backporting[bot]
Copy link

@backporting backporting bot commented Aug 27, 2019

Backport #18659.

Johan Hedberg added 2 commits August 27, 2019 10:30
In case sufficient security level wasn't reached the error propagation
was missing, which could lead to incorrect state transitions when
update_sec_level_br() returns. Return true/false and make sure to
abort any further operations in case the update fails.

Signed-off-by: Johan Hedberg <[email protected]>
A security vulnerability in the Bluetooth BR/EDR Bluetooth Core
specification versions 1.0 through 5.1 has been identified as
CVE-2019-9506. The Bluetooth BR/EDR encryption key negotiation
protocol is vulnerable to packet injection that could allow an
unauthenticated user to decrease the size of the entropy of the
encryption key, potentially causing information disclosure and/or
escalation of privileges via adjacent access. There is not currently
any knowledge of this being exploited.

From Core spec erratum 11838:

A device shall enforce an encryption key with at least 128-bit
equivalent strength for all services that require Security Mode 4,
Level 4. For all other services that require encryption, a device
should enforce an encryption key with at least 56-bit equivalent
strength, irrespective of whether the remote device supports Secure
Simple Pairing.

After encryption has been enabled, the Host should check the
encryption key size using either the HCI_Read_Encryption_Key_Size
command (see [Vol 2] Part E, Section 7.5.7) or a vendor-specific
method.

Fixes #18658

Signed-off-by: Johan Hedberg <[email protected]>
@jhedberg jhedberg added area: Bluetooth area: Security Security bug The issue is a bug, or the PR is fixing a bug labels Aug 27, 2019
@jhedberg jhedberg added this to the v1.14.1 milestone Aug 27, 2019
@zephyrbot zephyrbot added the area: API Changes to public APIs label Aug 27, 2019
@nashif nashif merged commit 65f70ac into v1.14-branch Aug 29, 2019
@nashif nashif deleted the backport-18659-to-v1.14-branch branch August 29, 2019 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: API Changes to public APIs area: Bluetooth area: Security Security bug The issue is a bug, or the PR is fixing a bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants