{"schema":"threatline.record/2","record":{"id":"CVE-2026-93247","aliases":[],"summary":"Bluetooth: mgmt: fix 'hdev->discovery.uuids' NULL dereference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: mgmt: fix 'hdev->discovery.uuids' NULL dereference\n\n'uuid_count' member of struct 'discovery_state' is assigned and read\nwithout any locks, so there is a chance of situation when\nuuid_count != 0, but uuids is NULL and there will be NULL pointer\ndereference.\n\nPossible race:\n'hci_update_passive_scan_sync'\n  'hci_discovery_filter_clear'\n    hdev->discovery.uuid_count = 0;\n      <----------------------preempted----------------------------->\n                        'start_service_discovery'\n                          // Set uuid_count to value != 0\n                          hdev->discovery.uuid_count = uuid_count;\n                          hdev->discovery.uuids = kmemdup(...);\n      <----------------------preempted----------------------------->\n    spin_lock(&hdev->discovery.lock);\n    kfree(hdev->discovery.uuids);\n    hdev->discovery.uuids = NULL;\n    spin_unlock(&hdev->discovery.lock);\n\nNow uuids == NULL and uuid_count != 0.\nSo 'mgmt_device_found' -> 'is_filter_match' -> 'eir_has_uuids' receives\nnon consistent discovery state, where NULL dereference of uuids happens.\n\nTo fix it let's add discovery.lock around every read/write of uuid_count,\nuuids pair of struct members. It is also important to assign uuid_count\nvalue only after success kmemdup() allocation in\nstart_service_discovery(), otherwise uuids is NULL, because kmemdup failed,\nbut uuid_count is already assigned to non zero value.\n\nThe following panic happens:\n\n[ ] ------------[ cut here ]------------\n[ ] Unable to handle kernel NULL pointer dereference at virtual\naddress 0000000000000000\n[ ] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP\n[ ] CPU: 0 PID: 15056 Comm: kworker/u9:2\n[ ] Workqueue: hci0 hci_rx_work\n[ ] pstate: 10400009 (nzcV daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)\n[ ] pc : eir_has_uuids+0x2d8/0x590\n[ ] lr : is_filter_match+0x258/0x320\n...\n[ ] Call trace:\n[ ]  eir_has_uuids+0x2d8/0x590\n[ ]  is_filter_match+0x258/0x320\n[ ]  mgmt_device_found+0x5b0/0xafc\n[ ]  process_adv_report.part.0+0x8c8/0xf14\n[ ]  hci_le_adv_report_evt+0x338/0x3f0\n[ ]  hci_le_meta_evt+0x1f0/0x4c8\n[ ]  hci_event_packet+0x440/0xc9c\n[ ]  hci_rx_work+0x44c/0xaf8\n[ ]  process_one_work+0x54c/0x103c\n[ ]  worker_thread+0x6c4/0x10c4\n[ ]  kthread+0x274/0x2ec\n[ ]  ret_from_fork+0x10/0x20\n[ ] Code: 14000004 91004021 eb14003f 54000180 (f9400024)\n[ ] ---[ end trace 0000000000000000 ]---","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"86f3dcd1f331cfd4fd7ec88906955134ec51afbe","lessThan":"f02c01ccd12cb2b8a290077d4c90f29a6e109b16","status":"affected","versionType":"git"},{"version":"7ce9bb0b95fc280e9212b8922590c492ca1d9c39","lessThan":"bbd262d2d750b67b15a5e1008d3848309c87e7a7","status":"affected","versionType":"git"},{"version":"16852eccbdfaf41a666705e3f8be55cf2864c5ca","lessThan":"18fda026a13c5abd6c1e0dfd3549f490b73378fb","status":"affected","versionType":"git"},{"version":"2935e556850e9c94d7a00adf14d3cd7fe406ac03","lessThan":"c3f63610bceaa182e4683b23cc47baf36b5f1496","status":"affected","versionType":"git"},{"version":"2935e556850e9c94d7a00adf14d3cd7fe406ac03","lessThan":"ee2135a14fb2a3e176149122764d293f0796b1eb","status":"affected","versionType":"git"},{"version":"2935e556850e9c94d7a00adf14d3cd7fe406ac03","lessThan":"59eecbe2f2f38d8f3e1104bd11da97f9a2c58998","status":"affected","versionType":"git"},{"version":"a351ff6b8ecca4229afaa0d98042bead8de64799","status":"affected","versionType":"git"},{"version":"f8069f34c4c976786ded97498012225af87435d7","status":"affected","versionType":"git"},{"version":"6.1.159","lessThan":"6.1.188","status":"affected","versionType":"semver"},{"version":"6.6.117","lessThan":"6.6.157","status":"affected","versionType":"semver"},{"version":"6.12.42","lessThan":"6.12.110","status":"affected","versionType":"semver"},{"version":"6.15.10","lessThan":"6.16","status":"affected","versionType":"semver"},{"version":"6.16.1","lessThan":"6.17","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"6.17","status":"affected"},{"version":"0","lessThan":"6.17","status":"unaffected","versionType":"semver"},{"version":"6.1.188","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.157","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.110","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.52","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.6","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-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"18fda026a13c5abd6c1e0dfd3549f490b73378fb","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"59eecbe2f2f38d8f3e1104bd11da97f9a2c58998","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.1.188","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.6.157","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.12.110","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.16","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","source_modified_at":"2026-10-19T09:08:00.296Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.17","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.00206,"percentile":0.1007,"score_date":"2026-10-23"},"published_at":"2026-09-24T15:51:04.897Z","modified_at":"2026-10-19T09:08:00.296Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-93247","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-19T09:08:00.296Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-93247","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/f02c01ccd12cb2b8a290077d4c90f29a6e109b16"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/bbd262d2d750b67b15a5e1008d3848309c87e7a7"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/18fda026a13c5abd6c1e0dfd3549f490b73378fb"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/c3f63610bceaa182e4683b23cc47baf36b5f1496"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/ee2135a14fb2a3e176149122764d293f0796b1eb"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/59eecbe2f2f38d8f3e1104bd11da97f9a2c58998"}],"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-19T09:08:00.296Z","content_hash":"8ef464b936a00aa71934e3d5f6978250f74ac625bad0daf280db980ceafd7d05"}}
