CVE-2026-72336

Source
https://cve.org/CVERecord?id=CVE-2026-72336
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72336.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72336
Downstream
Published
2026-08-15T05:55:44.487Z
Modified
2026-08-16T03:48:40.154295387Z
Summary
Bluetooth: 6lowpan: hold L2CAP conn across debugfs control
Details

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

Bluetooth: 6lowpan: hold L2CAP conn across debugfs control

getl2capconn() looks up an LE hciconn under hdev protection, but then drops that protection before reading hcon->l2capdata and before lowpancontrolwrite() later dereferences conn->hcon. A disconnect or device close can tear down the same L2CAP connection in that window.

The buggy scenario involves two paths, with each column showing the order within that path:

6LoWPAN control write: HCI disconnect/device close: 1. getl2capconn() finds hcon 1. hcidisconncfm() dispatches and hcon->l2capdata. the L2CAP disconnect callback. 2. getl2capconn() drops hdev 2. l2capconndel() clears protection and returns conn. hcon->l2capdata and drops the L2CAP connection reference. 3. lowpancontrolwrite() reads 3. hciconndel() removes and drops conn->hcon. the HCI connection.

Take a reference to the L2CAP connection with l2capconnholdunlesszero() while hdev is still locked, and drop that reference after the debugfs command's last use of conn. This mirrors the existing L2CAP ACL receive-side handoff and keeps the connection dereferenceable after leaving hdev protection. Export the existing helper so the bluetooth_6lowpan module can use the same lifetime primitive.

Validation reproduced this kernel report: BUG: KASAN: slab-use-after-free in lowpancontrolwrite+0x374/0x520 The buggy address belongs to the object at ffff888111b9d000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of freed 1024-byte region [ffff888111b9d000, ffff888111b9d400) Read of size 8 Call trace: dumpstacklvl+0x66/0xa0 printreport+0xce/0x5f0 lowpancontrolwrite+0x374/0x520 (net/bluetooth/6lowpan.c:1131) srsoaliasreturnthunk+0x5/0xfbef5 __virtaddrvalid+0x19f/0x330 kasan_report+0xe0/0x110 __debugfsfileget+0xf7/0x400 fullproxywrite+0x9e/0xd0 vfswrite+0x1b0/0x810 ksyswrite+0xd2/0x170 dnotifyflush+0x32/0x220 dosyscall64+0x115/0x6a0 (arch/x86/entry/syscall64.c:87) entrySYSCALL64afterhwframe+0x77/0x7f Allocated by task stack: kasansavestack+0x33/0x60 kasansavetrack+0x17/0x60 __kasankmalloc+0xaa/0xb0 l2capconnadd+0x45/0x520 l2capchanconnect+0xac6/0xd90 l2capsock_connect+0x216/0x350 __sys_connect+0x101/0x130 __x64sysconnect+0x40/0x50 dosyscall64+0x115/0x6a0 (arch/x86/entry/syscall64.c:87) entrySYSCALL64afterhwframe+0x77/0x7f Freed by task stack: kasansavestack+0x33/0x60 kasansavetrack+0x17/0x60 kasansavefreeinfo+0x3b/0x60 __kasanslabfree+0x5f/0x80 kfree+0x313/0x590 hci_connhashflush+0xc0/0x140 hcidevclosesync+0x41a/0xb00 hcidevclose+0x12f/0x160 hcisockioctl+0x157/0x570 sockdoioctl+0xf7/0x210 sockioctl+0x32f/0x490 __x64sysioctl+0xc7/0x110 do_syscall64+0x115/0x6a0 (arch/x86/entry/syscall64.c:87) entrySYSCALL64afterhwframe+0x77/0x7f kasanrecordauxstack+0xa7/0xc0 insertwork+0x32/0x100 __queuework+0x262/0xa60 queueworkon+0xad/0xb0 l2capconnectcfm+0x4ef/0x670 hcileremotefeatcompleteevt+0x247/0x430 hcieventpacket+0x360/0x6f0 hcirxwork+0x2ae/0x7a0 processonework+0x4fd/0xbc0 workerthread+0x2d8/0x570 kthread+0x1ad/0x1f0 retfromfork+0x3c9/0x540 retfromforkasm+0x1a/0x30

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72336.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6b8d4a6a03144c5996f98db7f8256267b0d72a3a
Fixed
ba1f1ef6522e63aa5dd29805b4390ea2ccadf05e
Fixed
d2a8dc1f619c9e0e4126bee795c39ebddd2ec8ff
Fixed
23a83bac3356e7b211bcdcf581a31f7b536a2c24
Fixed
32c48c7f6cc8c7888e46a8c81622154ccafda5d2
Fixed
518aa9505fa10ea5662349e5d2efd8c9e32a820b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72336.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.17.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72336.json"