CVEMETERBack to radar
OFFICIAL RECORD · Ubuntu

CVE-2026-99281

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 4.8 · medium

tun: Require CAP_NET_ADMIN to attach to an ownerless device

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.120% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 4.8 · published by Ubuntu Security
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T14:20:28.523Z

CVSS 3.1 · 7.8 · published by Linux
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T10:46:28.260Z

CVSS 3.1 · 7.8 · published by Ubuntu Security
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T14:20:28.523Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T14:20:28.523ZUbuntu Security
epssverified2026-11-19T16:05:00.247ZFIRST EPSS
patchesverified2026-11-19T14:20:28.523ZUbuntu Security
affectedverified2026-11-19T10:46:28.260ZCVE Program
lifecycleverified2026-11-19T10:46:28.260ZCVE Program

Affected versions and configuration

Linux Linux; default status: unaffected: ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0 to < e0d98aab41b79b88609f33fb4d8e7a80ab8f648d [affected; scheme: git]; ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0 to < 2f92c0286cfd58bff9d6d54c01a771073d5eb775 [affected; scheme: git]; ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0 to < e53d1cf05da8ea58a5743b7ce5894fb51b0b9700 [affected; scheme: git]; ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0 to < ffdf678dd16610e3f006dac904bd37c09684673c [affected; scheme: git] Linux Linux; default status: affected: 2.6.18 [affected; scheme: unspecified]; 0 to < 2.6.18 [unaffected; scheme: semver]; 6.12.117 to ≤ 6.12.* [unaffected; scheme: semver]; 6.18.61 to ≤ 6.18.* [unaffected; scheme: semver]; 7.3.2 to ≤ 7.3.* [unaffected; scheme: semver]; 7.4-rc1 to ≤ * [unaffected; scheme: original_commit_for_fix]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "linux",
    "debian": "https://tracker.debian.org/pkg/linux",
    "source": "https://ubuntu.com/security/cve?package=linux",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=linux",
    "statuses": [
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "bionic"
      },
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "resolute"
      },
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "stonking"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "7.4~rc1, 6.8.y, 7.0.y, 7.3.2",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "needed",
        "component": null,
        "description": "",
        "release_codename": "xenial"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of standard support, was needed",
        "release_codename": "trusty"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
      "vendor": "Linux",
      "product": "Linux",
      "versions": [
        {
          "status": "affected",
          "version": "ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0",
          "lessThan": "e0d98aab41b79b88609f33fb4d8e7a80ab8f648d",
          "versionType": "git"
        },
        {
          "status": "affected",
          "version": "ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0",
          "lessThan": "2f92c0286cfd58bff9d6d54c01a771073d5eb775",
          "versionType": "git"
        },
        {
          "status": "affected",
          "version": "ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0",
          "lessThan": "e53d1cf05da8ea58a5743b7ce5894fb51b0b9700",
          "versionType": "git"
        },
        {
          "status": "affected",
          "version": "ca6bb5d7ab22ac79f608fe6cbc6b12de6a5a19f0",
          "lessThan": "ffdf678dd16610e3f006dac904bd37c09684673c",
          "versionType": "git"
        }
      ],
      "programFiles": [
        "drivers/net/tun.c"
      ],
      "defaultStatus": "unaffected"
    },
    {
      "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
      "vendor": "Linux",
      "product": "Linux",
      "versions": [
        {
          "status": "affected",
          "version": "2.6.18"
        },
        {
          "status": "unaffected",
          "version": "0",
          "lessThan": "2.6.18",
          "versionType": "semver"
        },
        {
          "status": "unaffected",
          "version": "6.12.117",
          "versionType": "semver",
          "lessThanOrEqual": "6.12.*"
        },
        {
          "status": "unaffected",
          "version": "6.18.61",
          "versionType": "semver",
          "lessThanOrEqual": "6.18.*"
        },
        {
          "status": "unaffected",
          "version": "7.3.2",
          "versionType": "semver",
          "lessThanOrEqual": "7.3.*"
        },
        {
          "status": "unaffected",
          "version": "7.4-rc1",
          "versionType": "original_commit_for_fix",
          "lessThanOrEqual": "*"
        }
      ],
      "programFiles": [
        "drivers/net/tun.c"
      ],
      "defaultStatus": "affected"
    }
  ],
  "additionalContainers": []
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
upstream-releaseupstream / upstreamlinuxNot a distribution channel7.4~rc1Official record
upstream-noteupstream / upstreamlinuxNot a distribution channel6.8.yOfficial record
upstream-noteupstream / upstreamlinuxNot a distribution channel7.0.yOfficial record
upstream-releaseupstream / upstreamlinuxNot a distribution channel7.3.2Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history