Linux: netfilter: nf_nat_sip: rewind offset when NAT shrinks the packet
What fixes it
- 6828aca3d82717c2fda92af81c0dda642bc2b465LinuxCVE List
- 2703f5ea8d85bc729f433ac09ee902084c947122LinuxCVE List
- 0f4d30e2e49f343fc28ba1e259fd22969b940c46LinuxCVE List
- 810da5a63549531da78348b0a4545042d84e01e2LinuxCVE List
- 668cc1c30caedc63070b10d17d5514748988a140LinuxCVE List
- 16aecbe3036f6097c26b51b12e4c1cf207769690LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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?
Text from CVE List
Affected versions 18
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before 6828aca3d82717c2fda92af81c0dda642bc2b465CVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before 2703f5ea8d85bc729f433ac09ee902084c947122CVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before 0f4d30e2e49f343fc28ba1e259fd22969b940c46CVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before 810da5a63549531da78348b0a4545042d84e01e2CVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before 668cc1c30caedc63070b10d17d5514748988a140CVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before e70d48fcf8382581162608a4a322919bfd22aef3CVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before c408d416618ebb8a95e3097a13f3b793ea9272eeCVE List
- Linuxaffected: c978cd3a937141deaf7995b849824af6dacdeae7 before 16aecbe3036f6097c26b51b12e4c1cf207769690CVE List
- Linuxaffected: 2.6.26CVE List
- Linuxunaffected: all versions before 2.6.26CVE List
- Linuxunaffected: 5.10.270 through 5.10.*CVE List
- Linuxunaffected: 5.15.221 through 5.15.*CVE List
- Linuxunaffected: 6.1.188 through 6.1.*CVE List
- Linuxunaffected: 6.6.157 through 6.6.*CVE List
- Linuxunaffected: 6.12.110 through 6.12.*CVE List
- Linuxunaffected: 6.18.52 through 6.18.*CVE List
- Linuxunaffected: 7.2.6 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 8
- git.kernel.org/stable/c/6828aca3d82717c2fda92af81c0dda642bc2b465Referencevia CVE List
- git.kernel.org/stable/c/2703f5ea8d85bc729f433ac09ee902084c947122Referencevia CVE List
- git.kernel.org/stable/c/0f4d30e2e49f343fc28ba1e259fd22969b940c46Referencevia CVE List
- git.kernel.org/stable/c/810da5a63549531da78348b0a4545042d84e01e2Referencevia CVE List
- git.kernel.org/stable/c/668cc1c30caedc63070b10d17d5514748988a140Referencevia CVE List
- git.kernel.org/stable/c/e70d48fcf8382581162608a4a322919bfd22aef3Referencevia CVE List
- git.kernel.org/stable/c/c408d416618ebb8a95e3097a13f3b793ea9272eeReferencevia CVE List
- git.kernel.org/stable/c/16aecbe3036f6097c26b51b12e4c1cf207769690Referencevia CVE List