netfilter: nf_nat_sip: rewind offset when NAT shrinks the packet
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c978cd3a937141deaf7995b849824af6dacdeae7 · < e70d48fcf8382581162608a4a322919bfd22aef3| No fix yet |
| Linux Linux |
|
|
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?
From the CVE record · Linux
The Linux kernel's nf_nat_sip may use an incorrect offset when NAT shortens a SIP packet. This could cause it to miss later Contact headers, potentially leaving internal network details unmodified. The input does not specify authentication or user-interaction requirements.
Teams running the Linux kernel with nf_nat_sip should check their deployments; affected versions are not specified.