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 821053FB049 for ; Wed, 6 May 2026 11:29:32 +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=1778066972; cv=none; b=ZUDbXLvd4f9nueTLjtqvyF7F+pVIS3XYlXOUkBDotPhFXfvgZpTCmXWMvF7tDxYHLNEswADj8YKwTwk4I5HAExXT1jUDke+Hp+xSGimEdKPkF+A4NeiTPP3kol5jgp0J1iGPW31RZtVtPC43vRJ87hfli0HUkAr1NmVwXw+tlI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778066972; c=relaxed/simple; bh=1mef3b0W6Ieood32DxQyI/T8EnD548UJXitp2TQrV6Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ha/AoLsFiX0NR7qwWQSDuTMvjuTvqlCft+RHkVUD/E12B/w47iMJlx1UCdOvcEx9vJ70eQyJ/CMXlEFVDI1THXc9RYTdzlF98/raEza2jRro3toA6+xsvKs8P04QX5N1hMYPzVODxuMBCDPOhNOjp/JZrHtYo0U5jEf6Ken1b5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DDkaXp+o; 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="DDkaXp+o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2A82C2BCB8; Wed, 6 May 2026 11:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778066972; bh=1mef3b0W6Ieood32DxQyI/T8EnD548UJXitp2TQrV6Q=; h=From:To:Cc:Subject:Date:Reply-To:From; b=DDkaXp+orgQbw+R2Cerjda/fPZ3zCeasDuFgLnEuFZhSOTtOiAhMGRU0kbhSVlqKk cvmWQR3I1DmtUKyH36NLDfM5l2+NUg0qpMl8Pl64LlquFk19nVJv/I1W8BdHttUtk4 QZ72+Vt6OWHGxntY69rYj9AOtgucNNvuGzVc/InQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43139: xfrm6: fix uninitialized saddr in xfrm6_get_saddr() Date: Wed, 6 May 2026 13:27:35 +0200 Message-ID: <2026050624-CVE-2026-43139-64a2@gregkh> X-Mailer: git-send-email 2.54.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=4335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jFME2Nt1hWEcQcVq47TDx07cHv2bmTmSwJNv0xwaogE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VeeUe98KD15UrZSv+rWfT/pCmOXP3V0JnOVtydvEy uJdGk51xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERspjDMT33KumT5toTubw7n GStlFrSuc9ytyLDgPOfM9eHCp8rabUPdTtUWXN3ifmUxAA== 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: xfrm6: fix uninitialized saddr in xfrm6_get_saddr() xfrm6_get_saddr() does not check the return value of ipv6_dev_get_saddr(). When ipv6_dev_get_saddr() fails to find a suitable source address (returns -EADDRNOTAVAIL), saddr->in6 is left uninitialized, but xfrm6_get_saddr() still returns 0 (success). This causes the caller xfrm_tmpl_resolve_one() to use the uninitialized address in xfrm_state_find(), triggering KMSAN warning: ===================================================== BUG: KMSAN: uninit-value in xfrm_state_find+0x2424/0xa940 xfrm_state_find+0x2424/0xa940 xfrm_resolve_and_create_bundle+0x906/0x5a20 xfrm_lookup_with_ifid+0xcc0/0x3770 xfrm_lookup_route+0x63/0x2b0 ip_route_output_flow+0x1ce/0x270 udp_sendmsg+0x2ce1/0x3400 inet_sendmsg+0x1ef/0x2a0 __sock_sendmsg+0x278/0x3d0 __sys_sendto+0x593/0x720 __x64_sys_sendto+0x130/0x200 x64_sys_call+0x332b/0x3e70 do_syscall_64+0xd3/0xf80 entry_SYSCALL_64_after_hwframe+0x77/0x7f Local variable tmp.i.i created at: xfrm_resolve_and_create_bundle+0x3e3/0x5a20 xfrm_lookup_with_ifid+0xcc0/0x3770 ===================================================== Fix by checking the return value of ipv6_dev_get_saddr() and propagating the error. The Linux kernel CVE team has assigned CVE-2026-43139 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 5.10.252 with commit 4f28141786e1fe884ce42a5197ba9beed540f0ea Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 5.15.202 with commit 6535867673bf301d52aa00593a4d1d18cc3922fa Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 6.1.165 with commit eb2ee15290af14c60b45cf2b73f5687d1d077d9b Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 6.6.128 with commit 719918fc88df6da023dfff370cd965151a5afd7f Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 6.12.75 with commit dc0abce055134cb83b0d981d31ceb20dda419787 Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 6.18.16 with commit c7221e7bd8fc2ef38a0b27be580d9d202281306b Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 6.19.6 with commit 3dcd1664ac15eee6a690daec7c4ffc59190406f7 Issue introduced in 2.6.19 with commit a1e59abf824969554b90facd44a4ab16e265afa4 and fixed in 7.0 with commit 1799d8abeabc68ec05679292aaf6cba93b343c05 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-43139 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/ipv6/xfrm6_policy.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/4f28141786e1fe884ce42a5197ba9beed540f0ea https://git.kernel.org/stable/c/6535867673bf301d52aa00593a4d1d18cc3922fa https://git.kernel.org/stable/c/eb2ee15290af14c60b45cf2b73f5687d1d077d9b https://git.kernel.org/stable/c/719918fc88df6da023dfff370cd965151a5afd7f https://git.kernel.org/stable/c/dc0abce055134cb83b0d981d31ceb20dda419787 https://git.kernel.org/stable/c/c7221e7bd8fc2ef38a0b27be580d9d202281306b https://git.kernel.org/stable/c/3dcd1664ac15eee6a690daec7c4ffc59190406f7 https://git.kernel.org/stable/c/1799d8abeabc68ec05679292aaf6cba93b343c05