netfilter: x_tables: allocate hook ops while under mutex
In the Linux kernel, the following vulnerability has been resolved: netfilter: x_tables: allocate hook ops while under mutex arp/ip(6)t_register_table() add the table to the per-netns list via xt_register_table() before allocating the per-netns hook ops copy via kmemdup_array(). This leaves a window where the table is visible in the list with ops=NULL. If the pernet exit happens runs concurrently the pre_exit callback finds the table via xt_find_table() and passes the NULL ops pointer to nf_unregister_net_hooks(), causing a NULL dereference: general protection fault in nf_unregister_net_hooks+0xbc/0x150 RIP: nf_unregister_net_hooks (net/netfilter/core.c:613) Call Trace: ipt_unregister_table_pre_exit iptable_mangle_net_pre_exit ops_pre_exit_list cleanup_net Fix by moving the ops allocation into the xtables core so the table is never in the list without valid ops. Also ensure the table is no longer processing packets before its torn down on error unwind. nf_register_net_hooks might have published at least one hook; call synchronize_rcu() if there was an error. audit log register message gets deferred until all operations have passed, this avoids need to emit another ureg message in case of error unwinding. Based on earlier patch by Tristan Madani.
CVE-2026-64079
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-64079
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": "ae689334225ff0e4ef112459ecd24aea932c2b00",
"lessThan": "5ea15e78232253e657d352e625fb4913e2f57e63",
"versionType": "git"
},
{
"status": "affected",
"version": "ae689334225ff0e4ef112459ecd24aea932c2b00",
"lessThan": "693bffd742dd4fa9a0076ed120545af3679c588b",
"versionType": "git"
},
{
"status": "affected",
"version": "ae689334225ff0e4ef112459ecd24aea932c2b00",
"lessThan": "f669571a2bf5067f50091cc598df9613663ee226",
"versionType": "git"
},
{
"status": "affected",
"version": "ae689334225ff0e4ef112459ecd24aea932c2b00",
"lessThan": "2f92c5f923979f37ab1d5445381e4b8378a196cc",
"versionType": "git"
},
{
"status": "affected",
"version": "ae689334225ff0e4ef112459ecd24aea932c2b00",
"lessThan": "b62eb8dcf2c47d4d676a434efbd57c4f776f7829",
"versionType": "git"
}
],
"programFiles": [
"include/linux/netfilter/x_tables.h",
"net/ipv4/netfilter/arp_tables.c",
"net/ipv4/netfilter/ip_tables.c",
"net/ipv6/netfilter/ip6_tables.c",
"net/netfilter/x_tables.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.13"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.13",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.0.11",
"versionType": "semver",
"lessThanOrEqual": "7.0.*"
},
{
"status": "unaffected",
"version": "7.1",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"include/linux/netfilter/x_tables.h",
"net/ipv4/netfilter/arp_tables.c",
"net/ipv4/netfilter/ip_tables.c",
"net/ipv6/netfilter/ip6_tables.c",
"net/netfilter/x_tables.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-64079
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #46421 · Revision 1
- Added to Heist Feed
- Publisher date