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

netfilter: nf_nat_sip: reload possible stale data pointer

quoting sashiko:
------------------------------------------------------------------------
[..] noticed a potential memory bug and header corruption involving the
SIP NAT helper.

In net/netfilter/nf_nat_sip.c:nf_nat_sip():
if (skb_ensure_writable(skb, skb->len)) {
nf_ct_helper_log(skb, ct, "cannot mangle packet");
return NF_DROP;
}
uh = (void *)skb->data + protoff;
uh->dest = ct_sip_info->forced_dport;
if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, protoff,
0, 0, NULL, 0)) {

If a cloned or fragmented SKB is reallocated by skb_ensure_writable(), the
old data buffer is freed. However, nf_nat_sip() fails to update *dptr to
point to the new buffer.

It also appears to use nf_nat_mangle_udp_packet() on what could be a TCP
packet, which would overwrite the sequence number with a checksum update.
------------------------------------------------------------------------

nf_conntrack_sip linerizes skbs, hence no fragmented skb can be seen.
But clones are possible, so rebuild dptr.

Disable nf_nat_mangle_udp_packet() branch for TCP streams.
It doesn't look like this can ever happen, else we should have received
bug reports about this, so just check the conntrack is UDP and drop
otherwise.

The calling conntrack_sip set ->forced_dport for SIP_HDR_VIA_UDP messages,
so I don't think this is ever expected to be true for a TCP stream.
Published: 2026-08-15
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the netfilter nf_nat_sip helper within the Linux kernel. When a cloned or fragmented socket buffer (skb) is reallocated by skb_ensure_writable, the original data pointer is freed. The nf_nat_sip() function, however, continues to use the old pointer when writing a forced destination port and when calling nf_nat_mangle_udp_packet. This results in a use‑after‑free memory corruption that can affect kernel data structures, potentially leading to a crash or providing an avenue for privilege escalation. Additionally, the code may mistakenly invoke nf_nat_mangle_udp_packet on packets that are actually TCP, overwriting critical TCP fields such as the sequence number, which could further destabilize connections or be leveraged for malicious manipulation.

Affected Systems

All Linux kernel builds that compile the netfilter nf_nat_sip helper are affected. The CVE does not specify a particular kernel version, so any kernel containing this helper without the recent patch is at risk.

Risk and Exploitability

The CVSS score of 9.8 indicates a high‑severity vulnerability that once exploited could completely compromise the host. The EPSS score is less than 1 %, showing a very low probability of active exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. No public exploits have been reported, and the likely attack vector is local or requires an attacker to be able to generate or relay SIP traffic that traverses the affected kernel module, implying that remote exploitation without such conditions is improbable.

Generated by OpenCVE AI on August 22, 2026 at 10:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel patch that resolves the stale pointer and nf_nat_mangle_udp_packet misuse; the referenced Git commits provide the fix.
  • If patching is infeasible, disable the nf_nat_sip helper by configuring iptables or nftables to drop SIP services or by unloading the relevant NAT module.
  • Enable kernel hardening features such as SMEP, SMAP, and KASLR to reduce the impact of any remaining memory corruption.
  • Limit SIP traffic to trusted hosts or network segments to minimize the opportunity for the vulnerability to be exercised.

Generated by OpenCVE AI on August 22, 2026 at 10:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 09:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-416

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-416

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_nat_sip: reload possible stale data pointer quoting sashiko: ------------------------------------------------------------------------ [..] noticed a potential memory bug and header corruption involving the SIP NAT helper. In net/netfilter/nf_nat_sip.c:nf_nat_sip(): if (skb_ensure_writable(skb, skb->len)) { nf_ct_helper_log(skb, ct, "cannot mangle packet"); return NF_DROP; } uh = (void *)skb->data + protoff; uh->dest = ct_sip_info->forced_dport; if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, protoff, 0, 0, NULL, 0)) { If a cloned or fragmented SKB is reallocated by skb_ensure_writable(), the old data buffer is freed. However, nf_nat_sip() fails to update *dptr to point to the new buffer. It also appears to use nf_nat_mangle_udp_packet() on what could be a TCP packet, which would overwrite the sequence number with a checksum update. ------------------------------------------------------------------------ nf_conntrack_sip linerizes skbs, hence no fragmented skb can be seen. But clones are possible, so rebuild dptr. Disable nf_nat_mangle_udp_packet() branch for TCP streams. It doesn't look like this can ever happen, else we should have received bug reports about this, so just check the conntrack is UDP and drop otherwise. The calling conntrack_sip set ->forced_dport for SIP_HDR_VIA_UDP messages, so I don't think this is ever expected to be true for a TCP stream.
Title netfilter: nf_nat_sip: reload possible stale data pointer
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:42:03.339Z

Reserved: 2026-08-09T03:40:39.915Z

Link: CVE-2026-72251

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:52.393

Modified: 2026-08-17T06:18:27.173

Link: CVE-2026-72251

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72251 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T10:45:03Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference