Описание
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?
A flaw was found in the Linux kernel. This vulnerability can result in information disclosure when processing Session Initiation Protocol (SIP) traffic through the netfilter Network Address Translation (NAT) helper. When address rewriting shortens a packet, the helper fails to adjust its internal offset, causing subsequent Contact headers to be skipped during translation. Consequently, an external recipient or network observer may receive untranslated internal IP addresses, exposing private network details.
Отчет
Red Hat rates this flaw as moderate. It is an information disclosure issue in the Linux kernel's netfilter SIP NAT helper (nf_nat_sip), affecting the kernel packages in Red Hat Enterprise Linux, Red Hat In-Vehicle OS, and the Red Hat Enterprise Linux CoreOS layers of Red Hat OpenShift Container Platform. When the helper rewrites addresses in Session Initiation Protocol (SIP) packets and the public NAT address string is shorter than the internal address it replaces, the packet shrinks but the helper's internal parsing offset is not adjusted. The stale offset can cause a subsequent Contact header to be skipped during translation, so the packet is sent with an untranslated internal IP address. A remote attacker or network observer who can cause a NATed SIP message containing multiple Contact headers to be processed could use this to learn internal network addresses or topology. The flaw does not involve memory corruption, privilege escalation, or denial of service. Exploitation requires the non-default SIP connection tracking/NAT helper to be enabled and active, a NAT configuration in which address rewriting shortens the packet, and SIP messages containing multiple Contact headers. Red Hat Enterprise Linux 6 is not affected because the vulnerable code is not present in that release. Fixes for the affected products are currently deferred to a future update; the residual risk is limited to disclosure of internal network addressing on systems that pass SIP traffic through the netfilter SIP NAT helper.
Меры по смягчению последствий
The vulnerable code path is only reachable when the SIP connection tracking/NAT helper is enabled, which is not the default configuration. On systems where the SIP NAT helper has been explicitly enabled, disabling it (for example, by unloading or preventing the loading of the nf_conntrack_sip and nf_nat_sip kernel modules, or by disabling automatic conntrack helper assignment for SIP traffic) prevents netfilter from rewriting SIP payloads and thereby prevents untranslated Contact headers from being sent to external recipients. Note that disabling the helper also disables SIP application-level gateway (ALG) processing, which may affect SIP deployments that rely on it, so the operational impact should be evaluated before applying this change.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Fix deferred | ||
| Red Hat Enterprise Linux 8 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Fix deferred |
Показывать по
Дополнительная информация
Статус:
EPSS
5.5 Medium
CVSS3
Связанные уязвимости
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?
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?
netfilter: nf_nat_sip: rewind offset when NAT shrinks the packet
In the Linux kernel, the following vulnerability has been resolved: n ...
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?
EPSS
5.5 Medium
CVSS3