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 9E5841EFFB3 for ; Thu, 1 May 2025 14:18:48 +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=1746109128; cv=none; b=sKQNZQiI8sjHmMToQj++hZ0CARvwQoMBPS+M38ApeOhbWxfQCw9S2WvZZFIprbT//uKw+RRr5vGaA/xFG7TJMsl4/IhyHitqZ4cyiHLNBP2nray9N50ZHjWW0REeDVQcuIsVKfo8/2H2DRJVByQRwRlLqLdVXQgmme8Z7sDqWew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109128; c=relaxed/simple; bh=uSXTQyYgTbhqdzRiHBQFcD413a2qX+VNwzqxO/vIqVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TvC0ePmEOOhsqwo9dyA1Tn692l/9DgEst/69f7OSHf0h+QiJlAMzu3MOJzkR1OAAfCgYfH5hBi+BYxAkLKbt8o1GGqFVRgyY/1SeSjb92f/cdNpLVnMyz3jsC+lUkWFQJ+UvAd0MtRiEb0twmNzryRSc2E/DHBTj6yPjrUUhNJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mtz4BYCi; 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="mtz4BYCi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DCBBC4CEE3; Thu, 1 May 2025 14:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109128; bh=uSXTQyYgTbhqdzRiHBQFcD413a2qX+VNwzqxO/vIqVw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mtz4BYCiVlCxRVgeV3wAlCeTPlkAGGpkxn/ri5Dgd1Tg8uYyR13deUAFc/mztJ4LH sUHV8xz0EKyQdwf6sIID04nm49fGKmbptipByFFKnmamQIjpCpqzAd3fj5kXSDMZ0t C7PZ3VankctgR8+b61ouQ/Th1gbMNT+uiPjCElZU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49918: ipvs: fix WARNING in __ip_vs_cleanup_batch() Date: Thu, 1 May 2025 16:11:48 +0200 Message-ID: <2025050107-CVE-2022-49918-8541@gregkh> X-Mailer: git-send-email 2.49.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=3390; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pVCn0Yve5KrePb4qZXJgMiErf28c8UZiuzMf2m9egCY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDfutvBiW8X9mqVrzJvpe2T5v53Xrb7IduNYYanBRZ tqXnGL2jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI5kuGuWIZFxN+vAyOD/l1 YFmAL5vwlVuL1RgW7Dq3u//K33V6hlX7L6yZ1/b2O+t+cQA= 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: ipvs: fix WARNING in __ip_vs_cleanup_batch() During the initialization of ip_vs_conn_net_init(), if file ip_vs_conn or ip_vs_conn_sync fails to be created, the initialization is successful by default. Therefore, the ip_vs_conn or ip_vs_conn_sync file doesn't be found during the remove. The following is the stack information: name 'ip_vs_conn_sync' WARNING: CPU: 3 PID: 9 at fs/proc/generic.c:712 remove_proc_entry+0x389/0x460 Modules linked in: Workqueue: netns cleanup_net RIP: 0010:remove_proc_entry+0x389/0x460 Call Trace: __ip_vs_cleanup_batch+0x7d/0x120 ops_exit_list+0x125/0x170 cleanup_net+0x4ea/0xb00 process_one_work+0x9bf/0x1710 worker_thread+0x665/0x1080 kthread+0x2e4/0x3a0 ret_from_fork+0x1f/0x30 The Linux kernel CVE team has assigned CVE-2022-49918 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.39 with commit 61b1ab4583e275af216c8454b9256de680499b19 and fixed in 4.19.265 with commit f08ee2aa24c076f81d84e26e213d8c6f4efd9f50 Issue introduced in 2.6.39 with commit 61b1ab4583e275af216c8454b9256de680499b19 and fixed in 5.4.224 with commit 7effc4ce3d1434ce6ff286866585a6e905fdbfc1 Issue introduced in 2.6.39 with commit 61b1ab4583e275af216c8454b9256de680499b19 and fixed in 5.10.154 with commit 931f56d59c854263b32075bfac56fdb3b1598d1b Issue introduced in 2.6.39 with commit 61b1ab4583e275af216c8454b9256de680499b19 and fixed in 5.15.78 with commit 5ee2d6b726b0ce339e36569e5849692f4cf4595e Issue introduced in 2.6.39 with commit 61b1ab4583e275af216c8454b9256de680499b19 and fixed in 6.0.8 with commit e724220b826e008764309d2a1f55a9434a4e1530 Issue introduced in 2.6.39 with commit 61b1ab4583e275af216c8454b9256de680499b19 and fixed in 6.1 with commit 3d00c6a0da8ddcf75213e004765e4a42acc71d5d 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-2022-49918 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/netfilter/ipvs/ip_vs_conn.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/f08ee2aa24c076f81d84e26e213d8c6f4efd9f50 https://git.kernel.org/stable/c/7effc4ce3d1434ce6ff286866585a6e905fdbfc1 https://git.kernel.org/stable/c/931f56d59c854263b32075bfac56fdb3b1598d1b https://git.kernel.org/stable/c/5ee2d6b726b0ce339e36569e5849692f4cf4595e https://git.kernel.org/stable/c/e724220b826e008764309d2a1f55a9434a4e1530 https://git.kernel.org/stable/c/3d00c6a0da8ddcf75213e004765e4a42acc71d5d