Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758513; b=ry+YeDMZe3juVEYJqVhl7TxYeksGNKyiiu9dbcBQn0FAR5sucitXs7TlE7jnV13K5Oal jAZoqJ3IRNsqMyYpc3kEF5i8QkMZ6IxjbVL2IOI5uF7IgXLwVdavPxDVBMr/2sg/feXy2 PEcPGjZ9sXIvQwuTH4uFf8n6uOvlpzlLo3m91fq/ZxPAnWGbapS8egtR3nhWi6KoFIIEg 9xWFLM2juaLYs2P11HWaIwhf39pwKU1do8pxIK/MC1GqHbp/NhGnj+cTX+2gfYrjUsC3h 5VSjQ9DprTJbFiU09pBjrm5fkmGMWkdKS2vB8vXo9BZYPHiWwWZhi/0CiU1nfo2cZcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758513; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=oLLenAlQ7mcKPwjt8eszhntRlHnKU+4m9+ZDUjBahj4=; b=XbFnAou3fKDwiUIhcglAvK7YCDt0c/nBqhB617aRPv5WO+HeVIMeGTSm8/NxIqL8hQkJ qK6b+gN9XXgzoQSDvjuN3JQ9F/TsbkvD1M7hElRog7SnEfKd5j09ZSAl/bmb+Pj490vKd nkhKPW5VNpVKX4LiLfjUD/ztLFA00Tk5W9MKizdIMv/z7ZNJasElbyJk/Xd+P5kkKaVGX 8WkVOxFMSpujYB509bGHyJCh7YTW4wPkMi+2/kKXOrrnu07WP27Uemals26GKt6Np8vfX pk4xs8ll8lrZ5R69jYP7SO+KlUK3wq054AuL2bfNDBluE9Bci6LygC4m8jEePKqn9jg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qoM0nqKo; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AB4C606A31E for ; Fri, 23 Oct 2026 12:28:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qoM0nqKo Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48B471F01825; Fri, 23 Oct 2026 12:28:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758513; bh=oLLenAlQ7mcKPwjt8eszhntRlHnKU+4m9+ZDUjBahj4=; h=From:To:Cc:Subject:Date:Reply-To; b=qoM0nqKo748Xn4K4pRrPyNn38ZVQ3aX0hGQhy2UnEb8YKkFINNZhsmSajo9yz/2ID 78sL0uwDqXKBe2GkMi+OyUHzegkK2QJVW1nY5Su7w/SrIeE1rzd9nWM+2nFASRL4U3 AGVrGkT/2DS9IWq9u/90qv7z4KfUix9MmbcWzmI0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98968: amt: send the relay's General Query directly from the receive path Date: Fri, 23 Oct 2026 14:19:30 +0200 Message-ID: <2026102310-CVE-2026-98968-a9be@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4574; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4MuRb7wMcwaRezYa+fW/yes3SEgMd6Z8uqTXoZDda2c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A/ZJak9nPZphqVcuXe0XeObyk9v+DWIzV4jx8N6Ke ehl2hvfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxu8gwT6FPvpfxxJ+Hfsub jsrOPbb7qJzKeYYFa930og7fvePAIjzNcfO00tSTE7gVAA== 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: amt: send the relay's General Query directly from the receive path An skb queued in a qdisc can outlive the tunnel it references through a raw pointer in skb->cb. For example, with igmp_qrv set to 1 on the relay a tunnel lives for 135s, so a netem delay of 180s on the amt device outlives it; when the tunnel expires and is freed, the subsequent dequeue triggers a use-after-free in amt_dev_xmit(). BUG: KASAN: slab-use-after-free in amt_dev_xmit+0x2763/0x2e20 Call Trace: amt_dev_xmit+0x2763/0x2e20 [drivers/net/amt.c:1262] dev_hard_start_xmit+0x22f/0x620 sch_direct_xmit+0x12e/0xac0 netem_dequeue+0x333/0xc50 net_tx_action+0x35c/0xa60 amt_send_igmp_gq() and amt_send_mld_gq() are only called from amt_request_handler(), inside the rcu_read_lock_bh() section of amt_rcv(). amt_request_handler() already has the tunnel the query is for: it found or created it inside that section. Queuing the query with dev_queue_xmit() only leads back into amt_dev_xmit(), which strips the Ethernet header and calls amt_send_membership_query() for that tunnel. Make that call directly from the two senders instead, the same way amt_send_advertisement() transmits from the receive path. The query never waits in a qdisc, the tunnel is only dereferenced inside the RCU section that found or created it, and nothing is stored in skb->cb, so no lookup or refcount is needed. Remove the query branch of amt_dev_xmit(), amt_skb_cb() and struct amt_skb_cb, which have no users left. Behaviour changes: - The relay's own General Queries no longer pass through the amt device's egress path: its qdisc, tc egress (clsact/tcx), the netfilter egress hook and packet taps. They are still visible as UDP on the underlay. - A query that is sent successfully is no longer counted as tx_dropped. The old query branch left through the unlock label, which counted every sent query as dropped. - A query that reaches amt_dev_xmit() on a relay from elsewhere, such as a userspace querier, is now dropped at the IGMP/MLD type switch. Before, it trusted whatever skb->cb held, and a NULL tunnel hit the WARN_ON(1). The Linux kernel CVE team has assigned CVE-2026-98968 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit cbc21dc1cfe949e37b2a54c71511579f1899e8d4 and fixed in 6.6.160 with commit 95114e421196250e3d9662f12df442799477d3c3 Issue introduced in 5.16 with commit cbc21dc1cfe949e37b2a54c71511579f1899e8d4 and fixed in 6.12.113 with commit e7183b7d518ce8b3e1f7284f9881d7a87569df14 Issue introduced in 5.16 with commit cbc21dc1cfe949e37b2a54c71511579f1899e8d4 and fixed in 6.18.57 with commit 181cb48c1e9af6b402567e132f879f89d1c54131 Issue introduced in 5.16 with commit cbc21dc1cfe949e37b2a54c71511579f1899e8d4 and fixed in 7.2.11 with commit e7ea63b4195a150604993044ab574d8240f2a399 Issue introduced in 5.16 with commit cbc21dc1cfe949e37b2a54c71511579f1899e8d4 and fixed in 7.3 with commit afae89de73dd693cfa329580ba0fba63bd3f0a11 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-98968 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: drivers/net/amt.c include/net/amt.h 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/95114e421196250e3d9662f12df442799477d3c3 https://git.kernel.org/stable/c/e7183b7d518ce8b3e1f7284f9881d7a87569df14 https://git.kernel.org/stable/c/181cb48c1e9af6b402567e132f879f89d1c54131 https://git.kernel.org/stable/c/e7ea63b4195a150604993044ab574d8240f2a399 https://git.kernel.org/stable/c/afae89de73dd693cfa329580ba0fba63bd3f0a11