Skip to content
Heist/ feed
High

netfilter: ctnetlink: ensure safe access to master conntrack

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: netfilter: ctnetlink: ensure safe access to master conntrack Holding reference on the expectation is not sufficient, the master conntrack object can just go away, making exp->master invalid. To access exp->master safely: - Grab the nf_conntrack_expect_lock, this gets serialized with clean_from_lists() which also holds this lock when the master conntrack goes away. - Hold reference on master conntrack via nf_conntrack_find_get(). Not so easy since the master tuple to look up for the master conntrack is not available in the existing problematic paths. This patch goes for extending the nf_conntrack_expect_lock section to address this issue for simplicity, in the cases that are described below this is just slightly extending the lock section. The add expectation command already holds a reference to the master conntrack from ctnetlink_create_expect(). However, the delete expectation command needs to grab the spinlock before looking up for the expectation. Expand the existing spinlock section to address this to cover the expectation lookup. Note that, the nf_ct_expect_iterate_net() calls already grabs the spinlock while iterating over the expectation table, which is correct. The get expectation command needs to grab the spinlock to ensure master conntrack does not go away. This also expands the existing spinlock section to cover the expectation lookup too. I needed to move the netlink skb allocation out of the spin

Announced Source revision 1
Original source ↗

CVE-2026-43116

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-43116

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "c1d10adb4a521de5760112853f42aaeefcec96eb",
        "lessThan": "9e1196d27ef496f404c76f7a9d03761142d991c4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c1d10adb4a521de5760112853f42aaeefcec96eb",
        "lessThan": "5e1c1d22268ae710c238342c8030c21daf298168",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c1d10adb4a521de5760112853f42aaeefcec96eb",
        "lessThan": "d52fa1fa7440676b8c238037a050ab008c22737f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c1d10adb4a521de5760112853f42aaeefcec96eb",
        "lessThan": "f338ced0473849c9f6ed0b77ca99f1aab5826787",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c1d10adb4a521de5760112853f42aaeefcec96eb",
        "lessThan": "497f99b26fffdc5635706d1b4811f1ed8ee21a5b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c1d10adb4a521de5760112853f42aaeefcec96eb",
        "lessThan": "bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "include/net/netfilter/nf_conntrack_core.h",
      "net/netfilter/nf_conntrack_ecache.c",
      "net/netfilter/nf_conntrack_expect.c",
      "net/netfilter/nf_conntrack_netlink.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.16"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.16",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.176",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.143",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.94",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.24",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19.14",
        "versionType": "semver",
        "lessThanOrEqual": "6.19.*"
      },
      {
        "status": "unaffected",
        "version": "7.0",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/net/netfilter/nf_conntrack_core.h",
      "net/netfilter/nf_conntrack_ecache.c",
      "net/netfilter/nf_conntrack_expect.c",
      "net/netfilter/nf_conntrack_netlink.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-43116

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#40029 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement