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 DA82F35DA6D for ; Thu, 24 Sep 2026 15:55:50 +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=1790265352; cv=none; b=tzNJPIxER/X3b76/MVWGkPUm9o49VzPWgMi6ZYMObxJPSuuQBjEWDYMF9EONHdRJnh6b84If174wuWnJADc02rSiXi7QkCtWcO9dwR6aKf8n2hpKOtV0bDvN0jRiHR9/CqaxMnxp7lFOtd1dl5Lca0OFSQm1x4fzQbS2o9kKSJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265352; c=relaxed/simple; bh=R5xoU3I19uZ5w+DFNgEZASh4mk942iL6zIvL0iLYQR0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ojl9TN81P9/kqEaO4S3bWuQsXW0eYKhgRqJxC6K12T2dGYIZWBStUv2XJV4EMqjWtwqaq4Tyk3VUW5KCxxY7g/Y/8m4OitrgsCKj0nENmXBOwqIVYvV69w/kdeMdZHMXHyaJ6XH/Xw5LMmFPHx0atJ+A1ZJNdizr1Q65Ke7wr2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q+MUcVe6; 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="q+MUcVe6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2B351F00893; Thu, 24 Sep 2026 15:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790265350; bh=34ZT70gEOVOdS6nTT/PuQarYf/R2sGK/of6Q3i2jI2c=; h=From:To:Cc:Subject:Date:Reply-To; b=q+MUcVe6/5unRGHfN+vALrWmEdrd4CdrQAlci6alVjbM8MnPKRwcL58P9kHLn72Eg tHAQ+6DhKAzuTZbpmDVJvkbWRH8Z/7dzrElrJUPaK7Bi4IGZFB+uzGjHj4VwQV/m/v BjfsHdD+RP3oWBl9dnmi4GzoUoNweNKASwHHVpoU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93250: vxlan: mdb: Fix use-after-free in vxlan_mdb_flush() Date: Thu, 24 Sep 2026 17:51:10 +0200 Message-ID: <2026092407-CVE-2026-93250-b1a3@gregkh> X-Mailer: git-send-email 2.55.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=4900; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wRSnRYCInIYBe57/q4YLIN1QtKxumcwzkgbPk2cTBOI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlb3V5/+34omE2ZIdSni93B3D7m45arTY+ZzvrVXukOE r90PqG5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiJckw360gqT5rY21ckbyo xxe9+lIpLv8XDAvmpMZa2quKlPqb7TDbt+bzf3vmKecA 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: vxlan: mdb: Fix use-after-free in vxlan_mdb_flush() vxlan_mdb_flush() iterates over the MDB entries using hlist_for_each_entry_safe(), which only tolerates the removal of the current entry. Contrary to the comment above the loop, the removal of an entry can trigger the removal of another entry. Flushing the remotes of a (*, G) entry also removes the (S, G) entries that were created for its source list, once they are left without remotes: vxlan_mdb_remotes_flush() -> vxlan_mdb_remote_del() -> vxlan_mdb_remote_srcs_del() -> vxlan_mdb_remote_src_del() -> vxlan_mdb_remote_src_fwd_del() -> __vxlan_mdb_del() -> vxlan_mdb_entry_put() Such an entry can be located after the (*, G) entry in the list, as vxlan_mdb_entry_get() returns an existing entry without moving it to the head of the list. This order is obtained by adding the (S, G) entry before the (*, G) entry, the latter with NLM_F_REPLACE, as the addition of the source otherwise fails with -EEXIST. The (S, G) entry is then the entry saved by hlist_for_each_entry_safe() and it is freed while the (*, G) entry is processed. The next iteration calls hlist_del() on it again, writing LIST_POISON1 to LIST_POISON2 [1]. Besides device deletion, the flush is also reachable from RTM_DELMDB with NLM_F_BULK. Fix by re-reading the next entry after the remotes were flushed. The current entry cannot be removed by this flush, as source lists can only be configured on (*, G) entries and the removed entries are (S, G) entries. It is therefore still linked and its next pointer reflects the removals. [1] BUG: KASAN: wild-memory-access in vxlan_mdb_entry_put.part.0+0x328/0x588 Write of size 8 at addr dead000000000122 by task ip/327 CPU: 3 UID: 1000 PID: 327 Comm: ip Not tainted 7.2.0-rc7 #2 PREEMPT Call trace: vxlan_mdb_entry_put.part.0+0x328/0x588 vxlan_mdb_flush+0x1d8/0x25c vxlan_mdb_fini+0x8c/0x100 vxlan_uninit+0x1c/0x7c unregister_netdevice_many_notify+0x954/0xd4c rtnl_dellink+0x210/0x530 rtnetlink_rcv_msg+0x434/0x4d0 netlink_rcv_skb+0xc4/0x204 rtnetlink_rcv+0x18/0x24 netlink_unicast+0x4b8/0x548 netlink_sendmsg+0x29c/0x560 ____sys_sendmsg+0x390/0x3ec ___sys_sendmsg+0x114/0x188 __sys_sendmsg+0xf0/0x178 __arm64_sys_sendmsg+0x48/0x60 invoke_syscall.constprop.0+0x58/0x180 el0_svc_common.constprop.0+0x74/0x140 do_el0_svc+0x30/0x40 el0_svc+0x38/0x98 el0t_64_sync_handler+0xa0/0xe4 el0t_64_sync+0x198/0x19c The Linux kernel CVE team has assigned CVE-2026-93250 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit a3a48de5eade770e911d35291217bdd69ce04ef1 and fixed in 6.6.157 with commit f8a9b988e7a7bc674e74e8c901794d792c35689e Issue introduced in 6.4 with commit a3a48de5eade770e911d35291217bdd69ce04ef1 and fixed in 6.12.110 with commit c7dc26d06f90ca11bbd6114f6a62a67d038816c7 Issue introduced in 6.4 with commit a3a48de5eade770e911d35291217bdd69ce04ef1 and fixed in 6.18.52 with commit 3e6b705bc162fc7257645725a7d2cf6c71250318 Issue introduced in 6.4 with commit a3a48de5eade770e911d35291217bdd69ce04ef1 and fixed in 7.2.6 with commit f26400b325bdc2868e40612c4804c82cf8ba6275 Issue introduced in 6.4 with commit a3a48de5eade770e911d35291217bdd69ce04ef1 and fixed in 7.3-rc1 with commit bc2dc66a6693a78f8c1e6ca2dbebd50f16e2c366 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-93250 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/vxlan/vxlan_mdb.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/f8a9b988e7a7bc674e74e8c901794d792c35689e https://git.kernel.org/stable/c/c7dc26d06f90ca11bbd6114f6a62a67d038816c7 https://git.kernel.org/stable/c/3e6b705bc162fc7257645725a7d2cf6c71250318 https://git.kernel.org/stable/c/f26400b325bdc2868e40612c4804c82cf8ba6275 https://git.kernel.org/stable/c/bc2dc66a6693a78f8c1e6ca2dbebd50f16e2c366