CVE-2026-53349: netfilter: nf_conntrack: destroy stale expectfn expectations on unregister

Published Jul 1, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nfconntrack: destroy stale expectfn expectations on unregister

NAT helpers such as nfnath323 store a raw pointer to module text in exp->expectfn (e.g. ipnatq931expect). nfcthelperexpectfnunregister() 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, initconntrack() 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 nfnath323, then connecting to the expected port:

Oops: int3: 0000 [#1] SMP KASAN NOPTI RIP: 0010:0xffffffffa06102d1 initconntrack.isra.0 (net/netfilter/nfconntrackcore.c:1862) nfconntrackin (net/netfilter/nfconntrackcore.c:2049) ipv4conntracklocal (net/netfilter/nfconntrackproto.c:223) nfhookslow (net/netfilter/core.c:619) iplocalout (net/ipv4/ipoutput.c:120) tcptransmitskb (net/ipv4/tcpoutput.c:1715) tcpconnect (net/ipv4/tcpoutput.c:4374) tcpv4connect (net/ipv4/tcpipv4.c:345) sysconnect (net/socket.c:2167) Modules linked in: nfconntrackh323 [last unloaded: nfnath323]

Reaching the dangling state requires CAPSYSMODULE 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 nfcthelperexpectfndestroy(), 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 synchronizercu() is introduced. With the fix, the same reproducer runs to completion without the Oops.

Affected Software

15 affected componentsFixes available
Linux Kernel
Linux kernel nf_conntrack
Microsoft azl3 kernel 6.6.139.1-1<6.6.143.1-1
6.6.143.1-1
Linux Linux kernel>=2.6.20<6.1.176
Linux Linux kernel>=6.2<6.6.143
Linux Linux kernel>=6.7<6.12.94
Linux Linux kernel>=6.13<6.18.36
Linux Linux kernel>=6.19<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6
Linux Linux kernel=7.1-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.143.1-1
  2. Upgrade

    Upgrade Linux kernel netfilter nf_conntrack to a version that resolves this vulnerability.

    Patch netfilter: nf_conntrack: destroy stale expectfn expectations on unregister
  3. Configuration

    When unregistering an nf_conntrack helper (nf_ct_helper_expectfn_unregister()), add a synchronize_rcu() and call nf_ct_helper_expectfn_destroy() so it walks the expectation table and destroys every expectation whose ->expectfn matches the descriptor being torn down, preventing stale pointers into unloaded module text.

    Linux kernel nf_conntrack / nf_conntrack helper unregister path synchronize_rcu() = introduced
  4. Compensating control

    On systems where CAP_SYS_MODULE can be granted to users, restrict/avoid granting CAP_SYS_MODULE to reduce the ability to unload NAT helpers while live expectations exist (vulnerability requires CAP_SYS_MODULE in the initial user namespace to reach the dangling state).

Event History

Jul 1, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityAffected Software
Jul 2, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:04 AM
Affected Software
Updated
via Microsoft·08:04 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-53349?

CVE-2026-53349 has a risk score of 28, indicating it is a significant vulnerability in the Linux kernel.

2

How do I fix CVE-2026-53349?

To address CVE-2026-53349, ensure that your Linux kernel is updated to the latest version that includes the fix for this vulnerability.

3

What systems are affected by CVE-2026-53349?

CVE-2026-53349 affects systems running vulnerable versions of the Linux kernel that utilize the netfilter connection tracking feature.

4

What are the potential impacts of CVE-2026-53349?

The potential impacts of CVE-2026-53349 may include stability issues or exploitation opportunities in environments using netfilter NAT helpers.

5

What is the nature of CVE-2026-53349?

CVE-2026-53349 involves the improper management of stale expectations in netfilter's connection tracking for NAT helpers, leading to potential exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203