CVE-2023-53685
publishedtun: Fix memory leak for detached NAPI queue.
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxcde8b15f1aabe327038ee4e0e11dd6b798572f69 to < 9cae243b9ae25adfe468cd47ceca591f6725b79c · cde8b15f1aabe327038ee4e0e11dd6b798572f69 to < 0d20210a190f76db9ec35ee4e0fc77e6c7a148f5 · cde8b15f1aabe327038ee4e0e11dd6b798572f69 to < 82b2bc279467c875ec36f8ef820f00997c2a4e8e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 6.1.30 through 6.1.* (unaffected · semver) · 6.3.4 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-228 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| Amazon Linux | AL2023 | kernelaarch64 | Listed in advisory | Not stated | ALAS2023-2023-228 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
Show 45 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_293-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_293-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_293-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.293.1 | SUSE-SU-2026:0473-1 |
| Amazon Linux | AL2023 | kernelsrc | Listed in advisory | Not stated | ALAS2023-2023-228 |
| Amazon Linux | AL2023 | kernelx86_64 | Listed in advisory | Not stated | ALAS2023-2023-228 |
Description
In the Linux kernel, the following vulnerability has been resolved: tun: Fix memory leak for detached NAPI queue. syzkaller reported [0] memory leaks of sk and skb related to the TUN device with no repro, but we can reproduce it easily with: struct ifreq ifr = {} int fd_tun, fd_tmp; char buf[4] = {}; fd_tun = openat(AT_FDCWD, "/dev/net/tun", O_WRONLY, 0); ifr.ifr_flags = IFF_TUN | IFF_NAPI | IFF_MULTI_QUEUE; ioctl(fd_tun, TUNSETIFF, &ifr); ifr.ifr_flags = IFF_DETACH_QUEUE; ioctl(fd_tun, TUNSETQUEUE, &ifr); fd_tmp = socket(AF_PACKET, SOCK_PACKET, 0); ifr.ifr_flags = IFF_UP; ioctl(fd_tmp, SIOCSIFFLAGS, &ifr); write(fd_tun, buf, sizeof(buf)); close(fd_tun); If we enable NAPI and multi-queue on a TUN device, we can put skb into tfile->sk.sk_write_queue after the queue is detached. We should prevent it by checking tfile->detached before queuing skb. Note this must be done under tfile->sk.sk_write_queue.lock because write() and ioctl(IFF_DETACH_QUEUE) can run concurrently. Otherwise, there would be a small race window: write() ioctl(IFF_DETACH_QUEUE) `- tun_get_user `- __tun_detach |- if (tfile->detached) |- tun_disable_queue | `-> false | `- tfile->detached = tun | `- tun_queue_purge |- spin_lock_bh(&queue->lock) `- __skb_queue_tail(queue, skb) Another solution is to call tun_queue_purge() when closing and reattaching the detached queue, but it could paper over another problems. Also, we do the same kind of test for IFF_NAPI_FRAGS. [0]: unreferenced object 0xffff88801edbc800 (size 2048): comm "syz-executor.1", pid 33269, jiffies 4295743834 (age 18.756s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............ backtrace: [<000000008c16ea3d>] __do_kmalloc_node mm/slab_common.c:965 [inline] [<000000008c16ea3d>] __kmalloc+0x4a/0x130 mm/slab_common.c:979 [<000000003addde56>] kmalloc include/linux/slab.h:563 [inline] [<000000003addde56>] sk_prot_alloc+0xef/0x1b0 net/core/sock.c:2035 [<000000003e20621f>] sk_alloc+0x36/0x2f0 net/core/sock.c:2088 [<0000000028e43843>] tun_chr_open+0x3d/0x190 drivers/net/tun.c:3438 [<000000001b0f1f28>] misc_open+0x1a6/0x1f0 drivers/char/misc.c:165 [<000000004376f706>] chrdev_open+0x111/0x300 fs/char_dev.c:414 [<00000000614d379f>] do_dentry_open+0x2f9/0x750 fs/open.c:920 [<000000008eb24774>] do_open fs/namei.c:3636 [inline] [<000000008eb24774>] path_openat+0x143f/0x1a30 fs/namei.c:3791 [<00000000955077b5>] do_filp_open+0xce/0x1c0 fs/namei.c:3818 [<00000000b78973b0>] do_sys_openat2+0xf0/0x260 fs/open.c:1356 [<00000000057be699>] do_sys_open fs/open.c:1372 [inline] [<00000000057be699>] __do_sys_openat fs/open.c:1388 [inline] [<00000000057be699>] __se_sys_openat fs/open.c:1383 [inline] [<00000000057be699>] __x64_sys_openat+0x83/0xf0 fs/open.c:1383 [<00000000a7d2182d>] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [<00000000a7d2182d>] do_syscall_64+0x3c/0x90 arch/x86/entry/common.c:80 [<000000004cc4e8c4>] entry_SYSCALL_64_after_hwframe+0x72/0xdc unreferenced object 0xffff88802f671700 (size 240): comm "syz-executor.1", pid 33269, jiffies 4295743854 (age 18.736s) hex dump (first 32 bytes): 68 c9 db 1e 80 88 ff ff 68 c9 db 1e 80 88 ff ff h.......h....... 00 c0 7b 2f 80 88 ff ff 00 c8 db 1e 80 88 ff ff ..{/............ backtrace: [<00000000e9d9fdb6>] __alloc_skb+0x223/0x250 net/core/skbuff.c:644 [<000000002c3e4e0b>] alloc_skb include/linux/skbuff.h:1288 [inline] [<000000002c3e4e0b>] alloc_skb_with_frags+0x6f/0x350 net/core/skbuff.c:6378 [<00000000825f98d7>] sock_alloc_send_pskb+0x3ac/0x3e0 net/core/sock.c:2729 [<00000000e9eb3df3>] tun_alloc_skb drivers/net/tun.c:1529 [inline] [< ---truncated---
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | cde8b15f1aabe327038ee4e0e11dd6b798572f69 to < 9cae243b9ae25adfe468cd47ceca591f6725b79c (affected · git)cde8b15f1aabe327038ee4e0e11dd6b798572f69 to < 0d20210a190f76db9ec35ee4e0fc77e6c7a148f5 (affected · git)cde8b15f1aabe327038ee4e0e11dd6b798572f69 to < 82b2bc279467c875ec36f8ef820f00997c2a4e8e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.8 (affected)0 to < 3.8 (unaffected · semver)6.1.30 through 6.1.* (unaffected · semver)6.3.4 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
tun: Fix memory leak for detached NAPI queue.
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 623270f429ccfc15b349b30851a65bc5fc58baa727671a350c5aac3c952b3675
- Ingested
- 07 Nov 2026, 23:14:06 UTC
- Source record
- Official CVE record