CVE-2022-50339

Description

A race condition exists in the Bluetooth module of the linux kernel such that a Lack of serialization via hci_dev_lock() causes a race condition, resulting in damage to the availability and integrity of the system.

Statement

A race condition was found in the Bluetooth management subsystem of the Linux kernel, rated by Red Hat Product Security as having Moderate security impact. Due to a lack of serialization via hci_dev_lock(), the setting of the HCI_MGMT flag in mgmt_init_hdev(), reached when a local user sends a Bluetooth management command through hci_sock_sendmsg(), can race with the testing of the HCI_MGMT flag in mgmt_index_removed(), reached through hci_sock_bind(). A local user able to open and use a Bluetooth management socket could exploit this race to trigger an attempt to cancel uninitialized delayed work, impacting system availability. The Moderate rating reflects the local attack vector, privileges required, and high attack complexity of triggering this narrow race window, which is lower than the Important severity implied by the published CVSS 3.1 scores (7.0 from Red Hat, NIST, and CISA; 7.8 from the upstream CVE record). All Red Hat Enterprise Linux and Red Hat In-Vehicle OS releases tracked for this flaw are not affected because the vulnerable code is not present in the shipped kernel versions.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score777.8
Attack VectorLocalLocalLocal
Attack ComplexityHighHighLow
Privileges RequiredLowLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityHighHighHigh
Integrity ImpactHighHighHigh
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)

When a race condition makes it possible to bypass a resource cleanup routine or trigger multiple initialization routines, it may lead to resource exhaustion.

Availability

Technical Impact: DoS: Crash, Exit, or Restart; DoS: Instability

When a race condition allows multiple control flows to access a resource simultaneously, it might lead the product(s) into unexpected states, possibly resulting in a crash.

Confidentiality,Integrity

Technical Impact: Read Files or Directories; Read Application Data

When a race condition is combined with predictable resource names and loose permissions, it may be possible for an attacker to overwrite or access confidential data (CWE-59).

Access Control

Technical Impact: Execute Unauthorized Code or Commands; Gain Privileges or Assume Identity; Bypass Protection Mechanism

This can have security implications when the expected synchronization is in security-critical code, such as recording whether a user is authenticated or modifying important state information that should not be influenced by an outsider.

Frequently Asked Questions

Want to get errata notifications? Sign up here.