netfilter: nf_conncount: fix zone comparison in tuple dedup
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conncount: fix zone comparison in tuple dedup The "already exists" dedup logic in __nf_conncount_add() decides whether a connection has already been counted and can be skipped instead of incrementing the connlimit count. It compares the conntrack zone of a list entry with the zone of the connection being added using nf_ct_zone_id() and nf_ct_zone_equal(), passing conn->zone.dir or zone->dir as the direction argument. Those helpers take enum ip_conntrack_dir values: IP_CT_DIR_ORIGINAL is 0 and IP_CT_DIR_REPLY is 1. However, zone->dir is a u8 bitmask: NF_CT_ZONE_DIR_ORIG is 1, NF_CT_ZONE_DIR_REPL is 2 and NF_CT_DEFAULT_ZONE_DIR is 3. Passing that bitmask as the enum direction shifts the meaning of every non-zero value. An ORIG-only zone passes 1 and is tested as REPLY, while REPL-only and default zones pass 2 or 3 and test bits beyond the valid direction range. In those cases nf_ct_zone_id() can fall back to NF_CT_DEFAULT_ZONE_ID instead of using the real zone id, so different zones can be treated as equal and dedup collapses to tuple equality alone. nf_conncount stores and compares the original-direction tuple for a connection. If an skb already has an attached conntrack entry, get_ct_or_tuple_from_skb() explicitly copies ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, regardless of the packet's ctinfo. Therefore the zone comparison in the tuple dedup path must use IP_CT_DIR_ORIGINAL as well; the zone d
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.261, 5.15.212, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
- CVEs
- CVE-2026-72247
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:37 UTC · Revision 1
Source evidence
netfilter: nf_conncount: fix zone comparison in tuple dedup
core-osv · Original sourcePublished 15 Aug 2026, 05:54 UTC
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conncount: fix zone comparison in tuple dedup The "already exists" dedup logic in __nf_conncount_add() decides whether a connection has already been counted and can be skipped instead of incrementing the connlimit count. It compares the conntrack zone of a list entry with the zone of the connection being added using nf_ct_zone_id() and nf_ct_zone_equal(), passing conn->zone.dir or zone->dir as the direction argument. Those helpers take enum ip_conntrack_dir values: IP_CT_DIR_ORIGINAL is 0 and IP_CT_DIR_REPLY is 1. However, zone->dir is a u8 bitmask: NF_CT_ZONE_DIR_ORIG is 1, NF_CT_ZONE_DIR_REPL is 2 and NF_CT_DEFAULT_ZONE_DIR is 3. Passing that bitmask as the enum direction shifts the meaning of every non-zero value. An ORIG-only zone passes 1 and is tested as REPLY, while REPL-only and default zones pass 2 or 3 and test bits beyond the valid direction range. In those cases nf_ct_zone_id() can fall back to NF_CT_DEFAULT_ZONE_ID instead of using the real zone id, so different zones can be treated as equal and dedup collapses to tuple equality alone. nf_conncount stores and compares the original-direction tuple for a connection. If an skb already has an attached conntrack entry, get_ct_or_tuple_from_skb() explicitly copies ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, regardless of the packet's ctinfo. Therefore the zone comparison in the tuple dedup path must use IP_CT_DIR_ORIGINAL as well; the zone d
osv:CVE-2026-72247
Kernel
Fixed versions: 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5
Complete source record
{
"id": "6f42a4a57cc60042b126add7109d4902f3c923ab81b1896ffe34a9041a8d8314",
"url": "https://osv.dev/vulnerability/CVE-2026-72247",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "netfilter: nf_conncount: fix zone comparison in tuple dedup",
"summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conncount: fix zone comparison in tuple dedup The \"already exists\" dedup logic in __nf_conncount_add() decides whether a connection has already been counted and can be skipped instead of incrementing the connlimit count. It compares the conntrack zone of a list entry with the zone of the connection being added using nf_ct_zone_id() and nf_ct_zone_equal(), passing conn->zone.dir or zone->dir as the direction argument. Those helpers take enum ip_conntrack_dir values: IP_CT_DIR_ORIGINAL is 0 and IP_CT_DIR_REPLY is 1. However, zone->dir is a u8 bitmask: NF_CT_ZONE_DIR_ORIG is 1, NF_CT_ZONE_DIR_REPL is 2 and NF_CT_DEFAULT_ZONE_DIR is 3. Passing that bitmask as the enum direction shifts the meaning of every non-zero value. An ORIG-only zone passes 1 and is tested as REPLY, while REPL-only and default zones pass 2 or 3 and test bits beyond the valid direction range. In those cases nf_ct_zone_id() can fall back to NF_CT_DEFAULT_ZONE_ID instead of using the real zone id, so different zones can be treated as equal and dedup collapses to tuple equality alone. nf_conncount stores and compares the original-direction tuple for a connection. If an skb already has an attached conntrack entry, get_ct_or_tuple_from_skb() explicitly copies ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, regardless of the packet's ctinfo. Therefore the zone comparison in the tuple dedup path must use IP_CT_DIR_ORIGINAL as well; the zone d",
"evidence": "osv:CVE-2026-72247",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.261",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.212",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.178",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.145",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.97",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.40",
"evidence": "/affected/1/ranges"
},
{
"value": "7.1.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-72247",
"aliases": [
"CVE-2026-72247"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "21ba8847f857028dc83a0f341e16ecc616e34740"
},
{
"fixed": "82fc35e0da9a91db9a034f8311f18f77a599ae3f"
},
{
"fixed": "78b5d6dbc860776161f9e9206b06ff8a01f531ab"
},
{
"fixed": "4f30a89c0ed2418719a1144881c2635b940b543d"
},
{
"fixed": "7bdc3c0985ecf17b957811fedcc684acdf698acc"
},
{
"fixed": "35a56e2a46b90e6bd4ca816b80e9cb8d20dfc3ce"
},
{
"fixed": "3cd9a5792cbea81139c24320986dd0db69e9b5d0"
},
{
"fixed": "6ff07ac5405bea4d4ead3559fc123f987576424a"
},
{
"fixed": "f62c41b4910e65da396ec9a8c40c1fe7fe82e449"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4.14.92"
},
{
"fixed": "4.15"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "525e1dffed8711973f77412729621098a95238e5"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "75af3d78168e654a5cd8bbc4c774f97be836165f"
}
]
}
],
"versions": [
"v4.14.336",
"v4.14.335",
"v4.14.334",
"v4.14.333",
"v4.14.332",
"v4.14.331",
"v4.14.330",
"v4.14.329",
"v4.14.328",
"v4.14.327",
"v4.14.326",
"v4.14.325",
"v4.14.324",
"v4.14.323",
"v4.14.322",
"v4.14.321",
"v4.14.320",
"v4.14.319",
"v4.14.318",
"v4.14.317",
"v4.14.316",
"v4.14.315",
"v4.14.314",
"v4.14.313",
"v4.14.312",
"v4.14.311",
"v4.14.310",
"v4.14.309",
"v4.14.308",
"v4.14.307",
"v4.14.306",
"v4.14.305",
"v4.14.304",
"v4.14.303",
"v4.14.302",
"v4.14.301",
"v4.14.300",
"v4.14.299",
"v4.14.298",
"v4.14.297",
"v4.14.296",
"v4.14.295",
"v4.14.294",
"v4.14.293",
"v4.14.292",
"v4.14.291",
"v4.14.290",
"v4.14.289",
"v4.14.288",
"v4.14.287",
"v4.14.286",
"v4.14.285",
"v4.14.284",
"v4.14.283",
"v4.14.282",
"v4.14.281",
"v4.14.280",
"v4.14.279",
"v4.14.278",
"v4.14.277",
"v4.14.276",
"v4.14.275",
"v4.14.274",
"v4.14.273",
"v4.14.272",
"v4.14.271",
"v4.14.270",
"v4.14.269",
"v4.14.268",
"v4.14.267",
"v4.14.266",
"v4.14.265",
"v4.14.264",
"v4.14.263",
"v4.14.262",
"v4.14.261",
"v4.14.260",
"v4.14.259",
"v4.14.258",
"v4.14.257",
"v4.14.256",
"v4.14.255",
"v4.14.254",
"v4.14.253",
"v4.14.252",
"v4.14.251",
"v4.14.250",
"v4.14.249",
"v4.14.248",
"v4.14.247",
"v4.14.246",
"v4.14.245",
"v4.14.244",
"v4.14.243",
"v4.14.242",
"v4.14.241",
"v4.14.240",
"v4.14.239",
"v4.14.238",
"v4.14.237",
"v4.14.236",
"v4.14.235",
"v4.14.234",
"v4.14.233",
"v4.14.232",
"v4.14.231",
"v4.14.230",
"v4.14.229",
"v4.14.228",
"v4.14.227",
"v4.14.226",
"v4.14.225",
"v4.14.224",
"v4.14.223",
"v4.14.222",
"v4.14.221",
"v4.14.220",
"v4.14.219",
"v4.14.218",
"v4.14.217",
"v4.14.216",
"v4.14.215",
"v4.14.214",
"v4.14.213",
"v4.14.212",
"v4.14.211",
"v4.14.210",
"v4.14.209",
"v4.14.208",
"v4.14.207",
"v4.14.206",
"v4.14.205",
"v4.14.204",
"v4.14.203",
"v4.14.202",
"v4.14.201",
"v4.14.200",
"v4.14.199",
"v4.14.198",
"v4.14.197",
"v4.14.196",
"v4.14.195",
"v4.14.194",
"v4.14.193",
"v4.14.192",
"v4.14.191",
"v4.14.190",
"v4.14.189",
"v4.14.188",
"v4.14.187",
"v4.14.186",
"v4.14.185",
"v4.14.184",
"v4.14.183",
"v4.14.182",
"v4.14.181",
"v4.14.180",
"v4.14.179",
"v4.14.178",
"v4.14.177",
"v4.14.176",
"v4.14.175",
"v4.14.174",
"v4.14.173",
"v4.14.172",
"v4.14.171",
"v4.14.170",
"v4.14.169",
"v4.14.168",
"v4.14.167",
"v4.14.166",
"v4.14.165",
"v4.14.164",
"v4.14.163",
"v4.14.162",
"v4.14.161",
"v4.14.160",
"v4.14.159",
"v4.14.158",
"v4.14.157",
"v4.14.156",
"v4.14.155",
"v4.14.154",
"v4.14.153",
"v4.14.152",
"v4.14.151",
"v4.14.150",
"v4.14.149",
"v4.14.148",
"v4.14.147",
"v4.14.146",
"v4.14.145",
"v4.14.144",
"v4.14.143",
"v4.14.142",
"v4.14.141",
"v4.14.140",
"v4.14.139",
"v4.14.138",
"v4.14.137",
"v4.14.136",
"v4.14.135",
"v4.14.134",
"v4.14.133",
"v4.14.132",
"v4.14.131",
"v4.14.130",
"v4.14.129",
"v4.14.128",
"v4.14.127",
"v4.14.126",
"v4.14.125",
"v4.14.124",
"v4.14.123",
"v4.14.122",
"v4.14.121",
"v4.14.120",
"v4.14.119",
"v4.14.118",
"v4.14.117",
"v4.14.116",
"v4.14.115",
"v4.14.114",
"v4.14.113",
"v4.14.112",
"v4.14.111",
"v4.14.110",
"v4.14.109",
"v4.14.108",
"v4.14.107",
"v4.14.106",
"v4.14.105",
"v4.14.104",
"v4.14.103",
"v4.14.102",
"v4.14.101",
"v4.14.100",
"v4.14.99",
"v4.14.98",
"v4.14.97",
"v4.14.96",
"v4.14.95",
"v4.14.94",
"v4.14.93",
"v4.14.92"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72247.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.18.0"
},
{
"fixed": "5.10.261"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.212"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.178"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.145"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.97"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.40"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.1.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72247.json"
}
}
],
"modified": "2026-10-28T02:30:30.025623126Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/35a56e2a46b90e6bd4ca816b80e9cb8d20dfc3ce",
"https://git.kernel.org/stable/c/3cd9a5792cbea81139c24320986dd0db69e9b5d0",
"https://git.kernel.org/stable/c/4f30a89c0ed2418719a1144881c2635b940b543d",
"https://git.kernel.org/stable/c/6ff07ac5405bea4d4ead3559fc123f987576424a",
"https://git.kernel.org/stable/c/78b5d6dbc860776161f9e9206b06ff8a01f531ab",
"https://git.kernel.org/stable/c/7bdc3c0985ecf17b957811fedcc684acdf698acc",
"https://git.kernel.org/stable/c/82fc35e0da9a91db9a034f8311f18f77a599ae3f",
"https://git.kernel.org/stable/c/f62c41b4910e65da396ec9a8c40c1fe7fe82e449",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72247.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-72247",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72247.json"
}
},
"related_cves": [
{
"value": "CVE-2026-72247",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496894,
"published_at": "2026-08-15T05:54:35.201+00:00"
}