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 787C031B815 for ; Mon, 15 Sep 2025 14:12:53 +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=1757945573; cv=none; b=onNcrYfQXJoW6/sOJdN6qmfGS73WFFkyFEj/xUANz4Yn1/xGVs0qUrkKuH9zLJ937ziyrGB6nWfjU2qFByXxCxQLZlfCt9iCs2DbgoHganeMi8U9lZkAIvS1DGIJbM6let2s5L+FqE/mRe4ppHC47Gyf+rKInTxYbkMHCgFhrQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945573; c=relaxed/simple; bh=+GLf+IYdUSgYyNToWhjVAFhUDE8PHVlwgPeteB071CI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eQr/I1OHRNxucolJ59g9VXGNtKt/3/Bg8MAslH6CxFzm0SkqOGSV01pincDy1qQ4unFIGzTsVamdNx0StuMbfA2yXi+CdUPn3cxjoPAVUdOd1sryvHTgKsNx/sAyP40CURnGVH942kMf60kgFOMrUTiddSOBa39yNmq/xyN/IIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sgu6n5Ld; 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="sgu6n5Ld" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CC23C4CEF1; Mon, 15 Sep 2025 14:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945572; bh=+GLf+IYdUSgYyNToWhjVAFhUDE8PHVlwgPeteB071CI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sgu6n5Ldy7JMGPeJpYtwOIPG+oyopEgj2N2hVxuxyC7un3tUOjB473Fm+SyN++t8P 8fTy8UracAXCxrKL4Ug16eSNcR5hgLiIuxgb9GuMPvUj5UTekN6aNUkN3fUopJ3x2F 05C9Q4BfMmCWBj5zXowDZ7Ep635vIuOL8OF8di9U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53190: vxlan: Fix memory leaks in error path Date: Mon, 15 Sep 2025 16:02:44 +0200 Message-ID: <2025091558-CVE-2023-53190-0dfe@gregkh> X-Mailer: git-send-email 2.51.0 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=4941; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D3nQNc1TRy3a0mN8w9QKC/PGoKC6UK+LqTPEjSMQ8NM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZMLEH6nuqPtw/GrSgotv/PT/G7+P55rZmd8Sef1VZ Y7GVhG+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI1R6GWcx9072POsX9sFJ7 9jZ3UzCP7lI2b4b5fq68Z8LM1OYdWvVM/+yltYbHb4bNBwA= 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: Fix memory leaks in error path The memory allocated by vxlan_vnigroup_init() is not freed in the error path, leading to memory leaks [1]. Fix by calling vxlan_vnigroup_uninit() in the error path. The leaks can be reproduced by annotating gro_cells_init() with ALLOW_ERROR_INJECTION() and then running: # echo "100" > /sys/kernel/debug/fail_function/probability # echo "1" > /sys/kernel/debug/fail_function/times # echo "gro_cells_init" > /sys/kernel/debug/fail_function/inject # printf %#x -12 > /sys/kernel/debug/fail_function/gro_cells_init/retval # ip link add name vxlan0 type vxlan dstport 4789 external vnifilter RTNETLINK answers: Cannot allocate memory [1] unreferenced object 0xffff88810db84a00 (size 512): comm "ip", pid 330, jiffies 4295010045 (age 66.016s) hex dump (first 32 bytes): f8 d5 76 0e 81 88 ff ff 01 00 00 00 00 00 00 02 ..v............. 03 00 04 00 48 00 00 00 00 00 00 01 04 00 01 00 ....H........... backtrace: [] kmalloc_trace+0x2a/0x60 [] vxlan_vnigroup_init+0x4c/0x160 [] vxlan_init+0x1ae/0x280 [] register_netdevice+0x57a/0x16d0 [] __vxlan_dev_create+0x7c7/0xa50 [] vxlan_newlink+0xd6/0x130 [] __rtnl_newlink+0x112b/0x18a0 [] rtnl_newlink+0x6c/0xa0 [] rtnetlink_rcv_msg+0x43f/0xd40 [] netlink_rcv_skb+0x170/0x440 [] netlink_unicast+0x53f/0x810 [] netlink_sendmsg+0x958/0xe70 [] ____sys_sendmsg+0x78f/0xa90 [] ___sys_sendmsg+0x13a/0x1e0 [] __sys_sendmsg+0x11c/0x1f0 [] do_syscall_64+0x38/0x80 unreferenced object 0xffff88810e76d5f8 (size 192): comm "ip", pid 330, jiffies 4295010045 (age 66.016s) hex dump (first 32 bytes): 04 00 00 00 00 00 00 00 db e1 4f e7 00 00 00 00 ..........O..... 08 d6 76 0e 81 88 ff ff 08 d6 76 0e 81 88 ff ff ..v.......v..... backtrace: [] __kmalloc_node+0x4e/0x90 [] kvmalloc_node+0xa6/0x1f0 [] bucket_table_alloc.isra.0+0x83/0x460 [] rhashtable_init+0x43b/0x7c0 [] vxlan_vnigroup_init+0x6c/0x160 [] vxlan_init+0x1ae/0x280 [] register_netdevice+0x57a/0x16d0 [] __vxlan_dev_create+0x7c7/0xa50 [] vxlan_newlink+0xd6/0x130 [] __rtnl_newlink+0x112b/0x18a0 [] rtnl_newlink+0x6c/0xa0 [] rtnetlink_rcv_msg+0x43f/0xd40 [] netlink_rcv_skb+0x170/0x440 [] netlink_unicast+0x53f/0x810 [] netlink_sendmsg+0x958/0xe70 [] ____sys_sendmsg+0x78f/0xa90 The Linux kernel CVE team has assigned CVE-2023-53190 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.0.19 with commit 75c1ab900f7cf0485f0be1607c79c55f51faaa90 Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.1.5 with commit 5896f55810680391a32652ca2b91245a05c11e22 Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.2 with commit 06bf62944144a92d83dd14fd1378d2a288259561 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-2023-53190 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/75c1ab900f7cf0485f0be1607c79c55f51faaa90 https://git.kernel.org/stable/c/5896f55810680391a32652ca2b91245a05c11e22 https://git.kernel.org/stable/c/06bf62944144a92d83dd14fd1378d2a288259561