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 727133C73DD for ; Fri, 1 May 2026 14:20:59 +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=1777645259; cv=none; b=PbD89df7DdD1KnKuosWfQjZdV9EWaVcrUhDWww03MnmhBxDRdkLjHirOVHYuSrkMsqmrcyR65CCpw6lBn0Cg6ag7byzZ8j78b6XM5i53ABE4brWwlYEAE79+tl9p7AwS+QlW+KTs4dPs6WoNenXYCwpQQy0f3qAEoSfqD9kG2FU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645259; c=relaxed/simple; bh=77pbGCaK66OU08927ge0b8CsmPji6Zv2hGnSWeR5zrc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KCMZRhRDaVWDzzm0cMg41L67SxAHoN2F8s/ihyZyRm89OE86fVA36UE1VBBf6p0Y1aEBTxlp5XUjdrtNyPsMdEV74+/S9B4aMdUwM9RQ6HkI+G7UTaNVsYgttBhxrLII/Y0Rt4ZwFvU65cttmOnPIvosMbhFVBtmlLDy4F0Bemc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tRcFkebe; 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="tRcFkebe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D6C2C2BCB4; Fri, 1 May 2026 14:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645259; bh=77pbGCaK66OU08927ge0b8CsmPji6Zv2hGnSWeR5zrc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=tRcFkebepz4XI7Ipcn+VmabN4trcqYFkbqKg0ohPNzEuqh2VXntAafcqnAGGYjlYY RnBSE9s8VvfF1yGcVOqIn3sUnh+y1wQuCVWK8uI+9HbGXne76zFB04WRoaVwDctoeM 1475SWPcvdEF6qaA8ECq7dImR5ZnwWN/ofWeVVIE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43037: ip6_tunnel: clear skb2->cb[] in ip4ip6_err() Date: Fri, 1 May 2026 16:16:10 +0200 Message-ID: <2026050102-CVE-2026-43037-0346@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=3877; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SmWQ089UQxZe9WVWeaxHWFng7AzL/aS6kzsKA7xB3Tw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftqZ7s50wj02/kzHNXIN543ZhjxV27fl7mdjNfRdze j2a/WB1RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkcR3DgumT7j1ND1nG26rc c5Sx+vjZpdWivxgWXN22JkF1/66tpj3WF0yftMx7Ifj3DQA= 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: ip6_tunnel: clear skb2->cb[] in ip4ip6_err() Oskar Kjos reported the following problem. ip4ip6_err() calls icmp_send() on a cloned skb whose cb[] was written by the IPv6 receive path as struct inet6_skb_parm. icmp_send() passes IPCB(skb2) to __ip_options_echo(), which interprets that cb[] region as struct inet_skb_parm (IPv4). The layouts differ: inet6_skb_parm.nhoff at offset 14 overlaps inet_skb_parm.opt.rr, producing a non-zero rr value. __ip_options_echo() then reads optlen from attacker-controlled packet data at sptr[rr+1] and copies that many bytes into dopt->__data, a fixed 40-byte stack buffer (IP_OPTIONS_DATA_FIXED_SIZE). To fix this we clear skb2->cb[], as suggested by Oskar Kjos. Also add minimal IPv4 header validation (version == 4, ihl >= 5). The Linux kernel CVE team has assigned CVE-2026-43037 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 5.10.253 with commit ea9f65b27c8404e164848ebff1443310fd187629 Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 5.15.203 with commit d6621f60192fe10c047a4487be42a6f4c150707f Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 6.1.168 with commit 2cc6e3b0fe0f0242d1f530a93a4924f48ab85ba5 Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 6.6.134 with commit a0c4ce9900a108eaf55d0f3b399cb55999647d39 Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 6.12.81 with commit 1063515ce15ff31065c4e7f8265f4c2fd3c54876 Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 6.18.22 with commit 590f622669b97eaf7b57a1de7b0a6e68c5d8b2c3 Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 6.19.12 with commit 4a622658f384b03560834cbe8ffcfe69a278f7c8 Issue introduced in 2.6.22 with commit c4d3efafcc933fd2ffd169d7dc4f980393a13796 and fixed in 7.0 with commit 2edfa31769a4add828a7e604b21cb82aaaa05925 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-43037 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/ip6_tunnel.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/ea9f65b27c8404e164848ebff1443310fd187629 https://git.kernel.org/stable/c/d6621f60192fe10c047a4487be42a6f4c150707f https://git.kernel.org/stable/c/2cc6e3b0fe0f0242d1f530a93a4924f48ab85ba5 https://git.kernel.org/stable/c/a0c4ce9900a108eaf55d0f3b399cb55999647d39 https://git.kernel.org/stable/c/1063515ce15ff31065c4e7f8265f4c2fd3c54876 https://git.kernel.org/stable/c/590f622669b97eaf7b57a1de7b0a6e68c5d8b2c3 https://git.kernel.org/stable/c/4a622658f384b03560834cbe8ffcfe69a278f7c8 https://git.kernel.org/stable/c/2edfa31769a4add828a7e604b21cb82aaaa05925