CVE-2026-80668 (GCVE-0-2026-80668)

Vulnerability from cvelistv5 – Published: 2026-08-28 06:49 – Updated: 2026-08-29 06:21
VLAI
Title
netfilter: nf_conntrack_expect: use conntrack GC to reap expectations
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_expect: use conntrack GC to reap expectations This patch replaces the timer API by GC worker approach for expectations, as it already happened in many other subsystems. Use the existing conntrack GC worker to iterate over the local list of expectations in the master conntrack to reap expired expectations. Check IPS_HELPER_BIT to run GC for expectations, set it on for nft_ct expectation which nevers sets it. Hold the expectation spinlock while iterating over the master conntrack expectation list to synchronize with nf_ct_remove_expectations(). This also performs runtime packet path garbage collection through the expectation insertion and lookup functions while walking over one of the chains of the global expectation hashtables. Unconfirmed conntrack entries are skipped since ct->ext can be reallocated and dying are skipped since those will be gone soon. Set on IPS_HELPER_BIT if the helper ct extension is added, then the new GC worker does not need to bump the ct refcount to check if the ct->ext helper is available. This removes the extra bump on the refcount for expectation timers, this allows to remove several nf_ct_expect_put() calls after the unlink, after this update only refcount remains at 1 while on the expectation hashes. This patch implicitly addresses a race with the existing timer API allowing an expectation to access a stale exp->master pointer which has been already released when expectation removal loses races with an expiring timer, ie. timer_del() reporting false. Add a new NF_CT_EXPECT_DEAD flag to reap this expectation via GC. This is needed by nf_conntrack_unexpect_related() which is called in error paths to invalidate newly created expectations that has been added into the hashes. These expectactions cannot be inmediately released as GC or nf_ct_remove_expectations() could race to make it. On expectation insert, the runtime GC reaps stale expectations before checking the expectation limit set by policy. Set current timestamp in nf_ct_expect_alloc(), then add the expectation policy timeout (or custom timeout specified added on top of this) to specify the expectation lifetime.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5 , < 7ec786f4230c2a9b2eaf97a2d45368933b49d2b2 (git)
Affected: bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5 , < b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2 (git)
Affected: 9e1196d27ef496f404c76f7a9d03761142d991c4 (git)
Affected: 5e1c1d22268ae710c238342c8030c21daf298168 (git)
Affected: d52fa1fa7440676b8c238037a050ab008c22737f (git)
Affected: f338ced0473849c9f6ed0b77ca99f1aab5826787 (git)
Affected: 497f99b26fffdc5635706d1b4811f1ed8ee21a5b (git)
Affected: 6.1.176 , < 6.2 (semver)
Affected: 6.6.143 , < 6.7 (semver)
Affected: 6.12.94 , < 6.13 (semver)
Affected: 6.18.24 , < 6.19 (semver)
Affected: 6.19.14 , < 6.20 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 7.0
Unaffected: 0 , < 7.0 (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/net/netfilter/nf_conntrack_expect.h",
            "include/uapi/linux/netfilter/nf_conntrack_common.h",
            "net/netfilter/nf_conntrack_core.c",
            "net/netfilter/nf_conntrack_expect.c",
            "net/netfilter/nf_conntrack_h323_main.c",
            "net/netfilter/nf_conntrack_helper.c",
            "net/netfilter/nf_conntrack_netlink.c",
            "net/netfilter/nf_conntrack_sip.c",
            "net/netfilter/nft_ct.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7ec786f4230c2a9b2eaf97a2d45368933b49d2b2",
              "status": "affected",
              "version": "bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5",
              "versionType": "git"
            },
            {
              "lessThan": "b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2",
              "status": "affected",
              "version": "bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "9e1196d27ef496f404c76f7a9d03761142d991c4",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "5e1c1d22268ae710c238342c8030c21daf298168",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d52fa1fa7440676b8c238037a050ab008c22737f",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "f338ced0473849c9f6ed0b77ca99f1aab5826787",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "497f99b26fffdc5635706d1b4811f1ed8ee21a5b",
              "versionType": "git"
            },
            {
              "lessThan": "6.2",
              "status": "affected",
              "version": "6.1.176",
              "versionType": "semver"
            },
            {
              "lessThan": "6.7",
              "status": "affected",
              "version": "6.6.143",
              "versionType": "semver"
            },
            {
              "lessThan": "6.13",
              "status": "affected",
              "version": "6.12.94",
              "versionType": "semver"
            },
            {
              "lessThan": "6.19",
              "status": "affected",
              "version": "6.18.24",
              "versionType": "semver"
            },
            {
              "lessThan": "6.20",
              "status": "affected",
              "version": "6.19.14",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/net/netfilter/nf_conntrack_expect.h",
            "include/uapi/linux/netfilter/nf_conntrack_common.h",
            "net/netfilter/nf_conntrack_core.c",
            "net/netfilter/nf_conntrack_expect.c",
            "net/netfilter/nf_conntrack_h323_main.c",
            "net/netfilter/nf_conntrack_helper.c",
            "net/netfilter/nf_conntrack_netlink.c",
            "net/netfilter/nf_conntrack_sip.c",
            "net/netfilter/nft_ct.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.0"
            },
            {
              "lessThan": "7.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.1.176",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.6.143",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.12.94",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.18.24",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.19.14",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_conntrack_expect: use conntrack GC to reap expectations\n\nThis patch replaces the timer API by GC worker approach for\nexpectations, as it already happened in many other subsystems.\n\nUse the existing conntrack GC worker to iterate over the local list of\nexpectations in the master conntrack to reap expired expectations.\nCheck IPS_HELPER_BIT to run GC for expectations, set it on for nft_ct\nexpectation which nevers sets it. Hold the expectation spinlock while\niterating over the master conntrack expectation list to synchronize with\nnf_ct_remove_expectations(). This also performs runtime packet path\ngarbage collection through the expectation insertion and lookup\nfunctions while walking over one of the chains of the global expectation\nhashtables. Unconfirmed conntrack entries are skipped since ct-\u003eext can\nbe reallocated and dying are skipped since those will be gone soon.\nSet on IPS_HELPER_BIT if the helper ct extension is added, then the new\nGC worker does not need to bump the ct refcount to check if the ct-\u003eext\nhelper is available.\n\nThis removes the extra bump on the refcount for expectation timers, this\nallows to remove several nf_ct_expect_put() calls after the unlink,\nafter this update only refcount remains at 1 while on the expectation\nhashes.\n\nThis patch implicitly addresses a race with the existing timer API\nallowing an expectation to access a stale exp-\u003emaster pointer which has\nbeen already released when expectation removal loses races with an\nexpiring timer, ie. timer_del() reporting false.\n\nAdd a new NF_CT_EXPECT_DEAD flag to reap this expectation via GC. This\nis needed by nf_conntrack_unexpect_related() which is called in error\npaths to invalidate newly created expectations that has been added into\nthe hashes. These expectactions cannot be inmediately released as GC or\nnf_ct_remove_expectations() could race to make it. On expectation\ninsert, the runtime GC reaps stale expectations before checking the\nexpectation limit set by policy.\n\nSet current timestamp in nf_ct_expect_alloc(), then add the expectation\npolicy timeout (or custom timeout specified added on top of this) to\nspecify the expectation lifetime."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - Remote attackers can create expectations via conntrack ALG helpers (FTP, SIP, H.323, etc.) on internet-facing NAT/firewalls when processing attacker packets in nf_confirm, then trigger the timer-vs-teardown race during master connection expiry.\nAC:L - The attacker controls both sides of the race by opening/closing the master connection and timing traffic against the expectation timer; parallel sessions allow reliable retries without depending on uncontrollable layout or victim state.\nPR:N - Only initial helper/NAT configuration needs admin privilege; exploitation requires no kernel credentials\u2014a remote protocol client can create expectations and drive teardown on typical edge gateways and VoIP/NAT deployments.\nUI:N - No victim interaction beyond the attacker\u0027s own network sessions; triggering helper-driven expectation creation and subsequent connection teardown does not require any local user action.\nS:U - Impact is kernel heap use-after-free within the same host security domain and does not cross VM, container, or IOMMU boundaries absent separate escalation.\nC:H - nf_ct_unlink_expect and nf_ct_find_expectation dereference exp-\u003emaster after the master nf_conn is freed when timer_delete fails, a classic slab UAF enabling arbitrary kernel memory disclosure via heap grooming.\nI:H - Freed struct nf_conn reuse lets an attacker corrupt kernel heap metadata or object contents, defensibly enabling arbitrary write or control-flow hijack beyond the immediate stale pointer dereference.\nA:H - Accessing the freed master conntrack in the expectation timeout or lookup path can cause immediate kernel oops/panic, and UAF corruption can crash or hang the system even during failed exploit attempts."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-29T06:21:55.167Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7ec786f4230c2a9b2eaf97a2d45368933b49d2b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2"
        }
      ],
      "title": "netfilter: nf_conntrack_expect: use conntrack GC to reap expectations",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-80668",
    "datePublished": "2026-08-28T06:49:09.877Z",
    "dateReserved": "2026-08-26T14:34:25.782Z",
    "dateUpdated": "2026-08-29T06:21:55.167Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-80668",
      "date": "2026-09-01",
      "epss": "0.00379",
      "percentile": "0.30925"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-80668\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-28T08:16:52.080\",\"lastModified\":\"2026-08-29T07:16:49.200\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnetfilter: nf_conntrack_expect: use conntrack GC to reap expectations\\n\\nThis patch replaces the timer API by GC worker approach for\\nexpectations, as it already happened in many other subsystems.\\n\\nUse the existing conntrack GC worker to iterate over the local list of\\nexpectations in the master conntrack to reap expired expectations.\\nCheck IPS_HELPER_BIT to run GC for expectations, set it on for nft_ct\\nexpectation which nevers sets it. Hold the expectation spinlock while\\niterating over the master conntrack expectation list to synchronize with\\nnf_ct_remove_expectations(). This also performs runtime packet path\\ngarbage collection through the expectation insertion and lookup\\nfunctions while walking over one of the chains of the global expectation\\nhashtables. Unconfirmed conntrack entries are skipped since ct-\u003eext can\\nbe reallocated and dying are skipped since those will be gone soon.\\nSet on IPS_HELPER_BIT if the helper ct extension is added, then the new\\nGC worker does not need to bump the ct refcount to check if the ct-\u003eext\\nhelper is available.\\n\\nThis removes the extra bump on the refcount for expectation timers, this\\nallows to remove several nf_ct_expect_put() calls after the unlink,\\nafter this update only refcount remains at 1 while on the expectation\\nhashes.\\n\\nThis patch implicitly addresses a race with the existing timer API\\nallowing an expectation to access a stale exp-\u003emaster pointer which has\\nbeen already released when expectation removal loses races with an\\nexpiring timer, ie. timer_del() reporting false.\\n\\nAdd a new NF_CT_EXPECT_DEAD flag to reap this expectation via GC. This\\nis needed by nf_conntrack_unexpect_related() which is called in error\\npaths to invalidate newly created expectations that has been added into\\nthe hashes. These expectactions cannot be inmediately released as GC or\\nnf_ct_remove_expectations() could race to make it. On expectation\\ninsert, the runtime GC reaps stale expectations before checking the\\nexpectation limit set by policy.\\n\\nSet current timestamp in nf_ct_expect_alloc(), then add the expectation\\npolicy timeout (or custom timeout specified added on top of this) to\\nspecify the expectation lifetime.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"include/net/netfilter/nf_conntrack_expect.h\",\"include/uapi/linux/netfilter/nf_conntrack_common.h\",\"net/netfilter/nf_conntrack_core.c\",\"net/netfilter/nf_conntrack_expect.c\",\"net/netfilter/nf_conntrack_h323_main.c\",\"net/netfilter/nf_conntrack_helper.c\",\"net/netfilter/nf_conntrack_netlink.c\",\"net/netfilter/nf_conntrack_sip.c\",\"net/netfilter/nft_ct.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5\",\"lessThan\":\"7ec786f4230c2a9b2eaf97a2d45368933b49d2b2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5\",\"lessThan\":\"b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"9e1196d27ef496f404c76f7a9d03761142d991c4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5e1c1d22268ae710c238342c8030c21daf298168\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"d52fa1fa7440676b8c238037a050ab008c22737f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f338ced0473849c9f6ed0b77ca99f1aab5826787\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"497f99b26fffdc5635706d1b4811f1ed8ee21a5b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6.1.176\",\"lessThan\":\"6.2\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.6.143\",\"lessThan\":\"6.7\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.12.94\",\"lessThan\":\"6.13\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.18.24\",\"lessThan\":\"6.19\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.19.14\",\"lessThan\":\"6.20\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"include/net/netfilter/nf_conntrack_expect.h\",\"include/uapi/linux/netfilter/nf_conntrack_common.h\",\"net/netfilter/nf_conntrack_core.c\",\"net/netfilter/nf_conntrack_expect.c\",\"net/netfilter/nf_conntrack_h323_main.c\",\"net/netfilter/nf_conntrack_helper.c\",\"net/netfilter/nf_conntrack_netlink.c\",\"net/netfilter/nf_conntrack_sip.c\",\"net/netfilter/nft_ct.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7.0\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"7.0\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"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:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/7ec786f4230c2a9b2eaf97a2d45368933b49d2b2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-09-01T10:38:44+00:00",
      "cve": "CVE-2026-80668",
      "id": "CVE-2026-80668",
      "initial_release_date": "2026-08-28T00:00:00+00:00",
      "product_status:known_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: netfilter: nf_conntrack_expect: use conntrack GC to reap expectations",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-80668.json",
      "version": "3"
    }
  }
}



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…