CVE-2022-49672 (GCVE-0-2022-49672)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:24 – Updated: 2026-08-05 08:56
VLAI
Title
net: tun: unlink NAPI from device on destruction
Summary
In the Linux kernel, the following vulnerability has been resolved: net: tun: unlink NAPI from device on destruction Syzbot found a race between tun file and device destruction. NAPIs live in struct tun_file which can get destroyed before the netdev so we have to del them explicitly. The current code is missing deleting the NAPI if the queue was detached first.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 943170998b200190f99d3fe7e771437e2c51f319 , < 82e729aee59acefe135fceffadcbc5b86dd4f1b9 (git)
Affected: 943170998b200190f99d3fe7e771437e2c51f319 , < a8cf919022373c97a84fe596bbea544f909c485d (git)
Affected: 943170998b200190f99d3fe7e771437e2c51f319 , < bec1be0a745ab420718217e3e0d9542a75108989 (git)
Affected: 943170998b200190f99d3fe7e771437e2c51f319 , < 8145f77d38de4f88b8a69e1463f5c09ba189d77c (git)
Affected: 943170998b200190f99d3fe7e771437e2c51f319 , < 8661d4b8faa2f7ee7a559969c0a7c57f077b1728 (git)
Affected: 943170998b200190f99d3fe7e771437e2c51f319 , < 3b9bc84d311104906d2b4995a9a02d7b7ddab2db (git)
Create a notification for this product.
Linux Linux Affected: 4.15
Unaffected: 0 , < 4.15 (semver)
Unaffected: 4.19.251 , ≤ 4.19.* (semver)
Unaffected: 5.4.204 , ≤ 5.4.* (semver)
Unaffected: 5.10.129 , ≤ 5.10.* (semver)
Unaffected: 5.15.53 , ≤ 5.15.* (semver)
Unaffected: 5.18.10 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/tun.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "82e729aee59acefe135fceffadcbc5b86dd4f1b9",
              "status": "affected",
              "version": "943170998b200190f99d3fe7e771437e2c51f319",
              "versionType": "git"
            },
            {
              "lessThan": "a8cf919022373c97a84fe596bbea544f909c485d",
              "status": "affected",
              "version": "943170998b200190f99d3fe7e771437e2c51f319",
              "versionType": "git"
            },
            {
              "lessThan": "bec1be0a745ab420718217e3e0d9542a75108989",
              "status": "affected",
              "version": "943170998b200190f99d3fe7e771437e2c51f319",
              "versionType": "git"
            },
            {
              "lessThan": "8145f77d38de4f88b8a69e1463f5c09ba189d77c",
              "status": "affected",
              "version": "943170998b200190f99d3fe7e771437e2c51f319",
              "versionType": "git"
            },
            {
              "lessThan": "8661d4b8faa2f7ee7a559969c0a7c57f077b1728",
              "status": "affected",
              "version": "943170998b200190f99d3fe7e771437e2c51f319",
              "versionType": "git"
            },
            {
              "lessThan": "3b9bc84d311104906d2b4995a9a02d7b7ddab2db",
              "status": "affected",
              "version": "943170998b200190f99d3fe7e771437e2c51f319",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/tun.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.15"
            },
            {
              "lessThan": "4.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.251",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.204",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.53",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.251",
                  "versionStartIncluding": "4.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.204",
                  "versionStartIncluding": "4.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.129",
                  "versionStartIncluding": "4.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.53",
                  "versionStartIncluding": "4.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.10",
                  "versionStartIncluding": "4.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "4.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: tun: unlink NAPI from device on destruction\n\nSyzbot found a race between tun file and device destruction.\nNAPIs live in struct tun_file which can get destroyed before\nthe netdev so we have to del them explicitly. The current\ncode is missing deleting the NAPI if the queue was detached\nfirst."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is triggered via local /dev/net/tun ioctls (TUNSETIFF with IFF_NAPI|IFF_MULTI_QUEUE, TUNSETQUEUE IFF_DETACH_QUEUE) and local rtnetlink RTM_DELLINK/close, not by processing packets from a remote peer.\nAC:L - The attacker fully controls both sides of the race\u2014detaching the queue, deleting the netdev, and closing the tun fd concurrently (as in the threaded syzbot repro)\u2014so success does not depend on external timing or victim state.\nPR:L - Creating/configuring the tun device and issuing RTM_DELLINK require only ns_capable(CAP_NET_ADMIN) in the network namespace\u2019s user_ns, which an unprivileged user obtains via user+net namespaces; /dev/net/tun is world-accessible and IFF_NAPI does not need init-ns capable().\nUI:N - Exploitation is entirely attacker-driven through their own open/ioctl/netlink/close sequence; no separate victim action is required.\nS:U - This is a standard in-kernel use-after-free leading to local privilege escalation within the same host kernel authority, with no VM escape or IOMMU boundary crossing.\nC:H - KASAN confirms a use-after-free of the heap-allocated tun_file (containing napi_struct); reclaiming that object gives the attacker control of freed contents and enables arbitrary kernel reads.\nI:H - The same UAF leaves a dangling napi on netdev-\u003enapi_list that free_netdev/netif_napi_del list-walks and list_del\u2019s, enabling heap spray and arbitrary write/control-flow hijack primitives.\nA:H - The dangling napi_list walk in free_netdev produces a reliable kernel oops/panic (KASAN use-after-free Read in free_netdev) even without full exploitation."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:56:01.503Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/82e729aee59acefe135fceffadcbc5b86dd4f1b9"
        },
        {
          "url": "https://git.kernel.org/stable/c/a8cf919022373c97a84fe596bbea544f909c485d"
        },
        {
          "url": "https://git.kernel.org/stable/c/bec1be0a745ab420718217e3e0d9542a75108989"
        },
        {
          "url": "https://git.kernel.org/stable/c/8145f77d38de4f88b8a69e1463f5c09ba189d77c"
        },
        {
          "url": "https://git.kernel.org/stable/c/8661d4b8faa2f7ee7a559969c0a7c57f077b1728"
        },
        {
          "url": "https://git.kernel.org/stable/c/3b9bc84d311104906d2b4995a9a02d7b7ddab2db"
        }
      ],
      "title": "net: tun: unlink NAPI from device on destruction",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49672",
    "datePublished": "2025-02-26T02:24:05.284Z",
    "dateReserved": "2025-02-26T02:21:30.437Z",
    "dateUpdated": "2026-08-05T08:56:01.503Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49672",
      "date": "2026-08-09",
      "epss": "0.00297",
      "percentile": "0.21966"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49672\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-02-26T07:01:42.130\",\"lastModified\":\"2026-08-04T10:17:53.847\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: tun: unlink NAPI from device on destruction\\n\\nSyzbot found a race between tun file and device destruction.\\nNAPIs live in struct tun_file which can get destroyed before\\nthe netdev so we have to del them explicitly. The current\\ncode is missing deleting the NAPI if the queue was detached\\nfirst.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: tun: unlink NAPI from device on destruction Syzbot encontr\u00f3 una ejecuci\u00f3n entre el archivo tun y la destrucci\u00f3n del dispositivo. Las NAPI se encuentran en struct tun_file, que puede destruirse antes que netdev, por lo que debemos eliminarlas expl\u00edcitamente. Falta el c\u00f3digo actual que elimina la NAPI si la cola se separ\u00f3 primero.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/tun.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"943170998b200190f99d3fe7e771437e2c51f319\",\"lessThan\":\"82e729aee59acefe135fceffadcbc5b86dd4f1b9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"943170998b200190f99d3fe7e771437e2c51f319\",\"lessThan\":\"a8cf919022373c97a84fe596bbea544f909c485d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"943170998b200190f99d3fe7e771437e2c51f319\",\"lessThan\":\"bec1be0a745ab420718217e3e0d9542a75108989\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"943170998b200190f99d3fe7e771437e2c51f319\",\"lessThan\":\"8145f77d38de4f88b8a69e1463f5c09ba189d77c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"943170998b200190f99d3fe7e771437e2c51f319\",\"lessThan\":\"8661d4b8faa2f7ee7a559969c0a7c57f077b1728\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"943170998b200190f99d3fe7e771437e2c51f319\",\"lessThan\":\"3b9bc84d311104906d2b4995a9a02d7b7ddab2db\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/tun.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4.15\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"4.15\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.19.251\",\"lessThanOrEqual\":\"4.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.204\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.129\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.53\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.18.10\",\"lessThanOrEqual\":\"5.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.19\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.15\",\"versionEndExcluding\":\"4.19.251\",\"matchCriteriaId\":\"83E1438F-F12B-4581-9EF4-B104DAEFFD41\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.20\",\"versionEndExcluding\":\"5.4.204\",\"matchCriteriaId\":\"73056417-5BD5-453F-8EEC-2D5C48185372\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.129\",\"matchCriteriaId\":\"DAAE3E52-3C60-40CA-A245-AE5660F45CD8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.53\",\"matchCriteriaId\":\"70DCF327-F4B6-4CDB-8C9E-98E909E60127\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.18.10\",\"matchCriteriaId\":\"8261A22B-B156-4045-AE8E-AA9E95E7930C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"A8C30C2D-F82D-4D37-AB48-D76ABFBD5377\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"BF8547FC-C849-4F1B-804B-A93AE2F04A92\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.19:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"F3068028-F453-4A1C-B80F-3F5609ACEF60\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.19:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"2E9C0DB0-D349-489F-A3D6-B77214E93A8A\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3b9bc84d311104906d2b4995a9a02d7b7ddab2db\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8145f77d38de4f88b8a69e1463f5c09ba189d77c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/82e729aee59acefe135fceffadcbc5b86dd4f1b9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8661d4b8faa2f7ee7a559969c0a7c57f077b1728\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a8cf919022373c97a84fe596bbea544f909c485d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bec1be0a745ab420718217e3e0d9542a75108989\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:43:04+00:00",
      "cve": "CVE-2022-49672",
      "id": "CVE-2022-49672",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:fixed": "303",
      "product_status:known_affected": "112",
      "product_status:known_not_affected": "76",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net: tun: unlink NAPI from device on destruction",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49672.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-05T01:13:06Z",
      "cve": "CVE-2022-49672",
      "id": "CVE-2022-49672",
      "initial_release_date": "2025-02-27T03:03:06Z",
      "product_status:known_affected": "414",
      "product_status:known_not_affected": "194",
      "product_status:recommended": "290",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49672",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49672.json",
      "version": "53"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…