{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49136",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-02-26T01:49:39.268Z",
        "datePublished": "2025-02-26T01:55:09.345Z",
        "dateUpdated": "2026-08-05T08:54:01.573Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:54:01.573Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: Fix queuing commands when HCI_UNREGISTER is set\n\nhci_cmd_sync_queue shall return an error if HCI_UNREGISTER flag has\nbeen set as that means hci_unregister_dev has been called so it will\nlikely cause a uaf after the timeout as the hdev will be freed."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - Although this is Bluetooth code, exploitation requires local hci_unregister_dev() (e.g. closing /dev/vhci or driver teardown) raced with a concurrent hci_cmd_sync_queue() caller; an adjacent peer can feed HCI/LE events into the queue path but cannot itself unregister the controller, matching prior hci_cmd_sync/unregister UAF scores.\nAC:L - Via /dev/vhci the attacker controls both sides—injecting HCI traffic or issuing mgmt/connect paths that call hci_cmd_sync_queue while closing the fd to run hci_unregister_dev/hci_cmd_sync_clear—and can retry open/queue/close until the post-unregister queue wins and the freed hdev is reused.\nPR:L - vhci_open() has no capable() check, so any principal with the device node (Android bluetooth uid, containers, permissive udev) can create/destroy virtual controllers and inject frames without real init-namespace root, consistent with CVE-2023-53046/CVE-2024-58241/CVE-2025-38250.\nUI:N - The attacker performs device creation, command/event injection, and teardown entirely from its own processes; no separate victim action such as mounting a filesystem or confirming a prompt is required.\nS:U - The use-after-free corrupts kernel slab/workqueue state within the host kernel’s security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - Queuing after HCI_UNREGISTER leaves cmd_sync work running against a freed hci_dev after timeout/teardown; reclaiming that object yields a use-after-free read primitive over kernel heap contents, so confidentiality is High.\nI:H - The same UAF exposes sprayable hci_dev/work-entry state (including function pointers invoked from hci_cmd_sync_work), enabling arbitrary write and control-flow hijack after heap grooming.\nA:H - Use-after-free of hdev in cmd_sync/timeout paths causes kernel oops/panic even when not fully exploited, which is High availability impact."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/bluetooth/hci_sync.c"
                    ],
                    "versions": [
                        {
                            "version": "6a98e3836fa2077b169f10a35c2ca9952d53f987",
                            "lessThan": "1c69ef84a808676cceb69210addf5df45b741323",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6a98e3836fa2077b169f10a35c2ca9952d53f987",
                            "lessThan": "0b94f2651f56b9e4aa5f012b0d7eb57308c773cf",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/bluetooth/hci_sync.c"
                    ],
                    "versions": [
                        {
                            "version": "5.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.17",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17.3",
                            "lessThanOrEqual": "5.17.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.17",
                                    "versionEndExcluding": "5.17.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.17",
                                    "versionEndExcluding": "5.18"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/1c69ef84a808676cceb69210addf5df45b741323"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0b94f2651f56b9e4aa5f012b0d7eb57308c773cf"
                }
            ],
            "title": "Bluetooth: hci_sync: Fix queuing commands when HCI_UNREGISTER is set",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-49136",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-02-27T17:59:07.674181Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-416",
                                "description": "CWE-416 Use After Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-02-27T18:02:29.693Z"
                }
            }
        ]
    }
}