{"schema":"threatline.record/2","record":{"id":"CVE-2026-97975","aliases":[],"summary":"Bluetooth: hci_sysfs: Fix NULL pointer dereference in device_del()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sysfs: Fix NULL pointer dereference in device_del()\n\nA NULL pointer dereference in klist_put() occurs when a child device (such\nas a BNEP network device in bnep_session) is concurrently being\nunregistered while hci_conn_del_sysfs() reparents child devices.\n\nThis is caused by a race condition between hci_conn_del_sysfs() and\nconcurrent child device unregistration (e.g. bnep_session calling\nunregister_netdev()). During device unregistration, device_del() snapshots\na non-NULL parent pointer. Concurrently, hci_conn_del_sysfs() finds the\nchild device using device_find_any_child() and calls device_move() to\nreparent it to NULL, which removes the node from its parent's klist and\nclears knode_parent. Subsequently, device_del() calls\nklist_del(&dev->p->knode_parent) using the stale parent snapshot, causing\nklist_put() to dereference knode_klist(n)->put on an already removed node,\nresulting in a NULL pointer dereference.\n\nThis race was introduced by commit 27aabf27fd01 (\"Bluetooth: fix\nuse-after-free in device_for_each_child()\"), which replaced\ndevice_find_child(..., __match_tty) with device_find_any_child() in\nhci_conn_del_sysfs(). That change was intended to avoid a use-after-free\nwhere conn->dev outlived its parent hdev->dev when child devices held\nreferences to conn->dev, because conn->dev only held a reference to\nhdev->dev while registered in sysfs.\n\nFix the issue properly by taking an explicit reference to the parent device\nwith get_device(&hdev->dev) in hci_conn_init_sysfs() and dropping it with\nput_device(parent) in bt_link_release() when the conn device is freed. This\nensures that hdev->dev remains valid for the entire lifecycle of conn->dev,\nresolving the underlying use-after-free. With the parent reference held\nproperly, restore the __match_tty filter in hci_conn_del_sysfs() so that\ndevice_move() is only invoked on persistent RFCOMM TTY devices as\noriginally intended, eliminating the race condition with unregistering\nnetwork devices.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"de5a44f351ca7efd9add9851b218f5353e2224b7","lessThan":"55b76500546e5f2e7fdd7ae7283530b620de6e61","status":"affected","versionType":"git"},{"version":"7b277bd569bb6a2777f0014f84b4344f444fd49d","lessThan":"66cc55b69928b742d24b4c5b66d195ae96900e48","status":"affected","versionType":"git"},{"version":"27aabf27fd014ae037cc179c61b0bee7cff55b3d","lessThan":"eeabdb25c3209569367e99a85ca9a503b64a646d","status":"affected","versionType":"git"},{"version":"27aabf27fd014ae037cc179c61b0bee7cff55b3d","lessThan":"9e9ece97b8e716890793de261574b8efef7d8702","status":"affected","versionType":"git"},{"version":"27aabf27fd014ae037cc179c61b0bee7cff55b3d","lessThan":"9b851b09b392da68bd715601f10a5adb2d8d19b8","status":"affected","versionType":"git"},{"version":"6894717a1ea363c5a27010ba604f957c309d282d","status":"affected","versionType":"git"},{"version":"fb91ce37dc9a37ea23cf32b6d7b667004e93d4c5","status":"affected","versionType":"git"},{"version":"a9584c897d1cba6265c78010bbb45ca5722c88bc","status":"affected","versionType":"git"},{"version":"0f67ca2a80acf8b207240405b7f72d660665d3df","status":"affected","versionType":"git"},{"version":"91e2a2e4d1336333804cd31162984f01ad8cc70f","status":"affected","versionType":"git"},{"version":"6.6.64","lessThan":"6.6.160","status":"affected","versionType":"semver"},{"version":"6.12.2","lessThan":"6.12.114","status":"affected","versionType":"semver"},{"version":"5.4.297","lessThan":"5.5","status":"affected","versionType":"semver"},{"version":"5.10.231","lessThan":"5.11","status":"affected","versionType":"semver"},{"version":"5.15.174","lessThan":"5.16","status":"affected","versionType":"semver"},{"version":"6.1.120","lessThan":"6.2","status":"affected","versionType":"semver"},{"version":"6.11.11","lessThan":"6.12","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"6.13","status":"affected"},{"version":"0","lessThan":"6.13","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.53","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.7","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-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"55b76500546e5f2e7fdd7ae7283530b620de6e61","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"66cc55b69928b742d24b4c5b66d195ae96900e48","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"9e9ece97b8e716890793de261574b8efef7d8702","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"9b851b09b392da68bd715601f10a5adb2d8d19b8","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","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-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.12.114","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"5.5","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"5.11","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"5.16","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","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-97975","source_modified_at":"2026-10-21T12:53:55.330Z","fetched_at":"2026-10-23T18:45:31.882637Z","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":0.00168,"percentile":0.05712,"score_date":"2026-10-23"},"published_at":"2026-09-25T10:23:13.971Z","modified_at":"2026-10-21T12:53:55.330Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-97975","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T12:53:55.330Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-97975","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/55b76500546e5f2e7fdd7ae7283530b620de6e61"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/66cc55b69928b742d24b4c5b66d195ae96900e48"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/eeabdb25c3209569367e99a85ca9a503b64a646d"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/9e9ece97b8e716890793de261574b8efef7d8702"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/9b851b09b392da68bd715601f10a5adb2d8d19b8"}],"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-21T12:53:55.330Z","content_hash":"f75b1aeaaaa5fa58c2518624b0419e96acddbbec834cb24d0dbca55c5a5a4a1d"}}
