From mboxrd@z Thu Jan 1 00:00:00 1970 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 308B5217646 for ; Wed, 26 Feb 2025 02:14:23 +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=1740536063; cv=none; b=jDjokEMuvDtslu8aBkpgtRkXMbDYWeNntYL34too9LhMCsMTt9LM5fnEH6nMUORPMicsXyMoEHUP0xCphamlc0OeUSseHUKwJsEBluO5sngxf3k+JDqoVv+G81ToCBurtna+LfQhPlDTUn8XlesGSVZFIoR27gFlu34ny7Hgzss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536063; c=relaxed/simple; bh=BRdcVZ4Ll3tYI4UnRSsCtqzhF2nNtgBJSzaqa1RTPsM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ScAeU9YY612sh09iCulCy3ylZTtjYPA9pamy4RAjLTPkG1HSk/on3Hq4kIOp7eunpspCuxCLGiISrB6iZ69e3gQx3J1rwmI5Q5At6H4PrEAcp12MSzybT6W7YXSozSLylpGfUVbimTG2JbVtsl8Ku8X+P0vKrtddPykJv+NU9DQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BPSwuHXn; 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="BPSwuHXn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E72C4CEDD; Wed, 26 Feb 2025 02:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536063; bh=BRdcVZ4Ll3tYI4UnRSsCtqzhF2nNtgBJSzaqa1RTPsM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BPSwuHXn+4PSSVNWbSvm51X8rrEN1Dl0bt0PyXYWIZ6e8jUQOobuUn56fwujMYea3 TYU2qZHNh8APVj8GSZjt7WIfn7zkyQa/jyE8B7TCmJudHanbg1+s2qzGQOUU+SjSGu DZJguIvntDFOcD/RvIbyyn4GZjaFK1yHNAZPkYAY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49442: drivers/base/node.c: fix compaction sysfs file leak Date: Wed, 26 Feb 2025 03:11:56 +0100 Message-ID: <2025022657-CVE-2022-49442-ae21@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=3600; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BRdcVZ4Ll3tYI4UnRSsCtqzhF2nNtgBJSzaqa1RTPsM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yr89UfY6F62/8MWKktsCD4/OKfPP7XhqknR1Z13Yy wORywr+dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEmpIY5idx6n9yXL9c7mhY 84KguvvXSjnnMTPMFXJyyv7Yv+PuLY7ZIj7BYaoKb0svAwA= 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: drivers/base/node.c: fix compaction sysfs file leak Compaction sysfs file is created via compaction_register_node in register_node. But we forgot to remove it in unregister_node. Thus compaction sysfs file is leaked. Using compaction_unregister_node to fix this issue. The Linux kernel CVE team has assigned CVE-2022-49442 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 4.9.318 with commit 39642b0feddb9c39faa6de469a94bfeb4dc0d3a9 Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 4.14.283 with commit 606732650a2c88e66c59c22dd5464ea0d820250e Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 4.19.247 with commit f76ddc8fcf6d81fe89bfa4d3efcbc4fe69a91d48 Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 5.4.198 with commit 386e69e068177ee91cac27f2f0e6ebda1515f5ca Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 5.10.121 with commit d8a5bdc767f17281da648555cdbd286f98fd98ee Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 5.15.46 with commit b3fcf1f583b1a0946d9d9bfb7362c9c186801775 Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 5.17.14 with commit 466134df7561aeb801baddf6666b512e0e1a1707 Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 5.18.3 with commit 6905be93d1ab54f73718047536fec0ca488d5315 Issue introduced in 2.6.35 with commit ed4a6d7f0676db50b5023cc01f6cda82a2f2a307 and fixed in 5.19 with commit da63dc84befaa9e6079a0bc363ff0eaa975f9073 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-49442 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/base/node.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/39642b0feddb9c39faa6de469a94bfeb4dc0d3a9 https://git.kernel.org/stable/c/606732650a2c88e66c59c22dd5464ea0d820250e https://git.kernel.org/stable/c/f76ddc8fcf6d81fe89bfa4d3efcbc4fe69a91d48 https://git.kernel.org/stable/c/386e69e068177ee91cac27f2f0e6ebda1515f5ca https://git.kernel.org/stable/c/d8a5bdc767f17281da648555cdbd286f98fd98ee https://git.kernel.org/stable/c/b3fcf1f583b1a0946d9d9bfb7362c9c186801775 https://git.kernel.org/stable/c/466134df7561aeb801baddf6666b512e0e1a1707 https://git.kernel.org/stable/c/6905be93d1ab54f73718047536fec0ca488d5315 https://git.kernel.org/stable/c/da63dc84befaa9e6079a0bc363ff0eaa975f9073