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 9F0E41A9B48 for ; Thu, 27 Feb 2025 02:19:05 +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=1740622745; cv=none; b=FwuN8df3nzCB7SSD0NKDv+qcEwDYUmQaKSxaZ2Q5o9CnlGQ/H85ygn2Fza7rw30w/WzP4DHn88LNg5BtisnlB0rRjKtwrkjvkaGnf55MQaZBzifqbdz0ExiftWdBxzMVLKUf+txRp9KQC3x6jbkp4dwTLCFE/1wBQrnBWQcR+1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622745; c=relaxed/simple; bh=eK9R2l3LlwwYFcJ0ju4R318nMYAfxlD6BmgMSsg06c8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZScy018TAWi/QqOrDQ0K40xDnnoHRgxfJM0qx9gNPs5+4Qu8rBvcnxWvXnbiXsX6HQgoL3i9E572f/6ytBCA/PLI6r5XyfUwma6liKwjGctcuW1Sh2nYmKHiEEB3Lfr8hRQ4jAk5ksNgaDTZxZLoWpQN1jaNRQcnlmJKvVJeek8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JxqEdjm4; 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="JxqEdjm4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43B1FC4CEEE; Thu, 27 Feb 2025 02:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622745; bh=eK9R2l3LlwwYFcJ0ju4R318nMYAfxlD6BmgMSsg06c8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JxqEdjm4wH8P5Uw3mImjCRNHYy99pO8bAddKfE/QekXzorR5VdKQepxUH6ZSKDPog W0ygz2Z/xKNmNOF5g+UieEdteV6/6liFisNLO8mjHobJJbyMhqiQVStcRjYP2lhcv8 aL+0zRVeStj43hbkAqc0pzGj7v+zp6x/kWvSm9Oo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21790: vxlan: check vxlan_vnigroup_init() return value Date: Wed, 26 Feb 2025 18:17:46 -0800 Message-ID: <2025022609-CVE-2025-21790-af3e@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=4533; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eK9R2l3LlwwYFcJ0ju4R318nMYAfxlD6BmgMSsg06c8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T6vmTl1+xGjVrjdm5/99LheLivaadE8jdZbxHE3h2 dvnRcvkdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEpikwzPd/dnNq0NHtOytv 6U04HpGSPydZ4S7DfD9Tq6OWfvw6PaeuVdpevOCiyKysCwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: vxlan: check vxlan_vnigroup_init() return value vxlan_init() must check vxlan_vnigroup_init() success otherwise a crash happens later, spotted by syzbot. Oops: general protection fault, probably for non-canonical address 0xdffffc000000002c: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000160-0x0000000000000167] CPU: 0 UID: 0 PID: 7313 Comm: syz-executor147 Not tainted 6.14.0-rc1-syzkaller-00276-g69b54314c975 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:vxlan_vnigroup_uninit+0x89/0x500 drivers/net/vxlan/vxlan_vnifilter.c:912 Code: 00 48 8b 44 24 08 4c 8b b0 98 41 00 00 49 8d 86 60 01 00 00 48 89 c2 48 89 44 24 10 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 4d 04 00 00 49 8b 86 60 01 00 00 48 ba 00 00 00 RSP: 0018:ffffc9000cc1eea8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8672effb RDX: 000000000000002c RSI: ffffffff8672ecb9 RDI: ffff8880461b4f18 RBP: ffff8880461b4ef4 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000020000 R13: ffff8880461b0d80 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fecfa95d6c0(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fecfa95cfb8 CR3: 000000004472c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vxlan_uninit+0x1ab/0x200 drivers/net/vxlan/vxlan_core.c:2942 unregister_netdevice_many_notify+0x12d6/0x1f30 net/core/dev.c:11824 unregister_netdevice_many net/core/dev.c:11866 [inline] unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11736 register_netdevice+0x1829/0x1eb0 net/core/dev.c:10901 __vxlan_dev_create+0x7c6/0xa30 drivers/net/vxlan/vxlan_core.c:3981 vxlan_newlink+0xd1/0x130 drivers/net/vxlan/vxlan_core.c:4407 rtnl_newlink_create net/core/rtnetlink.c:3795 [inline] __rtnl_newlink net/core/rtnetlink.c:3906 [inline] The Linux kernel CVE team has assigned CVE-2025-21790 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.1.129 with commit 79aea5e55156c87dc570e43fcd8bba01b9d6ab3f Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.6.79 with commit a303649b99b64858d62ce7428125d8e71675d2b6 Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.12.16 with commit e860f847787fbbf0d8dacd638c019c7c3d4a9bd3 Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.13.4 with commit 3215f5aafc49aaa993991633833854694e73b439 Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.14-rc3 with commit 5805402dcc56241987bca674a1b4da79a249bab7 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-2025-21790 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_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/79aea5e55156c87dc570e43fcd8bba01b9d6ab3f https://git.kernel.org/stable/c/a303649b99b64858d62ce7428125d8e71675d2b6 https://git.kernel.org/stable/c/e860f847787fbbf0d8dacd638c019c7c3d4a9bd3 https://git.kernel.org/stable/c/3215f5aafc49aaa993991633833854694e73b439 https://git.kernel.org/stable/c/5805402dcc56241987bca674a1b4da79a249bab7