CVE-2026-99091: Bluetooth: MGMT: Fix status of pending commands flushed on power off

Published Oct 26, 2026
·
Updated

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

Bluetooth: MGMT: Fix status of pending commands flushed on power off

cmdcompletersp() receives a struct cmdlookup and, for a pending command that has no cmdcomplete callback, falls through to cmdstatusrsp(cmd, data). cmdstatusrsp() reads data as a u8 , so the status sent comes from the first byte of match->sk's representation, not from match->mgmtstatus.

commit f53e1c9c726d ("Bluetooth: MGMT: Fix possible crash on mgmtindexremoved") changed the callers' data from &status to &match and updated the cmdcomplete branch to match->mgmtstatus, but left the fall-through passing data unchanged.

In mgmtindexremoved() match->sk is NULL, so every such command is answered with status 0x00 (Success) instead of MGMTSTATUSINVALIDINDEX. In mgmtpoweroff() it is NULL too, unless a Set Powered command was pending: then settingsrsp() has stored that command's socket in match->sk, and the byte sent comes from the socket pointer. Either way the status the caller set, MGMTSTATUSNOTPOWERED (or MGMTSTATUSINVALIDINDEX when the device is being unregistered), is lost.

Pass the status the callers set.

This was seen on a QCA9377 laptop: bluetoothd's Start Discovery, pending when the adapter was powered off, was answered with Command Status 0x00 and no parameters, and bluetoothd 5.72 crashed on the zero-length success. BlueZ master has since added the length check on that path ("adapter: Fix crash on short start discovery reply", BlueZ a734b06059cb), but userspace should still be told Not Powered, not Success.

Tested on Ubuntu 7.0.0-31 with a virtual controller (hcivhci): power off is held in HCI Write Scan Enable while a Start Discovery is submitted, and the flush answers it with status 0x00 before this change and 0x0f (Not Powered) after.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 26, 2026
CVE Published
via MITRE·02:52 PM
Data Sourced
via MITRE·02:52 PM
Description

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