Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DFFCE244692 for ; Sun, 18 Oct 2026 15:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337407; cv=none; b=bBSaXLz9cvzp1S9cCnZf44R6uXpcIGIT0Cl1chXTvWMFy69fAxMokzufaBNihXg1T9T7eGT2Za1QEm96mrqcr2LLEuBV1Ik+5a5pLE9ts/OcG7SuJ12MmFqeLebFrsAmpiA41oDM2IkOX7ijjxwZsSEG6a8GhoKT/d3ZhFZ7OCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337407; c=relaxed/simple; bh=znQBGrijaAzfIKEMPkjrodwbDvfvsUc2cFxSdTKz7ws=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ez9LrNxiBzpKL0WqSSEWP9Vw+vk4VnKUSEX6H4rDtXvXwbjTODBa0i16vgGXZ2iMeT2JBVyeTCpkkJdpWcKSKVIjwSfOKnLLcMrvYVrS00dbUdENaw8/fdkgFByWDf6xqJeZ3GTNlWjh9KZoVeEb7Cuc/L3sSYkmlXwUwyGN2oA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ss77fXGz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ss77fXGz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFA701F000C4; Sun, 18 Oct 2026 15:30:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337404; bh=HE6u2M+KT+rZ2Q/5gsLoLHeLkLHSE/p3TBREgsoJer8=; h=From:To:Cc:Subject:Date:Reply-To; b=Ss77fXGzhC8ljDlP6scIXeoU+B3GIhXBOzik+cowo7Tw6eFmrRzeYzBNSq99pZyxJ AU7t27I4qGHiQMOA21I5mj/ZnW2aXKb21FtDVW/naqD+3EA6DuWE3Ii+Fv91waTQd9 n1aKwNLkrWglPUOHIjEPFjkFRBIrIqTumqreJlOg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98532: ipv6: do not let ipv6_find_hdr() return an offset past the packet end Date: Sun, 18 Oct 2026 17:16:36 +0200 Message-ID: <2026101824-CVE-2026-98532-0a01@gregkh> X-Mailer: git-send-email 2.56.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=4604; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=na++IN9ZpNWHYUX1AnFoj/MWZEfmWItLxDJL1ByAjQ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHvXUS/sI/7JqyTmq1/Il72FJqYVTzkHrpkPtnTvKp Tc+yv3YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5dJVhfnTchqvTDfvPFm5Y 3r160+dE5SojXYZ5lhwcnRbrppVe/NrQIpDgLVKfW7QfAA== 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: do not let ipv6_find_hdr() return an offset past the packet end ipv6_find_hdr() walks the extension header chain, skipping each header by the length that header itself declares. ipv6_optlen() returns up to 2048, and the skip is never checked against skb->len, so the offset stored in *offset can point past the end of the packet. openvswitch installs that offset as the transport header, and update_ipv6_checksum() then reads and writes the transport checksum field out of bounds: BUG: KASAN: slab-use-after-free in inet_proto_csum_replace16+0x445/0x470 Read of size 2 at addr ffff88810b754b06 by task ovs_ipv6_oob/629 CPU: 4 UID: 1000 PID: 629 Comm: ovs_ipv6_oob Tainted: G N 7.3.0-rc3+ #348 Call Trace: inet_proto_csum_replace16+0x445/0x470 set_ipv6_addr+0x3dd/0x460 do_execute_actions+0x6a3d/0x7c40 ovs_execute_actions+0xfd/0x480 ovs_packet_cmd_execute+0xc38/0xf20 genl_rcv_msg+0x59e/0x870 netlink_rcv_skb+0x18b/0x450 genl_rcv+0x2d/0x40 netlink_unicast+0x6bc/0xa20 The buggy address belongs to the object at ffff88810b754980 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 390 bytes inside of freed 704-byte region [ffff88810b754980, ffff88810b754c40) Other callers use that offset too, so bound it here rather than in one caller. Reject a header whose declared length does not fit in the packet. ipv6_find_hdr() already fails with -EBADMSG on a malformed chain, so this adds no new failure mode. The Linux kernel CVE team has assigned CVE-2026-98532 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 5.10.271 with commit ca96b38730e31357ef4a9d76af1336958ac670d7 Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 5.15.222 with commit 531255de8971c06d5d5986f85fdc2525d707ba71 Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 6.1.189 with commit 543354c6efb27eae3372a3a9674aeaa2a86e2b2c Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 6.6.158 with commit dc92cb972e86790b8078337ec41015b748b8f8e5 Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 6.12.112 with commit 1c70275ca87e769e1a52abc644d61372d8c016cb Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 6.18.55 with commit 1d42828565889632068fbc2983c34d57c66af4e0 Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 7.2.9 with commit 4254d5878c320c19961dd0b8e1d0aca4800d8b7d Issue introduced in 3.8 with commit f8f626754ebeca613cf1af2e6f890cfde0e74d5b and fixed in 7.3-rc5 with commit ee319bd3a0e976af5087cbe59ebc50a66f31d202 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-98532 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/exthdrs_core.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/ca96b38730e31357ef4a9d76af1336958ac670d7 https://git.kernel.org/stable/c/531255de8971c06d5d5986f85fdc2525d707ba71 https://git.kernel.org/stable/c/543354c6efb27eae3372a3a9674aeaa2a86e2b2c https://git.kernel.org/stable/c/dc92cb972e86790b8078337ec41015b748b8f8e5 https://git.kernel.org/stable/c/1c70275ca87e769e1a52abc644d61372d8c016cb https://git.kernel.org/stable/c/1d42828565889632068fbc2983c34d57c66af4e0 https://git.kernel.org/stable/c/4254d5878c320c19961dd0b8e1d0aca4800d8b7d https://git.kernel.org/stable/c/ee319bd3a0e976af5087cbe59ebc50a66f31d202