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 295B113C689 for ; Fri, 21 Jun 2024 10:24:25 +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=1718965465; cv=none; b=VS5UtrrWJXY3iimY4r9BTsEvxNL1V5I7jYlKo22v8GyNYEd1OzXI0poE9n7HmIbxMyFGL45P1vZjRzxWlKl9Rw/s6ldw1v+OIMCuk4gTg+YLW4OzF+M/sFrlwTWCPGVCsM86J9nF2iuSiLMVXZ14FZdg14tomZCuXUyBuV4veIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965465; c=relaxed/simple; bh=EGIgYjQjbp5sc7wn+P1RvcdRH3t2i1bLvuRfMv8mAUM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Twq75xTkuaztf4h4dINvlT3Nn6fjXjN51GXp5ZW5MSd7ZLP2UKQ9qkAEPqynYILKqtTuk+bTeifFOH83ZoVzlMwCAKDe/T8JUheGoQrNxDurDPEZIIpqXWfitILUtnmsgRYglxXUa8SeSqYaLyCkcDym7H1zUjR7iJ93Sa7b1bM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ereVFsdO; 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="ereVFsdO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0BD1C2BBFC; Fri, 21 Jun 2024 10:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965465; bh=EGIgYjQjbp5sc7wn+P1RvcdRH3t2i1bLvuRfMv8mAUM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ereVFsdOEIqvtCBO6kdUpjKg/6PRigz9f3Jq7exDFZ9iOiUOozRboAWKKgF3X6D/U 36s93rXhFBotvSLMJCcFQFt1yNgKs6BDJSHgjbYvIy0ocFH7xim9g8bhZWg1f2g685 fEGRHsHtNGcVEHPFBzQRlvOr2OF/QnOVFC/oRedM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38391: cxl/region: Fix cxlr_pmem leaks Date: Fri, 21 Jun 2024 12:19:46 +0200 Message-ID: <2024062138-CVE-2024-38391-c792@gregkh> X-Mailer: git-send-email 2.45.2 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=1903; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EGIgYjQjbp5sc7wn+P1RvcdRH3t2i1bLvuRfMv8mAUM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwbved7lfsXiysf+TzZaMgi9qjI+zRTa08z5cyDYj2 M3rwfr4jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI3FcM8wv+/OZ4Ms3EhrFX 3D39ym0OZ4PY0wwLlsxetm7dKbHKX47GHX0Lgl6suzqvFwA= 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: cxl/region: Fix cxlr_pmem leaks Before this error path, cxlr_pmem pointed to a kzalloc() memory, free it to avoid this memory leaking. The Linux kernel CVE team has assigned CVE-2024-38391 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit f17b558d6663 and fixed in 6.6.33 with commit 24b9362c9fa5 Issue introduced in 6.2 with commit f17b558d6663 and fixed in 6.9.4 with commit eef8d414b07a Issue introduced in 6.2 with commit f17b558d6663 and fixed in 6.10-rc1 with commit 1c987cf22d6b 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-2024-38391 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/cxl/core/region.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/24b9362c9fa57f9291b380a3cc77b8b5c9fa27da https://git.kernel.org/stable/c/eef8d414b07a1e85c1367324fb6c6a46b79269bd https://git.kernel.org/stable/c/1c987cf22d6b65ade46145c03eef13f0e3e81d83