VDB

CVE-2026-53349

CVE-2026-53349 PUBLISHED

netfilter: nf_conntrack: destroy stale expectfn expectations on unregister

Reported by linux · Published July 1, 2026

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: destroy stale expectfn expectations on unregister NAT helpers such as nf_nat_h323 store a raw pointer to module text in exp->expectfn (e.g. ip_nat_q931_expect). nf_ct_helper_expectfn_unregister() only unlinks the callback descriptor and never walks the expectation table, so an expectation pending at module removal survives with a dangling exp->expectfn into freed module text. When the expected connection arrives, init_conntrack() invokes exp->expectfn(), now a stale pointer into the unloaded module. Reproduced on a KASAN build by loading the H.323 helpers, creating a Q.931 expectation, unloading nf_nat_h323, then connecting to the expected port: Oops: int3: 0000 [#1] SMP KASAN NOPTI RIP: 0010:0xffffffffa06102d1 init_conntrack.isra.0 (net/netfilter/nf_conntrack_core.c:1862) nf_conntrack_in (net/netfilter/nf_conntrack_core.c:2049) ipv4_conntrack_local (net/netfilter/nf_conntrack_proto.c:223) nf_hook_slow (net/netfilter/core.c:619) __ip_local_out (net/ipv4/ip_output.c:120) __tcp_transmit_skb (net/ipv4/tcp_output.c:1715) tcp_connect (net/ipv4/tcp_output.c:4374) tcp_v4_connect (net/ipv4/tcp_ipv4.c:345) __sys_connect (net/socket.c:2167) Modules linked in: nf_conntrack_h323 [last unloaded: nf_nat_h323] Reaching the dangling state requires CAP_SYS_MODULE in the initial user namespace to remove a NAT helper that still has live expectations, so this is a robustness fix; leaving an expectation pointing at freed text is wrong regardless. Add nf_ct_helper_expectfn_destroy(), which walks the expectation table and drops every expectation whose ->expectfn matches the descriptor being torn down. Call it from each NAT helper's exit path after the existing RCU grace period, so no expectation outlives the code it points at and no extra synchronize_rcu() is introduced. With the fix, the same reproducer runs to completion without the Oops.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-headersAmazon Linux1:6.12.94-123.174.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.94-123.174.amzn2023
kernel6.18-develAmazon Linux1:6.18.36-69.134.amzn2023

Affected products

VendorProductVersions
LinuxLinuxf587de0e2feb9eb9b94f98d0a7b7437e4d6617b4, f587de0e2feb9eb9b94f98d0a7b7437e4d6617b4, f587de0e2feb9eb9b94f98d0a7b7437e4d6617b4
LinuxLinux2.6.20, 0, 6.1.176
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.18-devel0
linuxlinux_kernel2.6.20, 2.6.20, 2.6.20
amazon:2023bpftool6.120
amazon:2023bpftool0
LinuxLinux*, 7.1, 7.0.13
amazon:2023perf6.180
amazon:2023microvm-kernel6.180
amazon:2023python3-perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-devel0
amazon:2023kernel6.180
amazon:2023kernel6.120
amazon:2023kernel-modules-extra0

…and 19 more

Timeline

  • Jul 1, 2026 CVE Published
  • Jul 2, 2026 EPSS Score (9 in total, the first dated here)
  • Jul 2, 2026 Coalition ESS Score
  • Jul 5, 2026 Security Advisory (17 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (14 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-53349
vulnetix vdb fixes CVE-2026-53349

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53349/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›