CVE-2026-64178: Bluetooth: bnep: Fix UAF read of dev->name

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026071937-CVE-2026-64178-c16a@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: bnep: Fix UAF read of dev->name

bnep_add_connection() needs to keep holding the bnep_session_sem while
reading dev->name (just like bnep_get_connlist() does); otherwise the
bnep_session() thread can concurrently free the net_device, which can for
example be triggered by a concurrent bnep_del_connection().

(This UAF is fairly uninteresting from a security perspective;
calling bnep_add_connection() requires passing a capable(CAP_NET_ADMIN)
check. It also requires completely tearing down a netdev during a fairly
tight race window.)

The Linux kernel CVE team has assigned CVE-2026-64178 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.258 with commit a75bbcb10cb21acc169b785e9804f57d97873a9c
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.209 with commit 4907596f25b1720fa948371ac5f6c1f8da10a5bc
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.175 with commit 915a92182e2cda9cd7d2479020a44c6eda986f7c
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.142 with commit fe69f634b076ae3ca81c5a5b845d9bba527036f7
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.92 with commit b21805258d7e926adfd455fc820a447b90da3b82
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.34 with commit 5506aec795135cdd4cbf4e845929155663b25055
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.11 with commit e7578529b97e5d4e439cf8f3e637c2303015338f
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit 59e932ded949fa6f0340bf7c6d7818f962fa4fd2

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-64178
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	net/bluetooth/bnep/core.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.