CVE-2022-50339: Bluetooth: avoid hci_dev_test_and_set_flag() in mgmt_init_hdev()

Published Sep 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: avoid hcidevtestandsetflag() in mgmtinithdev()

syzbot is again reporting attempt to cancel uninitialized work at mgmtindexremoved() [1], for setting of HCIMGMT flag from mgmtinithdev() from hcimgmtcmd() from hcisocksendmsg() can race with testing of HCIMGMT flag from mgmtindexremoved() from hcisockbind() due to lack of serialization via hcidevlock().

Since mgmtinithdev() is called with mgmtchanlistlock held, we can safely split hcidevtestandsetflag() into hcidevtestflag() and hcidevsetflag(). Thus, in order to close this race, set HCIMGMT flag after INITDELAYEDWORK() completed.

This is a local fix based on mgmtchanlistlock. Lack of serialization via hcidevlock() might be causing different race conditions somewhere else. But a global fix based on hcidevlock() should deserve a future patch.

Affected Software

6 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.0<6.0.3
debian/linux<6.0.3-1
6.0.3-1
debian/linux<6.0.3-1
6.0.3-1
debian/linux<6.0.3-1
6.0.3-1
debian/linux
6.0.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.0.3-1
  2. Compensating control

    In mgmt_init_hdev(), replace hci_dev_test_and_set_flag() with hci_dev_test_flag() followed by hci_dev_set_flag(), and set the HCI_MGMT flag only after INIT_DELAYED_WORK() has completed.

Event History

Sep 16, 2025
CVE Published
via MITRE·04:11 PM
Data Sourced
via MITRE·04:11 PM
Description
Data Sourced
via NVD·05:15 PM
Description
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Dec 1, 2025
Data Sourced
via NVD·10:00 PM
RemedySeverityWeaknessAffected Software
Jan 14, 2026
Updated
via NVD·07:16 PM
SeverityWeakness
Aug 4, 2026
Data Sourced
via MITRE·09:08 AM
Severity
Event
via MITRE·09:08 AM
Updated
via NVD·10:18 AM
Severity

Frequently Asked Questions

1

What is the severity of CVE-2022-50339?

CVE-2022-50339 is classified as a vulnerability in the Linux kernel that affects Bluetooth functionality.

2

How do I fix CVE-2022-50339?

To fix CVE-2022-50339, update your Linux kernel to version 6.0.4 or later.

3

What versions of the Linux kernel are affected by CVE-2022-50339?

CVE-2022-50339 affects Linux kernel versions from 6.0 to 6.0.3.

4

What component does CVE-2022-50339 affect within the Linux kernel?

CVE-2022-50339 primarily affects the Bluetooth component of the Linux kernel.

5

Is CVE-2022-50339 exploitable remotely?

The details regarding remote exploitability for CVE-2022-50339 are not specifically noted, but it affects Bluetooth, which could pose risks if improperly managed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203