# CVE-2026-99281: tun: Require CAP\_NET\_ADMIN to attach to an ownerless device

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-11-07T14:08:47.735Z
- **Modified:** 2026-11-23T08:17:32.587Z

## Who should check

- Anyone running Linux \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 553fd5722b4df7d6c0290d645e31871a64429b6d; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 43f0727b2a3a79607e8bc2daf2e5fcc02b571f76; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< ea77d8eeaf10a2976f82aa099dd879b4f65bf711; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 8d6ff792add6ceada5a137dcaf08ca05785bac9a; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< e0d98aab41b79b88609f33fb4d8e7a80ab8f648d; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 2f92c0286cfd58bff9d6d54c01a771073d5eb775; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< e53d1cf05da8ea58a5743b7ce5894fb51b0b9700; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< ffdf678dd16610e3f006dac904bd37c09684673c
- Anyone running Linux 2.6.18

## Description

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

tun: Require CAP\_NET\_ADMIN to attach to an ownerless device

Twenty years ago I made creating a tuntap device require CAP\_NET\_ADMIN
in commit ca6bb5d7ab22 ("\[NET\]: Require CAP\_NET\_ADMIN to create tuntap
devices.")

The idea was to allow the permissions on /dev/net/tun to be relaxed to
0666 and thus allow owners of tun devices assigned with TUNSETOWNER to
actually open it and get at their devices.

What we missed at the time was that persistent devices with \*no\* owner
were already essentially world-consumable, and anyone who could open
the device node could also attach to those.

Even then, using persistent devices with no explicitly set owner — on
the (false) presumption that CAP\_NET\_ADMIN would be required to open
them — wasn't an egregious userspace bug. There are cases where it does
make sense to separate the creation/configuration of the netdevice, from
the process which shovels packets into it.

Since then, TUNSETGROUP was added a year later in commit 8c644623fe7e
("\[NET\]: Allow group ownership of TUN/TAP devices."). Its commit message
noted that if both uid and gid are set, both have to match (in itself a
bizarre choice) — but still not that with \*neither\* set, no permission
at all was required.

Then in 2012 commit c8d68e6be1c3 ("tuntap: multiqueue support") allowed
new queues to be attached to a device from the moment of its creation,
with no way for userspace to close the race between creation and a
subsequent TUNSET{OWNER,GROUP}.

In 2024, commit 3ca459eaba1bf ("tun: fix group permission check") tried
to fix things to be saner: only require the user \*or\* the group to
match, in line with standard POSIX permissions, and require
CAP\_NET\_ADMIN if neither the user nor group authorised the access
(although it put the CAP\_NET\_ADMIN check first, and would wrongly have
reported the capability as having been used even when it was not).

That fix was reverted in commit a70c7b3cbc06 ("tun: revert fix group
permission check") due to allegedly causing a regression in an selinux
test suite which \*expected\* the attachment to succeed when authorised
by none of user, group, nor CAP\_NET\_ADMIN:
https://lore.kernel.org/netdev/CAFqZXNtkCBT4f+PwyVRmQGoT3p1eVa01fCG\_aNtpt6dakXncUg@mail.gmail.com/

We should not break UAPI. But we don't have to consider an selinux test
case which deliberately exercises a security flaw to be UAPI worth
preserving either. To which end, I have fixed it in selinux-testsuite
commit b2f894f0016b ("tests/tun\_tap: set an owner on the device for the
relabel tests").

So: fix the lack of CAP\_NET\_ADMIN check on devices which \*haven't\* been
assigned an owner or group, while leaving the weird tun ownership model
as it was (user \*and\* group have to match, if both are set). If someone
still wants to fix the latter (which wasn't actually the reason the
previous attempt was reverted), they can do it under separate cover.

Permit attaching to an existing device only if an owner and/or group was
set and the caller matches all that were set, or if the caller has
CAP\_NET\_ADMIN. The only behavioural change is that a device with no
owner or group now requires CAP\_NET\_ADMIN to attach — precisely the
loophole we want to close.

And put the CAP\_NET\_ADMIN check in the right place this time.

## Affected and fixed versions

- Linux: \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 553fd5722b4df7d6c0290d645e31871a64429b6d; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 43f0727b2a3a79607e8bc2daf2e5fcc02b571f76; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< ea77d8eeaf10a2976f82aa099dd879b4f65bf711; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 8d6ff792add6ceada5a137dcaf08ca05785bac9a; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< e0d98aab41b79b88609f33fb4d8e7a80ab8f648d; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 2f92c0286cfd58bff9d6d54c01a771073d5eb775; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< e53d1cf05da8ea58a5743b7ce5894fb51b0b9700; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< ffdf678dd16610e3f006dac904bd37c09684673c (cvelist)
- Linux: 2.6.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99281. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99281.md
Affected: Linux >= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, < 553fd5722b4df7d6c0290d645e31871a64429b6d; >= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, < 43f0727b2a3a79607e8bc2daf2e5fcc02b571f76; >= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, < ea77d8eeaf10a2976f82aa099dd879b4f65bf711; >= ca6bb5d7ab22ac79f608fe6…
Fixed in: Linux 553fd5722b4df7d6c0290d645e31871a64429b6d, Linux 43f0727b2a3a79607e8bc2daf2e5fcc02b571f76, Linux 8d6ff792add6ceada5a137dcaf08ca05785bac9a, Linux 2f92c0286cfd58bff9d6d54c01a771073d5eb775

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99281 being exploited?

There is no confirmed exploitation: CVE-2026-99281 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99281?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99281?

Linux \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 553fd5722b4df7d6c0290d645e31871a64429b6d; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 43f0727b2a3a79607e8bc2daf2e5fcc02b571f76; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< ea77d8eeaf10a2976f82aa099dd879b4f65bf711; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 8d6ff792add6ceada5a137dcaf08ca05785bac9a; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< e0d98aab41b79b88609f33fb4d8e7a80ab8f648d; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< 2f92c0286cfd58bff9d6d54c01a771073d5eb775; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< e53d1cf05da8ea58a5743b7ce5894fb51b0b9700; \>= ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0, \< ffdf678dd16610e3f006dac904bd37c09684673c; Linux 2.6.18.

### Is there a fix for CVE-2026-99281?

Yes. Fixed in Linux 553fd5722b4df7d6c0290d645e31871a64429b6d, Linux 43f0727b2a3a79607e8bc2daf2e5fcc02b571f76, Linux 8d6ff792add6ceada5a137dcaf08ca05785bac9a, Linux 2f92c0286cfd58bff9d6d54c01a771073d5eb775. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99281?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/553fd5722b4df7d6c0290d645e31871a64429b6d>
- other: <https://git.kernel.org/stable/c/43f0727b2a3a79607e8bc2daf2e5fcc02b571f76>
- other: <https://git.kernel.org/stable/c/ea77d8eeaf10a2976f82aa099dd879b4f65bf711>
- other: <https://git.kernel.org/stable/c/8d6ff792add6ceada5a137dcaf08ca05785bac9a>
- other: <https://git.kernel.org/stable/c/e0d98aab41b79b88609f33fb4d8e7a80ab8f648d>
- other: <https://git.kernel.org/stable/c/2f92c0286cfd58bff9d6d54c01a771073d5eb775>
- other: <https://git.kernel.org/stable/c/e53d1cf05da8ea58a5743b7ce5894fb51b0b9700>
- other: <https://git.kernel.org/stable/c/ffdf678dd16610e3f006dac904bd37c09684673c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99281>

HTML: <https://flawdb.com/CVE-2026-99281> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99281>
