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 C30E214601E for ; Mon, 29 Jul 2024 14:59:18 +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=1722265158; cv=none; b=XunCyxML7Q4srhTxheYGHsoX6YsKQwVeLpfEA5bYd+XYgJYiXQzdYyZL2bHuRpUBTJzZvIbj5kNAsREFfjgztTNwrrB/NpJ+r9sY2Py52ik/d0dE+lYCqaFSErhGFHZQcvN+8Eq8DKsOTMgjiSmOBYURBfTt2pQ4U28hGDn19Ec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722265158; c=relaxed/simple; bh=m0hQ5ixAjVADe5CPzy7kzKnr9fxkIM1xSpiWGXcbJ9k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EVWYGjHzBtBdZaOLXMa5J5XCTUP8LuqPJnDn8Kmjs5RYmPuYqH9TEdfK7ZQfUUYAfY2dOY2g2zevaSxFv/yHmGKr79rT3TlzNBsDrym7zTNhvhqkAZeljogP0AIa3ONTULkE0y9saGa9dsy5nyCVx+uBZxxUZrq1N/lxbll1O/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rc5kBW4B; 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="rc5kBW4B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32CB3C32786; Mon, 29 Jul 2024 14:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722265158; bh=m0hQ5ixAjVADe5CPzy7kzKnr9fxkIM1xSpiWGXcbJ9k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rc5kBW4ByzNoCO+uuEMl6+bM2VhHP1GvSEDULUVDb3sSgz+rpwT0pLjX/rpExwTGc VuCzAJ2JQ6gIApbZxti/JBq0jJ5bIuZmmvm8DaGSts443U6nyGW31WUDV8kmKnJSEa uh6VIgXIb6sfXRl9OkpsoPtJ9pu5ouZX5zlEe4q8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41075: cachefiles: add consistency check for copen/cread Date: Mon, 29 Jul 2024 16:58:21 +0200 Message-ID: <2024072910-CVE-2024-41075-7f07@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=2207; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=m0hQ5ixAjVADe5CPzy7kzKnr9fxkIM1xSpiWGXcbJ9k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnL1zF1XtmyV/jxhUcBV7605rktyIj9tkx/w20xHlHe1 +4flzN0dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBENjEwzI9Zw7TOb9sz5vgE 7hei/FV+RnxbAhgWzG/rza1O91rjyJfLvS7mQEVHx8p8AA== 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: cachefiles: add consistency check for copen/cread This prevents malicious processes from completing random copen/cread requests and crashing the system. Added checks are listed below: * Generic, copen can only complete open requests, and cread can only complete read requests. * For copen, ondemand_id must not be 0, because this indicates that the request has not been read by the daemon. * For cread, the object corresponding to fd and req should be the same. The Linux kernel CVE team has assigned CVE-2024-41075 to this issue. Affected and fixed versions =========================== Fixed in 6.1.101 with commit 3b744884c043 Fixed in 6.6.42 with commit 36d845ccd7bf Fixed in 6.9.11 with commit 8aaa6c5dd294 Fixed in 6.10 with commit a26dc49df37e 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-41075 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/cachefiles/ondemand.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/3b744884c0431b5a62c92900e64bfd0ed61e8e2a https://git.kernel.org/stable/c/36d845ccd7bf527110a65fe953886a176c209539 https://git.kernel.org/stable/c/8aaa6c5dd2940ab934d6cd296175f43dbb32b34a https://git.kernel.org/stable/c/a26dc49df37e996876f50a0210039b2d211fdd6f