In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: destroy stale expectfn expectations on unregister NAT… (CVE-2026-53349)
A vulnerability in the Linux kernel's netfilter nf_conntrack subsystem could cause a use-after-free condition when NAT helpers unregister while expectations still exist. This occurs because stale pointers to module code remain in the expectation table after module removal, leading to kernel crashes when those pointers are dereferenced. The issue requires CAP_SYS_MODULE privileges to exploit and is considered a robustness flaw rather than a direct attack vector.
AI Analysis
Technical Summary
The Linux kernel netfilter nf_conntrack subsystem had a flaw where NAT helpers like nf_nat_h323 stored raw pointers to module text in expectation callbacks (exp->expectfn). When a NAT helper module is unregistered, the callback descriptor is unlinked but the expectation table is not walked to remove stale expectations. This leaves dangling pointers to freed module code. When an expected connection arrives, the kernel calls the stale exp->expectfn pointer, causing a kernel crash (use-after-free). The fix introduces nf_ct_helper_expectfn_destroy(), which walks the expectation table and removes any expectations referencing the torn-down module after the RCU grace period, preventing use-after-free crashes.
Potential Impact
The vulnerability can cause a kernel crash (denial of service) due to use-after-free when a NAT helper module is removed while expectations still exist. Exploitation requires CAP_SYS_MODULE privileges to unload the module, so it is primarily a robustness issue rather than a remote code execution or privilege escalation risk. No confidentiality or integrity impacts are reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly destroy stale expectations during NAT helper module unregistering, preventing use-after-free crashes. Users should update to a Linux kernel version that includes this fix. Since this requires kernel module unloading privileges, limiting CAP_SYS_MODULE access reduces risk. Patch status is not explicitly stated here; check the vendor or Linux kernel advisories for the fixed kernel versions and apply updates accordingly.
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: destroy stale expectfn expectations on unregister NAT… (CVE-2026-53349)
Description
A vulnerability in the Linux kernel's netfilter nf_conntrack subsystem could cause a use-after-free condition when NAT helpers unregister while expectations still exist. This occurs because stale pointers to module code remain in the expectation table after module removal, leading to kernel crashes when those pointers are dereferenced. The issue requires CAP_SYS_MODULE privileges to exploit and is considered a robustness flaw rather than a direct attack vector.
CVSS v3.1
Score 5.5medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel netfilter nf_conntrack subsystem had a flaw where NAT helpers like nf_nat_h323 stored raw pointers to module text in expectation callbacks (exp->expectfn). When a NAT helper module is unregistered, the callback descriptor is unlinked but the expectation table is not walked to remove stale expectations. This leaves dangling pointers to freed module code. When an expected connection arrives, the kernel calls the stale exp->expectfn pointer, causing a kernel crash (use-after-free). The fix introduces nf_ct_helper_expectfn_destroy(), which walks the expectation table and removes any expectations referencing the torn-down module after the RCU grace period, preventing use-after-free crashes.
Potential Impact
The vulnerability can cause a kernel crash (denial of service) due to use-after-free when a NAT helper module is removed while expectations still exist. Exploitation requires CAP_SYS_MODULE privileges to unload the module, so it is primarily a robustness issue rather than a remote code execution or privilege escalation risk. No confidentiality or integrity impacts are reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly destroy stale expectations during NAT helper module unregistering, preventing use-after-free crashes. Users should update to a Linux kernel version that includes this fix. Since this requires kernel module unloading privileges, limiting CAP_SYS_MODULE access reduces risk. Patch status is not explicitly stated here; check the vendor or Linux kernel advisories for the fixed kernel versions and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qf7g-7vpq-493r
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53349"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a6150e79c2644c7f8da204e
Added to database: 07/22/2026, 23:23:19 UTC
Last enriched: 07/22/2026, 23:38:01 UTC
Last updated: 07/31/2026, 19:24:49 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.