CVE-2021-47082
published high CVSS 3.1 · 7.8tun: avoid double free in tun_free_netdev
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux662ca437e714caaab855b12415d6ffd815985bc0 to < 8eb43d635950e27c29f1e9e49a23b31637f37757 · 662ca437e714caaab855b12415d6ffd815985bc0 to < 0c0e566f0387490d16f166808c72e9c772027681 · 662ca437e714caaab855b12415d6ffd815985bc0 to < a01a4e9f5dc93335c716fa4023b1901956e8c904 · 662ca437e714caaab855b12415d6ffd815985bc0 to < 3cb5ae77799e8ed6ec3fec0b6b4cd07f01650cc5 · 662ca437e714caaab855b12415d6ffd815985bc0 to < 158b515f703e75e7d68289bf4d98c664e1d632df · a81a02460bdf054ca0c60c5aed29941f7134092d · 6fc265f7a86d81e052508d03da555188f5882c3e · 3.10.16 to < 3.11 · 3.11.5 to < 3.12 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.12 (affected) · 0 to < 3.12 (unaffected · semver) · 4.19.280 through 4.19.* (unaffected · semver) · 5.4.240 through 5.4.* (unaffected · semver) · 5.10.136 through 5.10.* (unaffected · semver) · 5.15.12 through 5.15.* (unaffected · semver) · 5.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-020 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2023-044 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaults390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150200.24.188.1.150200.9.95.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseppc64le | Advisory build | 5.3.18-150200.24.188.1.150200.9.95.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-bases390x | Advisory build | 5.3.18-150200.24.188.1.150200.9.95.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-basex86_64 | Advisory build | 5.3.18-150200.24.188.1.150200.9.95.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-devels390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-develnoarch | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-docsnoarch | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_188-defaultppc64le | Advisory build | 1-150200.5.3.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_188-defaults390x | Advisory build | 1-150200.5.3.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_188-defaultx86_64 | Advisory build | 1-150200.5.3.3 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-macrosnoarch | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-builds390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-obs-buildx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preemptaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preemptx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preempt-develaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-preempt-develx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-sourcenoarch | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symsaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symsppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symss390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-symsx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaults390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaults390x | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP2 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.188.1 | SUSE-SU-2024:1454-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kbaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kb-develaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseppc64le | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-devels390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-develnoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-docsnoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_158-defaultppc64le | Advisory build | 1-150300.7.3.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_158-defaults390x | Advisory build | 1-150300.7.3.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_158-defaultx86_64 | Advisory build | 1-150300.7.3.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-macrosnoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-builds390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preemptaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: tun: avoid double free in tun_free_netdev Avoid double free in tun_free_netdev() by moving the dev->tstats and tun->security allocs to a new ndo_init routine (tun_net_init()) that will be called by register_netdevice(). ndo_init is paired with the desctructor (tun_free_netdev()), so if there's an error in register_netdevice() the destructor will handle the frees. BUG: KASAN: double-free or invalid-free in selinux_tun_dev_free_security+0x1a/0x20 security/selinux/hooks.c:5605 CPU: 0 PID: 25750 Comm: syz-executor416 Not tainted 5.16.0-rc2-syzk #1 Hardware name: Red Hat KVM, BIOS Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x89/0xb5 lib/dump_stack.c:106 print_address_description.constprop.9+0x28/0x160 mm/kasan/report.c:247 kasan_report_invalid_free+0x55/0x80 mm/kasan/report.c:372 ____kasan_slab_free mm/kasan/common.c:346 [inline] __kasan_slab_free+0x107/0x120 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook mm/slub.c:1749 [inline] slab_free mm/slub.c:3513 [inline] kfree+0xac/0x2d0 mm/slub.c:4561 selinux_tun_dev_free_security+0x1a/0x20 security/selinux/hooks.c:5605 security_tun_dev_free_security+0x4f/0x90 security/security.c:2342 tun_free_netdev+0xe6/0x150 drivers/net/tun.c:2215 netdev_run_todo+0x4df/0x840 net/core/dev.c:10627 rtnl_unlock+0x13/0x20 net/core/rtnetlink.c:112 __tun_chr_ioctl+0x80c/0x2870 drivers/net/tun.c:3302 tun_chr_ioctl+0x2f/0x40 drivers/net/tun.c:3311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x19d/0x220 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3a/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is triggered via TUNSETIFF ioctl on /dev/net/tun during local tun/tap device creation in tun_set_iff(); it is not reachable from network packets or adjacent-link protocols. AC:L - An attacker who can create tun devices can reliably force register_netdevice() to fail after NETDEV_REGISTER (e.g., by inducing memory pressure so ipv6_add_dev/devmap notifiers return errors), hitting the broken err_detach cleanup; no race or layout outside attacker influence is required. PR:L - Creating a new tun/tap device only requires ns_capable(net->user_ns, CAP_NET_ADMIN), which an unprivileged user obtains via user+net namespaces (unshare -Urn); /dev/net/tun itself is typically world-openable. UI:N - Exploitation needs only attacker-controlled open/ioctl syscalls on /dev/net/tun; no victim action is required. S:U - Impact is confined to the local kernel privilege boundary (standard local memory-corruption privilege escalation); this is not a VM escape, IOMMU bypass, or other cross-authority boundary. C:H - The bug double-frees kernel heap objects (SELinux tun security blob and/or percpu tstats) on the register_netdevice failure path, enabling heap reuse and arbitrary kernel read primitives. I:H - The same double-free of tun->security and/or dev->tstats is classic heap corruption that can be turned into arbitrary write and control-flow hijacking in the kernel. A:H - The double-free is reported by KASAN as an invalid free in tun_free_netdev via netdev_run_todo and can oops/panic the kernel even without full exploitation.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 662ca437e714caaab855b12415d6ffd815985bc0 to < 8eb43d635950e27c29f1e9e49a23b31637f37757 (affected · git)662ca437e714caaab855b12415d6ffd815985bc0 to < 0c0e566f0387490d16f166808c72e9c772027681 (affected · git)662ca437e714caaab855b12415d6ffd815985bc0 to < a01a4e9f5dc93335c716fa4023b1901956e8c904 (affected · git)662ca437e714caaab855b12415d6ffd815985bc0 to < 3cb5ae77799e8ed6ec3fec0b6b4cd07f01650cc5 (affected · git)662ca437e714caaab855b12415d6ffd815985bc0 to < 158b515f703e75e7d68289bf4d98c664e1d632df (affected · git)a81a02460bdf054ca0c60c5aed29941f7134092d (affected · git)6fc265f7a86d81e052508d03da555188f5882c3e (affected · git)3.10.16 to < 3.11 (affected · semver)3.11.5 to < 3.12 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 3.12 (affected)0 to < 3.12 (unaffected · semver)4.19.280 through 4.19.* (unaffected · semver)5.4.240 through 5.4.* (unaffected · semver)5.10.136 through 5.10.* (unaffected · semver)5.15.12 through 5.15.* (unaffected · semver)5.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/0c0e566f0387490d16f166808c72e9c772027681
- https://git.kernel.org/stable/c/158b515f703e75e7d68289bf4d98c664e1d632df
- https://git.kernel.org/stable/c/3cb5ae77799e8ed6ec3fec0b6b4cd07f01650cc5
- https://git.kernel.org/stable/c/8eb43d635950e27c29f1e9e49a23b31637f37757
- https://git.kernel.org/stable/c/a01a4e9f5dc93335c716fa4023b1901956e8c904
Provider assertions
3Linux · cna
tun: avoid double free in tun_free_netdev
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- de9ca297cc36898e12bcf47f5acd107ed8d05c2335887e3f0715fc529a1a1371
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record