Bluetooth: MGMT: Fix status of pending commands flushed on power off
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix status of pending commands flushed on power off cmd_complete_rsp() receives a struct cmd_lookup and, for a pending command that has no cmd_complete callback, falls through to cmd_status_rsp(cmd, data). cmd_status_rsp() reads data as a u8 *, so the status sent comes from the first byte of match->sk's representation, not from match->mgmt_status. commit f53e1c9c726d ("Bluetooth: MGMT: Fix possible crash on mgmt_index_removed") changed the callers' data from &status to &match and updated the cmd_complete branch to match->mgmt_status, but left the fall-through passing data unchanged. In mgmt_index_removed() match->sk is NULL, so every such command is answered with status 0x00 (Success) instead of MGMT_STATUS_INVALID_INDEX. In __mgmt_power_off() it is NULL too, unless a Set Powered command was pending: then settings_rsp() 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, MGMT_STATUS_NOT_POWERED (or MGMT_STATUS_INVALID_INDEX 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 star
- Products
- Linux
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-99091
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 10:25 UTC · Revision 1
Source evidence
Bluetooth: MGMT: Fix status of pending commands flushed on power off
core-cve · Original sourcePublished 26 Oct 2026, 14:52 UTC
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix status of pending commands flushed on power off cmd_complete_rsp() receives a struct cmd_lookup and, for a pending command that has no cmd_complete callback, falls through to cmd_status_rsp(cmd, data). cmd_status_rsp() reads data as a u8 *, so the status sent comes from the first byte of match->sk's representation, not from match->mgmt_status. commit f53e1c9c726d ("Bluetooth: MGMT: Fix possible crash on mgmt_index_removed") changed the callers' data from &status to &match and updated the cmd_complete branch to match->mgmt_status, but left the fall-through passing data unchanged. In mgmt_index_removed() match->sk is NULL, so every such command is answered with status 0x00 (Success) instead of MGMT_STATUS_INVALID_INDEX. In __mgmt_power_off() it is NULL too, unless a Set Powered command was pending: then settings_rsp() 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, MGMT_STATUS_NOT_POWERED (or MGMT_STATUS_INVALID_INDEX 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 star
cve:CVE-2026-99091
Linux
Fixed versions: Not specified
Linux
Fixed versions: Not specified
Complete source record
{
"id": "de14b3bc0ea5170bf25f75753b926ae30c4c203378a19b911937533a8304afaf",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-99091",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Bluetooth: MGMT: Fix status of pending commands flushed on power off",
"summary": "In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix status of pending commands flushed on power off cmd_complete_rsp() receives a struct cmd_lookup and, for a pending command that has no cmd_complete callback, falls through to cmd_status_rsp(cmd, data). cmd_status_rsp() reads data as a u8 *, so the status sent comes from the first byte of match->sk's representation, not from match->mgmt_status. commit f53e1c9c726d (\"Bluetooth: MGMT: Fix possible crash on mgmt_index_removed\") changed the callers' data from &status to &match and updated the cmd_complete branch to match->mgmt_status, but left the fall-through passing data unchanged. In mgmt_index_removed() match->sk is NULL, so every such command is answered with status 0x00 (Success) instead of MGMT_STATUS_INVALID_INDEX. In __mgmt_power_off() it is NULL too, unless a Set Powered command was pending: then settings_rsp() 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, MGMT_STATUS_NOT_POWERED (or MGMT_STATUS_INVALID_INDEX 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 star",
"evidence": "cve:CVE-2026-99091",
"products": [
{
"name": {
"value": "Linux",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Linux",
"evidence": "/containers/cna/affected/1/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-99091",
"aliases": [
"CVE-2026-99091"
],
"metrics": [],
"affected": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4883296505aa7e4863c6869b689afb6005633b23",
"lessThan": "44ce36c5789ac84e65de1e98c32db9a5ac04ed47",
"versionType": "git"
},
{
"status": "affected",
"version": "f53e1c9c726d83092167f2226f32bd3b73f26c21",
"lessThan": "7ed7e038b520cf0dfa12d61c2caddb95e2f6922d",
"versionType": "git"
},
{
"status": "affected",
"version": "f53e1c9c726d83092167f2226f32bd3b73f26c21",
"lessThan": "ec227cddd13cd7ac9077d263a73473ac370a055d",
"versionType": "git"
},
{
"status": "affected",
"version": "f53e1c9c726d83092167f2226f32bd3b73f26c21",
"lessThan": "07976405a3c71253e50533ee7b7a8b0dc16ab6ba",
"versionType": "git"
},
{
"status": "affected",
"version": "f53e1c9c726d83092167f2226f32bd3b73f26c21",
"lessThan": "86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc",
"versionType": "git"
},
{
"status": "affected",
"version": "19b40ca62607cef78369549d1af091f2fd558931",
"versionType": "git"
},
{
"status": "affected",
"version": "0cc47233af35fb5f10b5e6a027cb4ccd480caf9a",
"versionType": "git"
},
{
"status": "affected",
"version": "8c3f7943a29145d8a2d8e24893762f7673323eae",
"versionType": "git"
},
{
"status": "affected",
"version": "6.6.55",
"lessThan": "6.6.160",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.1.120",
"lessThan": "6.2",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.10.14",
"lessThan": "6.11",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.11.3",
"lessThan": "6.12",
"versionType": "semver"
}
],
"programFiles": [
"net/bluetooth/mgmt.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.12"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.12",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.113",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.11",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/bluetooth/mgmt.c"
],
"defaultStatus": "affected"
}
],
"modified": "2026-10-26T14:52:00.262Z",
"provider": "cve",
"references": [
"https://git.kernel.org/stable/c/44ce36c5789ac84e65de1e98c32db9a5ac04ed47",
"https://git.kernel.org/stable/c/7ed7e038b520cf0dfa12d61c2caddb95e2f6922d",
"https://git.kernel.org/stable/c/ec227cddd13cd7ac9077d263a73473ac370a055d",
"https://git.kernel.org/stable/c/07976405a3c71253e50533ee7b7a8b0dc16ab6ba",
"https://git.kernel.org/stable/c/86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc"
],
"provider_metadata": {
"cna": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-10-26T14:52:00.262Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-99091",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-cve",
"document_id": 311608,
"published_at": "2026-10-26T14:52:00.262+00:00"
}