Skip to contentSkip to conversation

CVE-2026-100070: netfilter: nf_nat_sip: rewind offset when NAT shrinks the packet

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

netfilter: nf_nat_sip: rewind offset when NAT shrinks the packet

sashiko says:
If map_addr() changes the packet length, such as when the public NAT IP string is shorter or longer than the internal IP, coff will still point to the offset relative to the pre-mangled packet.
If the packet shrinks, coff could overshoot the correct position, potentially causing the next ct_sip_parse_header_uri() call to silently skip bytes and miss subsequent Contact headers. Could this lead to a failure to NAT those subsequent headers and leak internal network details?

The Linux kernel CVE team has assigned CVE-2026-100070 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 5.10.270 with commit 6828aca3d82717c2fda92af81c0dda642bc2b465
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 5.15.221 with commit 2703f5ea8d85bc729f433ac09ee902084c947122
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 6.1.188 with commit 0f4d30e2e49f343fc28ba1e259fd22969b940c46
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 6.6.157 with commit 810da5a63549531da78348b0a4545042d84e01e2
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 6.12.110 with commit 668cc1c30caedc63070b10d17d5514748988a140
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 6.18.52 with commit e70d48fcf8382581162608a4a322919bfd22aef3
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 7.2.6 with commit c408d416618ebb8a95e3097a13f3b793ea9272ee
	Issue introduced in 2.6.26 with commit c978cd3a937141deaf7995b849824af6dacdeae7 and fixed in 7.3-rc1 with commit 16aecbe3036f6097c26b51b12e4c1cf207769690

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-100070

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/netfilter/nf_nat_sip.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/6828aca3d82717c2fda92af81c0dda642bc2b465
	https://git.kernel.org/stable/c/2703f5ea8d85bc729f433ac09ee902084c947122
	https://git.kernel.org/stable/c/0f4d30e2e49f343fc28ba1e259fd22969b940c46
	https://git.kernel.org/stable/c/810da5a63549531da78348b0a4545042d84e01e2
	https://git.kernel.org/stable/c/668cc1c30caedc63070b10d17d5514748988a140
	https://git.kernel.org/stable/c/e70d48fcf8382581162608a4a322919bfd22aef3
	https://git.kernel.org/stable/c/c408d416618ebb8a95e3097a13f3b793ea9272ee
	https://git.kernel.org/stable/c/16aecbe3036f6097c26b51b12e4c1cf207769690