# CVE-2026-64079: netfilter: x_tables: allocate hook ops while under mutex

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-19T15:39:52.192Z
- Modified: 2026-11-06T17:18:36.143Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from ae689334225ff0e4ef112459ecd24aea932c2b00 before 5ea15e78232253e657d352e625fb4913e2f57e63; from ae689334225ff0e4ef112459ecd24aea932c2b00 before 693bffd742dd4fa9a0076ed120545af3679c588b; from ae689334225ff0e4ef112459ecd24aea932c2b00 before f669571a2bf5067f50091cc598df9613663ee226; from ae689334225ff0e4ef112459ecd24aea932c2b00 before 2f92c5f923979f37ab1d5445381e4b8378a196cc; from ae689334225ff0e4ef112459ecd24aea932c2b00 before b62eb8dcf2c47d4d676a434efbd57c4f776f7829; 5.13 (not affected: before 5.13; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.13 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/5ea15e78232253e657d352e625fb4913e2f57e63>
- <https://git.kernel.org/stable/c/693bffd742dd4fa9a0076ed120545af3679c588b>
- <https://git.kernel.org/stable/c/f669571a2bf5067f50091cc598df9613663ee226>
- <https://git.kernel.org/stable/c/2f92c5f923979f37ab1d5445381e4b8378a196cc> (patch)
- <https://git.kernel.org/stable/c/b62eb8dcf2c47d4d676a434efbd57c4f776f7829> (patch)

## Sources

- CVE List: [CVE-2026-64079](https://www.cve.org/CVERecord?id=CVE-2026-64079), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-64079](https://nvd.nist.gov/vuln/detail/CVE-2026-64079), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-64079 · Whole record: https://cve.day/CVE-2026-64079.json · Rebuilt by cve.day 2026-11-25T22:59:28.981Z
