CVE-2026-31427: netfilter: nf_conntrack_sip: fix use of uninitialized rtp_addr in process_sdp
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfconntracksip: fix use of uninitialized rtpaddr in processsdp
processsdp() declares union nfinetaddr rtpaddr on the stack and passes it to the nfnatsip sdpsession hook after walking the SDP media descriptions. However rtpaddr is only initialized inside the media loop when a recognized media type with a non-zero port is found.
If the SDP body contains no m= lines, only inactive media sections (m=audio 0 ...) or only unrecognized media types, rtpaddr is never assigned. Despite that, the function still calls hooks->sdpsession() with &rtpaddr, causing nfnatsdpsession() to format the stale stack value as an IP address and rewrite the SDP session owner and connection lines with it.
With CONFIGINITSTACKALLZERO (default on most distributions) this results in the session-level o= and c= addresses being rewritten to 0.0.0.0 for inactive SDP sessions. Without stack auto-init the rewritten address is whatever happened to be on the stack.
Fix this by pre-initializing rtpaddr from the session-level connection address (caddr) when available, and tracking via a havertpaddr flag whether any valid address was established. Skip the sdpsession hook entirely when no valid address exists.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1 - Compensating control
In netfilter nf_conntrack_sip process_sdp(), pre-initialize rtp_addr from the session-level connection address (caddr) when available, track validity with a have_rtp_addr flag, and skip the sdp_session hook entirely when no valid address exists.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31427?
CVE-2026-31427 has been assessed as a low-severity vulnerability in the Linux kernel.
How do I fix CVE-2026-31427?
To fix CVE-2026-31427, update your Linux kernel to a version that includes the fix for this vulnerability.
Which versions of the Linux kernel are affected by CVE-2026-31427?
CVE-2026-31427 affects multiple versions of the Linux kernel before the fix was implemented.
What types of attacks can exploit CVE-2026-31427?
CVE-2026-31427 could potentially be exploited in scenarios involving manipulated SIP packets.
Is CVE-2026-31427 related to netfilter functions in the Linux kernel?
Yes, CVE-2026-31427 specifically involves the netfilter module and its handling of SIP traffic.