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 409161CEAC2 for ; Fri, 1 May 2026 14:22:07 +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=1777645327; cv=none; b=sLpSLi9lf3ne1dtc4oi0jGPztZm1W8A87MsYq/IC/bcQE0StXPB8B9j/YIC7a88p871oEnNKtwQQV+ADw3iOt+y78WXijb0UNE7dTaJ0Go/XmBCn6S5eAtmgu7dVyDaaCh3z7NCWmhzIW1sZ/IYyelxFg7IUZTOgb5KKduX+L4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645327; c=relaxed/simple; bh=OmmwCNjaExV6qYBTIqn7/nuIK4arS7MJ5sS1KOnIlEQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VqjDclMRP76Ybnjvh/ds7K7twD5Ss2xm68YD3ZW37DSjygOOh06SUTICHGzgyYztRIPk44gjrlzJKYpp6+9JFqv3EKZgiIno6Gr94kxaf6WZciOytOLQRBiqhIJsfm0xv+74nAp9+TqHXkg16Uwdr+qw2HEjbxnHvmLZygpbFeQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ySEJCT6M; 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="ySEJCT6M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEC1BC2BCB4; Fri, 1 May 2026 14:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645327; bh=OmmwCNjaExV6qYBTIqn7/nuIK4arS7MJ5sS1KOnIlEQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ySEJCT6MeIfC181V53n8CCI6y6Fi+JBDUNa/jH4mBnFtUDcoI0qq2EfQgmS4tOg76 jgMAmiDllZSNwiLZuBDE53NmB+y2jygxWKJIAVBi+bfDjQl1Xe/yJX/p5XXj/O2/OD zP6H1kAe7aRua6zjRB0ZuCU2URVJblXrr27GX+6Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43038: ipv6: icmp: clear skb2->cb[] in ip6_err_gen_icmpv6_unreach() Date: Fri, 1 May 2026 16:16:11 +0200 Message-ID: <2026050103-CVE-2026-43038-b591@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=4368; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8vCxGCudz+47W1rjt1u6B7Be09ZYdYaxg9jsWBhZxBw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftqYXzPtRdf0h2w+2759s3xyT35Mf/qDTRYVn4+bDk SzWqTpLOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi7XsZFhwWrg9Zwrogadfh ybYFsoyC02O2PWRYcFltn9nFzRfXn3u0ZV9U577SS7EmZwE= 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: ipv6: icmp: clear skb2->cb[] in ip6_err_gen_icmpv6_unreach() Sashiko AI-review observed: In ip6_err_gen_icmpv6_unreach(), the skb is an outer IPv4 ICMP error packet where its cb contains an IPv4 inet_skb_parm. When skb is cloned into skb2 and passed to icmp6_send(), it uses IP6CB(skb2). IP6CB interprets the IPv4 inet_skb_parm as an inet6_skb_parm. The cipso offset in inet_skb_parm.opt directly overlaps with dsthao in inet6_skb_parm at offset 18. If an attacker sends a forged ICMPv4 error with a CIPSO IP option, dsthao would be a non-zero offset. Inside icmp6_send(), mip6_addr_swap() is called and uses ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO). This would scan the inner, attacker-controlled IPv6 packet starting at that offset, potentially returning a fake TLV without checking if the remaining packet length can hold the full 18-byte struct ipv6_destopt_hao. Could mip6_addr_swap() then perform a 16-byte swap that extends past the end of the packet data into skb_shared_info? Should the cb array also be cleared in ip6_err_gen_icmpv6_unreach() and ip6ip6_err() to prevent this? This patch implements the first suggestion. I am not sure if ip6ip6_err() needs to be changed. A separate patch would be better anyway. The Linux kernel CVE team has assigned CVE-2026-43038 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 5.10.253 with commit c438ba010171b70bad22fc18b1d5bdc3627476e8 Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 5.15.203 with commit 0452b6526b2f54b2413b9cb4ff1ea2ac542c99c7 Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 6.1.168 with commit a4437faf135da293d16fcc4cc607316742bd0ebb Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 6.6.134 with commit 3d5127d998de617b130aae96b138dba22ac6a8a7 Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 6.12.81 with commit e41953e7d118e2702bcb217879c173d9d1d3cd4e Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 6.18.22 with commit a2edbb6393972a02114b6003953a5cef3104fada Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 6.19.12 with commit 1ceeebd5bd6d855b17a5df625109bfe29129d7cf Issue introduced in 3.13 with commit ca15a078bd907df5fc1c009477869c5cbde3b753 and fixed in 7.0 with commit 86ab3e55673a7a49a841838776f1ab18d23a67b5 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-43038 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/icmp.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/c438ba010171b70bad22fc18b1d5bdc3627476e8 https://git.kernel.org/stable/c/0452b6526b2f54b2413b9cb4ff1ea2ac542c99c7 https://git.kernel.org/stable/c/a4437faf135da293d16fcc4cc607316742bd0ebb https://git.kernel.org/stable/c/3d5127d998de617b130aae96b138dba22ac6a8a7 https://git.kernel.org/stable/c/e41953e7d118e2702bcb217879c173d9d1d3cd4e https://git.kernel.org/stable/c/a2edbb6393972a02114b6003953a5cef3104fada https://git.kernel.org/stable/c/1ceeebd5bd6d855b17a5df625109bfe29129d7cf https://git.kernel.org/stable/c/86ab3e55673a7a49a841838776f1ab18d23a67b5