Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 991043CD8C9 for ; Mon, 13 Apr 2026 13:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776087685; cv=none; b=ixfNe2iWWyp5sQYMycp4BCNH6c3KA0YhT4NAD9UVa14S0gHrb3BkO6maTHkhSWtYENWBiUwycqStrUCuyTzkr0+mIUeHKD5DSDsIEi0fB6inDgXm+8wuSc81tq3EsOhW6wngdNEccLRpb4Ei68B3sEzm77vaIumSkKC9iYGmrOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776087685; c=relaxed/simple; bh=/864CuUgUg099WDbkQbE5Irs4E5O2HVVf3FXptsnNE8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qP2XbSFSdbiTvym5YbMxWSrEKuhoM3rR8r8F3JD90hbswHZGArRTQnDHutJzv3SSOkH5wv9zzVgdTROdTZ3Q6QfMfgxeY5VOjCIw1H6PPhuR6AIdBAmvDnmEoBV80h8nCgR6bRheY3CCIECQ1H5sseMG76kw1TSmLr3rDdTczpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tWoHoFzS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tWoHoFzS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11BAEC2BCB1; Mon, 13 Apr 2026 13:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776087685; bh=/864CuUgUg099WDbkQbE5Irs4E5O2HVVf3FXptsnNE8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=tWoHoFzSTXG571iJ4Zf/kLYj/u7fuMfHR0j/nGEpQ3sXSEd1YUTNL5XwaNG0IlL/+ YUg5XdpGI9Pk8ysZvjmswFRbtoMl6Ios8rJPs17SbrpW6ZMtQXmdat1aj6yFdh3fZs LPUJ/ff2h1R2OeYDQdfeQ0s4g0ioEYwPo6EuPNYU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31427: netfilter: nf_conntrack_sip: fix use of uninitialized rtp_addr in process_sdp Date: Mon, 13 Apr 2026 15:41:01 +0200 Message-ID: <2026041357-CVE-2026-31427-1afe@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Wz/gZG99TgIOz/b6CkF0NrrYIaMhk5P3XerjYbupB84=; b=kA0DAAIRMUfUDdst+ykByyZiAGnc8mrI+jULqRtEXTZfHJgBjFLXvqzLb6S5xpdHhEmc2lrHh ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmnc8moACgkQMUfUDdst+ymVtQCgu/Df 5s+RWdyyD94LpCPfddFyOvUAoKeRHuQXBiMtkayl5hZO4WsXfzaj X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_sip: fix use of uninitialized rtp_addr in process_sdp process_sdp() declares union nf_inet_addr rtp_addr on the stack and passes it to the nf_nat_sip sdp_session hook after walking the SDP media descriptions. However rtp_addr 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, rtp_addr is never assigned. Despite that, the function still calls hooks->sdp_session() with &rtp_addr, causing nf_nat_sdp_session() to format the stale stack value as an IP address and rewrite the SDP session owner and connection lines with it. With CONFIG_INIT_STACK_ALL_ZERO (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 rtp_addr from the session-level connection address (caddr) when available, and tracking via a have_rtp_addr flag whether any valid address was established. Skip the sdp_session hook entirely when no valid address exists. The Linux kernel CVE team has assigned CVE-2026-31427 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit 4ab9e64e5e3c0516577818804aaf13a630d67bc9 and fixed in 6.1.168 with commit 6e5e3c87b7e6212f1d8414fc2e4d158b01e12025 Issue introduced in 2.6.26 with commit 4ab9e64e5e3c0516577818804aaf13a630d67bc9 and fixed in 6.6.131 with commit fe463e76c9b4b0b43b5ee8961b4c500231f1a3f6 Issue introduced in 2.6.26 with commit 4ab9e64e5e3c0516577818804aaf13a630d67bc9 and fixed in 6.12.80 with commit 7edca70751b9bdb5b83eed53cde21eccf3c86147 Issue introduced in 2.6.26 with commit 4ab9e64e5e3c0516577818804aaf13a630d67bc9 and fixed in 6.18.21 with commit 01f34a80ac23ae90b1909b94b4ed05343a62f646 Issue introduced in 2.6.26 with commit 4ab9e64e5e3c0516577818804aaf13a630d67bc9 and fixed in 6.19.11 with commit 52fdda318ef2362fc5936385bcb8b3d0328ee629 Issue introduced in 2.6.26 with commit 4ab9e64e5e3c0516577818804aaf13a630d67bc9 and fixed in 7.0 with commit 6a2b724460cb67caed500c508c2ae5cf012e4db4 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-31427 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_conntrack_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/6e5e3c87b7e6212f1d8414fc2e4d158b01e12025 https://git.kernel.org/stable/c/fe463e76c9b4b0b43b5ee8961b4c500231f1a3f6 https://git.kernel.org/stable/c/7edca70751b9bdb5b83eed53cde21eccf3c86147 https://git.kernel.org/stable/c/01f34a80ac23ae90b1909b94b4ed05343a62f646 https://git.kernel.org/stable/c/52fdda318ef2362fc5936385bcb8b3d0328ee629 https://git.kernel.org/stable/c/6a2b724460cb67caed500c508c2ae5cf012e4db4