{"schema":"threatline.record/2","record":{"id":"CVE-2026-99091","aliases":[],"summary":"Bluetooth: MGMT: Fix status of pending commands flushed on power off","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: Fix status of pending commands flushed on power off\n\ncmd_complete_rsp() receives a struct cmd_lookup and, for a pending\ncommand that has no cmd_complete callback, falls through to\ncmd_status_rsp(cmd, data). cmd_status_rsp() reads data as a u8 *, so\nthe status sent comes from the first byte of match->sk's\nrepresentation, not from match->mgmt_status.\n\ncommit f53e1c9c726d (\"Bluetooth: MGMT: Fix possible crash on\nmgmt_index_removed\") changed the callers' data from &status to &match\nand updated the cmd_complete branch to match->mgmt_status, but left\nthe fall-through passing data unchanged.\n\nIn mgmt_index_removed() match->sk is NULL, so every such command is\nanswered with status 0x00 (Success) instead of\nMGMT_STATUS_INVALID_INDEX. In __mgmt_power_off() it is NULL too,\nunless a Set Powered command was pending: then settings_rsp() has\nstored that command's socket in match->sk, and the byte sent comes\nfrom the socket pointer. Either way the status the caller set,\nMGMT_STATUS_NOT_POWERED (or MGMT_STATUS_INVALID_INDEX when the device\nis being unregistered), is lost.\n\nPass the status the callers set.\n\nThis was seen on a QCA9377 laptop: bluetoothd's Start Discovery,\npending when the adapter was powered off, was answered with Command\nStatus 0x00 and no parameters, and bluetoothd 5.72 crashed on the\nzero-length success. BlueZ master has since added the length check\non that path (\"adapter: Fix crash on short start discovery reply\",\nBlueZ a734b06059cb), but userspace should still be told Not Powered,\nnot Success.\n\nTested on Ubuntu 7.0.0-31 with a virtual controller (hci_vhci):\npower off is held in HCI Write Scan Enable while a Start Discovery is\nsubmitted, and the flush answers it with status 0x00 before this\nchange and 0x0f (Not Powered) after.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","product":"Linux","vendor":"Linux","versions":[{"version":"4883296505aa7e4863c6869b689afb6005633b23","lessThan":"44ce36c5789ac84e65de1e98c32db9a5ac04ed47","status":"affected","versionType":"git"},{"version":"f53e1c9c726d83092167f2226f32bd3b73f26c21","lessThan":"7ed7e038b520cf0dfa12d61c2caddb95e2f6922d","status":"affected","versionType":"git"},{"version":"f53e1c9c726d83092167f2226f32bd3b73f26c21","lessThan":"ec227cddd13cd7ac9077d263a73473ac370a055d","status":"affected","versionType":"git"},{"version":"f53e1c9c726d83092167f2226f32bd3b73f26c21","lessThan":"07976405a3c71253e50533ee7b7a8b0dc16ab6ba","status":"affected","versionType":"git"},{"version":"f53e1c9c726d83092167f2226f32bd3b73f26c21","lessThan":"86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc","status":"affected","versionType":"git"},{"version":"19b40ca62607cef78369549d1af091f2fd558931","status":"affected","versionType":"git"},{"version":"0cc47233af35fb5f10b5e6a027cb4ccd480caf9a","status":"affected","versionType":"git"},{"version":"8c3f7943a29145d8a2d8e24893762f7673323eae","status":"affected","versionType":"git"},{"version":"6.6.55","lessThan":"6.6.160","status":"affected","versionType":"semver"},{"version":"6.1.120","lessThan":"6.2","status":"affected","versionType":"semver"},{"version":"6.10.14","lessThan":"6.11","status":"affected","versionType":"semver"},{"version":"6.11.3","lessThan":"6.12","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","product":"Linux","vendor":"Linux","versions":[{"version":"6.12","status":"affected"},{"version":"0","lessThan":"6.12","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.113","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.57","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.11","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"44ce36c5789ac84e65de1e98c32db9a5ac04ed47","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"7ed7e038b520cf0dfa12d61c2caddb95e2f6922d","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"07976405a3c71253e50533ee7b7a8b0dc16ab6ba","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"6.6.160","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"6.2","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"6.11","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","source_modified_at":"2026-10-26T14:52:00.262Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"Linux","ecosystem":null},"version":"6.12","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-26T14:52:00.262Z","modified_at":"2026-10-26T14:52:00.262Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99091","fetched_at":"2026-10-26T19:10:57.178988Z","source_modified_at":"2026-10-26T14:52:00.262Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/44ce36c5789ac84e65de1e98c32db9a5ac04ed47"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/7ed7e038b520cf0dfa12d61c2caddb95e2f6922d"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/ec227cddd13cd7ac9077d263a73473ac370a055d"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/07976405a3c71253e50533ee7b7a8b0dc16ab6ba"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-26T14:52:00.262Z","content_hash":"e1e03cea733bec7e1de5f58682a4ded26b53da580574a1ad83880e06c53cab97"}}
