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 92F4A54BDA for ; Sun, 28 Apr 2024 13:05: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=1714309554; cv=none; b=m3XiPFJU6GSZQnBbS/v4Jk82jdJG8g+eUtIsBU+hjABucUDMqlWglVXrLOlynxAb2Mj2J4tDUeZuQQFXVqsJrPm4knTlZ2chkZlaONK9eddw5eoay22rpGK4QZVB9FAlsbTGWSlNqDsvwTbkNbER7mmier4LvDneh+kaF+G7YRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309554; c=relaxed/simple; bh=bmnBtUNTzgYh1H09apZSJA76Tnej7Sz27akDZWdrMCQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NN+Hr6HPcSdHGNFN+HrDwyMUSPPVGu41Wl6thGwZ2HMXiVc5XLDUNL9PYvQo1EJ8Boj1u2zXVkBvrTfA2BwmzoKuUY3E9faycJdtZ1JW2kpCwHsNUKZsUqCy5y6Ndvd3Fsio+L/8M8nlu5JPiHjgCOmDUwvDhUxlPdOEte6H+j4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PxNVH2jK; 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="PxNVH2jK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 029D0C113CC; Sun, 28 Apr 2024 13:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309554; bh=bmnBtUNTzgYh1H09apZSJA76Tnej7Sz27akDZWdrMCQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PxNVH2jK5TfaPXTi90c2eEo+Oc4SqqVx5LL5qeEsFlVeT5Pby5HYGtjDCRBgALggp nxEL2HD0UXOIRsuEamru9CPOANLQnL9y7Sz/25Yw8xjstwyZoPVYCrLnscIgBHYzhO HjkVKZ3nPpD4PottwZsnqvz7M9q5RZWvy7Ef3els= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48638: cgroup: cgroup_get_from_id() must check the looked-up kn is a directory Date: Sun, 28 Apr 2024 15:04:59 +0200 Message-ID: <2024042855-CVE-2022-48638-e1bd@gregkh> X-Mailer: git-send-email 2.44.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=1953; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bmnBtUNTzgYh1H09apZSJA76Tnej7Sz27akDZWdrMCQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6nuXtbt/vXVRhMH/RHqjYusO26dK1cJdLnJMkrsx0W yu55O+JjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIyniGBZPe8c9N3vRZvFhb yHG39KvPKi869jDMMzo2R+fcA+7GpWd31bx4yLxzrf3jHgA= 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: cgroup: cgroup_get_from_id() must check the looked-up kn is a directory cgroup has to be one kernfs dir, otherwise kernel panic is caused, especially cgroup id is provide from userspace. The Linux kernel CVE team has assigned CVE-2022-48638 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 6b658c4863c1 and fixed in 5.15.72 with commit 8484a356cee8 Issue introduced in 5.14 with commit 6b658c4863c1 and fixed in 5.19.12 with commit 1e9571887f97 Issue introduced in 5.14 with commit 6b658c4863c1 and fixed in 6.0 with commit df02452f3df0 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-48638 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/cgroup/cgroup.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/8484a356cee8ce3d6a8e6266ff99be326e9273ad https://git.kernel.org/stable/c/1e9571887f97b17cf3ffe9aa4da89090ea60988b https://git.kernel.org/stable/c/df02452f3df069a59bc9e69c84435bf115cb6e37