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 41DA0481D1 for ; Fri, 3 May 2024 17:46:54 +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=1714758414; cv=none; b=MKE+c6MuvycaLIIgl4mbbozZBowBIwQzxx4sfazJOYh5fkJX4Za3XzKglhJ2GEaO+H3hsaP1xZp0LcKzLVsfq03FJZb41q8LNWcyrc+IufO+Sn6ctQAt+rBSy3rEbLgi81YvBPFIXSL4AZpvkz7Vwx8JICwynfqWhYnIoCED/eE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758414; c=relaxed/simple; bh=MuEchsGM1f6i65BYUBlXaK6h3myKPfYAxambsKpqO28=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N17TOtsn3vQ6OCJbCFGe4RsIp1s4b82SWWteNyUaRMPDv+X2CLtoI3wwMT/AOK8PwgtWczCYwR23iIzuea/YIWwuBVYUiKNkHrgiJplrNERYULGIiaiXZdR3PnfPe/Zl/bVBnCdqh/qs2VoIsBOHqu9dPlhzem62belPW70Axrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XHsrBXV2; 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="XHsrBXV2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C80C1C116B1; Fri, 3 May 2024 17:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714758414; bh=MuEchsGM1f6i65BYUBlXaK6h3myKPfYAxambsKpqO28=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XHsrBXV2vyylnUHVmLOEnxiqXSrCxMQUlwOUMSTu6Ycxnr1qyiZUZ/FpntMkiuzr8 ZCtJzHpak4NCbPoBT0kpDa+joVdGEiFjaNiGqprgAn+9KN2JmXgHHuVt24PrwKaJZ2 kYsA/S5bLljAjj8KaGzExXjJpgjN5dtyXFRmsASI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48699: sched/debug: fix dentry leak in update_sched_domain_debugfs Date: Fri, 3 May 2024 19:45:55 +0200 Message-ID: <2024050349-CVE-2022-48699-8b9b@gregkh> X-Mailer: git-send-email 2.45.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=1968; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MuEchsGM1f6i65BYUBlXaK6h3myKPfYAxambsKpqO28=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmmSme7Vt6xMHg0d+aFCxPmaZp/5nnyao+AQHOw+nYxs /sL+nKsOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi0psYZjGtKWDSPVOQ5PYq 6PQX5/cNEez+zxnmV7x0MNgUMCn68/zmzQH3EqL9HM22AQA= 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: sched/debug: fix dentry leak in update_sched_domain_debugfs Kuyo reports that the pattern of using debugfs_remove(debugfs_lookup()) leaks a dentry and with a hotplug stress test, the machine eventually runs out of memory. Fix this up by using the newly created debugfs_lookup_and_remove() call instead which properly handles the dentry reference counting logic. The Linux kernel CVE team has assigned CVE-2022-48699 to this issue. Affected and fixed versions =========================== Fixed in 5.15.68 with commit 26e9a1ded892 Fixed in 5.19.9 with commit 0c32a93963e0 Fixed in 6.0 with commit c2e406596571 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-48699 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: kernel/sched/debug.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/26e9a1ded8923510e5529fbb28390b22228700c2 https://git.kernel.org/stable/c/0c32a93963e03c03e561d5a066eedad211880ba3 https://git.kernel.org/stable/c/c2e406596571659451f4b95e37ddfd5a8ef1d0dc