{"id":"CVE-2026-64178","state":"PUBLISHED","title":"Bluetooth: bnep: Fix UAF read of dev->name","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: bnep: Fix UAF read of dev->name\n\nbnep_add_connection() needs to keep holding the bnep_session_sem while\nreading dev->name (just like bnep_get_connlist() does); otherwise the\nbnep_session() thread can concurrently free the net_device, which can for\nexample be triggered by a concurrent bnep_del_connection().\n\n(This UAF is fairly uninteresting from a security perspective;\ncalling bnep_add_connection() requires passing a capable(CAP_NET_ADMIN)\ncheck. It also requires completely tearing down a netdev during a fairly\ntight race window.)","publishedAt":"2026-07-19T15:41:02.293Z","updatedAt":"2026-10-19T20:28:14.749Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a75bbcb10cb21acc169b785e9804f57d97873a9c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"4907596f25b1720fa948371ac5f6c1f8da10a5bc","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"915a92182e2cda9cd7d2479020a44c6eda986f7c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fe69f634b076ae3ca81c5a5b845d9bba527036f7","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b21805258d7e926adfd455fc820a447b90da3b82","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"5506aec795135cdd4cbf4e845929155663b25055","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"e7578529b97e5d4e439cf8f3e637c2303015338f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"59e932ded949fa6f0340bf7c6d7818f962fa4fd2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/bnep/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.258","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.209","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.175","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.142","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/bnep/core.c"]}],"references":["https://git.kernel.org/stable/c/a75bbcb10cb21acc169b785e9804f57d97873a9c","https://git.kernel.org/stable/c/4907596f25b1720fa948371ac5f6c1f8da10a5bc","https://git.kernel.org/stable/c/915a92182e2cda9cd7d2479020a44c6eda986f7c","https://git.kernel.org/stable/c/fe69f634b076ae3ca81c5a5b845d9bba527036f7","https://git.kernel.org/stable/c/b21805258d7e926adfd455fc820a447b90da3b82","https://git.kernel.org/stable/c/5506aec795135cdd4cbf4e845929155663b25055","https://git.kernel.org/stable/c/e7578529b97e5d4e439cf8f3e637c2303015338f","https://git.kernel.org/stable/c/59e932ded949fa6f0340bf7c6d7818f962fa4fd2"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64178.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64178","state":"PUBLISHED","datePublished":"2026-07-19T15:41:02.293Z","dateUpdated":"2026-10-19T20:28:14.749Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.039Z"},"containers":{"cna":{"title":"Bluetooth: bnep: Fix UAF read of dev->name","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: bnep: Fix UAF read of dev->name\n\nbnep_add_connection() needs to keep holding the bnep_session_sem while\nreading dev->name (just like bnep_get_connlist() does); otherwise the\nbnep_session() thread can concurrently free the net_device, which can for\nexample be triggered by a concurrent bnep_del_connection().\n\n(This UAF is fairly uninteresting from a security perspective;\ncalling bnep_add_connection() requires passing a capable(CAP_NET_ADMIN)\ncheck. It also requires completely tearing down a netdev during a fairly\ntight race window.)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a75bbcb10cb21acc169b785e9804f57d97873a9c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"4907596f25b1720fa948371ac5f6c1f8da10a5bc","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"915a92182e2cda9cd7d2479020a44c6eda986f7c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fe69f634b076ae3ca81c5a5b845d9bba527036f7","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b21805258d7e926adfd455fc820a447b90da3b82","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"5506aec795135cdd4cbf4e845929155663b25055","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"e7578529b97e5d4e439cf8f3e637c2303015338f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"59e932ded949fa6f0340bf7c6d7818f962fa4fd2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/bnep/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.258","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.209","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.175","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.142","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/bnep/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a75bbcb10cb21acc169b785e9804f57d97873a9c"},{"url":"https://git.kernel.org/stable/c/4907596f25b1720fa948371ac5f6c1f8da10a5bc"},{"url":"https://git.kernel.org/stable/c/915a92182e2cda9cd7d2479020a44c6eda986f7c"},{"url":"https://git.kernel.org/stable/c/fe69f634b076ae3ca81c5a5b845d9bba527036f7"},{"url":"https://git.kernel.org/stable/c/b21805258d7e926adfd455fc820a447b90da3b82"},{"url":"https://git.kernel.org/stable/c/5506aec795135cdd4cbf4e845929155663b25055"},{"url":"https://git.kernel.org/stable/c/e7578529b97e5d4e439cf8f3e637c2303015338f"},{"url":"https://git.kernel.org/stable/c/59e932ded949fa6f0340bf7c6d7818f962fa4fd2"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The bug is in BNEP session setup for Bluetooth PAN; the highest-impact scenario is an adjacent Bluetooth peer on a phone or laptop whose stack calls BNEPCONNADD during PAN bridging, not a generic local syscall path.\nAC:L - The attacker controls disconnect/reconnect timing on the established L2CAP socket and can repeatedly race teardown against bnep_add_connection()'s unprotected strcpy window; UAF races with attacker-controlled concurrency are AC:L.\nPR:N - Exploitation does not require attacker privileges on the victim—only adjacency as the connected Bluetooth peer while the victim's privileged bluetoothd issues BNEPCONNADD; CAP_NET_ADMIN gates the ioctl on the victim side, not the attacker.\nUI:N - Once Bluetooth PAN/tethering is available, the attacker initiates and tears down the connection to drive the race without requiring additional victim action during exploitation.\nS:U - Impact is kernel memory corruption and potential privilege escalation within the host kernel, not crossing into another security authority such as a VM guest or separate sandbox domain.\nC:H - This is a use-after-free read of freed net_device memory via strcpy(dev->name); UAF reads can expose reclaimed slab contents and support further kernel memory disclosure.\nI:H - UAF on a heap-allocated net_device can be leveraged with heap grooming for control-flow or data corruption beyond the immediate bounded name copy.\nA:H - Concurrent free of the net_device during the UAF read can cause kernel oops/panic and denial of service, consistent with UAF availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:39:55.555Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.258"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.209"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.175"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.92"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-64178","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:37:17.723299Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:28:14.749Z"}}]}}}