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 3FF7933EA for ; Sun, 29 Dec 2024 08:49:06 +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=1735462146; cv=none; b=XRdWdz6GGiJScDtOSrTADNusnYQa9j+zgp/A/nbBs33IwSheAjlgWgVdiQjVOjK4jmOuN4DoS8fzLT2zF/sPgk/Ddv3TqD4QvrjfZJ9wyp2r3A3KbR6KZ8f5O2GLJ6n9QQA7oecPcqUeKILUhD4NVmbBz+KDbbAba95s1gQVTO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735462146; c=relaxed/simple; bh=2yGywfdVzgawocPQlzErgZeMzENuicYz6PeyBmA0oKY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H/ZB5Q6xBXvdBvFXlbpm091Y6kB6bn7mICs7k5RZ2LagUwRct8DZmE4J6tCbF6tQfyDli84HIGN4inTPMW6tKKk1jgprHI+sjL11WMbiPZzgLnKKKk06pOXESO3lR0iy5RRZ/WfDkEFGnTdFYR0eNzyJCgQYwekNm4K80D3eMQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a4nKOjyw; 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="a4nKOjyw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5C02C4CED1; Sun, 29 Dec 2024 08:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735462146; bh=2yGywfdVzgawocPQlzErgZeMzENuicYz6PeyBmA0oKY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a4nKOjywY8wa7AW/r2AZEKddI6lEELSv025b6uSC7CY+9Of9vl1+vYcf/dQdnU2bc jyh10TaZumFhx+tfp3A9Sg1/pmkOMFZKvEHNh2mjB4QIQdS1+P3mYj7odgCdbUQz3J 0V2mfE8aZbWdv+KPOWYfw+NWGhxl9UUvNzeptM30= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56710: ceph: fix memory leak in ceph_direct_read_write() Date: Sun, 29 Dec 2024 09:48:14 +0100 Message-ID: <2024122913-CVE-2024-56710-78af@gregkh> X-Mailer: git-send-email 2.47.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=2197; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2yGywfdVzgawocPQlzErgZeMzENuicYz6PeyBmA0oKY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFPGcfclsnhfv6tLwxqmL8fLPldfXyDxfNP3wou72xU bv02pnZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARwz0MC9ZaioUFVrH+fzst jb/Eaxub7svlLQwLpvw8uM2ecfmrl/98V00JvtZcdsnDGwA= 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: ceph: fix memory leak in ceph_direct_read_write() The bvecs array which is allocated in iter_get_bvecs_alloc() is leaked and pages remain pinned if ceph_alloc_sparse_ext_map() fails. There is no need to delay the allocation of sparse_ext map until after the bvecs array is set up, so fix this by moving sparse_ext allocation a bit earlier. Also, make a similar adjustment in __ceph_sync_read() for consistency (a leak of the same kind in __ceph_sync_read() has been addressed differently). The Linux kernel CVE team has assigned CVE-2024-56710 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 03bc06c7b0bd8d86b9f17f459acaeb1283ba2700 and fixed in 6.12.7 with commit eb9041837123f31d5897e99bb761f46cb4ce5859 Issue introduced in 6.6 with commit 03bc06c7b0bd8d86b9f17f459acaeb1283ba2700 and fixed in 6.13-rc4 with commit 66e0c4f91461d17d48071695271c824620bed4ef 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-56710 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: fs/ceph/file.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/eb9041837123f31d5897e99bb761f46cb4ce5859 https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef