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 7ADF81DDA24 for ; Thu, 1 May 2025 14:11:41 +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=1746108701; cv=none; b=U+8KlpDvR+1TJoGcVEWA8+GEFp5CaHvNPyuhRoh7k3yCHh4L52QmuVc4m2FZa5fJXNYWP0so8zVcLvWcWofmC8Gfa36Qf4b0sovbj16EjEYk8BCTLxUxLwLI0q+2C75XezNdX85QRVp+neAh6qcmU8jCxmrfxUKSHczW7WQzeWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108701; c=relaxed/simple; bh=N/9BUtRoU1HvOXmFRjQwK1J1+kzkb/P/aWhmQhe33jo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A/MTimWbG4L6fELA04rR/rlLGxTL9BZVQ9lgjQZplzzPGIavT+OKAOHWseKi/0UGPxnhF4lMZkIV6RQM/uMLx7KkDn6qWP5TyMddkxmBCmUvIyae8339bsi1YVuBtwmgFuPxZUz3ocOOMeTSW2agX0mhlSLpZohjOj1mtXns9yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S0t0WWsY; 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="S0t0WWsY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3CF5C4CEE3; Thu, 1 May 2025 14:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108701; bh=N/9BUtRoU1HvOXmFRjQwK1J1+kzkb/P/aWhmQhe33jo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S0t0WWsYSS430c1FcG8aM1gevcccyV/BKQjDoj2zhv4TCEAd35dvyJFRHXdjQbfHE StJJujPLnPOH5kJz1QB7IUiLSV52koFxG0bZNK3RPTrn6WE7O2T6SPbJbd+FUjEmFr vxxZDl93GRd7lkXtNFpB8MpcdhxUIpPly+IvVgUk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49786: blk-cgroup: properly pin the parent in blkcg_css_online Date: Thu, 1 May 2025 16:09:36 +0200 Message-ID: <2025050121-CVE-2022-49786-bd75@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=1979; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/cXrcehBtPcFoDPrLRG7yKpbeu/Z4d4o7J2rw1Nq0pQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDRNFT9m+lVrewf5679p15RFh6fYPLNWYAiYf3ffHd ab8njf8HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqPUM84yn9UnaC9zdW8eu rm9VbGGqLbzyKsM8NZ94Ph0586kF4cuyo/RSF4cel98CAA== 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: blk-cgroup: properly pin the parent in blkcg_css_online blkcg_css_online is supposed to pin the blkcg of the parent, but 397c9f46ee4d refactored things and along the way, changed it to pin the css instead. This results in extra pins, and we end up leaking blkcgs and cgroups. The Linux kernel CVE team has assigned CVE-2022-49786 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 397c9f46ee4d99024c64954b007c1b5762d01cb4 and fixed in 6.0.10 with commit d118247e404d6338f7b90636a3c6b95a387ed163 Issue introduced in 5.19 with commit 397c9f46ee4d99024c64954b007c1b5762d01cb4 and fixed in 6.1 with commit d7dbd43f4a828fa1d9a8614d5b0ac40aee6375fe 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-49786 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: block/blk-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/d118247e404d6338f7b90636a3c6b95a387ed163 https://git.kernel.org/stable/c/d7dbd43f4a828fa1d9a8614d5b0ac40aee6375fe