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 4A6D0154444 for ; Mon, 29 Jul 2024 14:59:15 +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=1722265155; cv=none; b=PmAH5uda0jwGzP0yHehVBwPhA2WDSEEhQre8jESfDLWTRceTAgEJve/Hm23s6wly70cojblyplGj0jd4PiU6S2Gha51PMPR8cAR+eRXGeVrICQfv85i4UbY08OLqt1vmYiEIzXskoat3xxYFNHVjhtbzjrQqj7ObmHViFE4DLmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722265155; c=relaxed/simple; bh=og6F85vFCU/3ACrYG6XMd65oKGvacvw+w5ZmRBzLfw4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uXm9LOnov4VGLfbW1eYkKZQU6QwPczEMUa07hGqUGrtD+CQTfpqFgnmn3sGK+3X1QFL3pnINSPbtbvIG4UpGIjm0vyldXUWMNarB1Dq0QKMSZm6J2PW8Bmk1Th932BiGCcJ5Ziui4Axz/zN/m0IbI7vbpr70UPV7piCqZEsAhoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dzSpo+Zu; 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="dzSpo+Zu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0D01C32786; Mon, 29 Jul 2024 14:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722265155; bh=og6F85vFCU/3ACrYG6XMd65oKGvacvw+w5ZmRBzLfw4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dzSpo+ZuQ73UFh4V9PJeO56OcxIJftHE6SkSjcTPjpAbjfnpfMhBFQ46tbgVdyRlL jBxhuTGK075dae8cogkHwhmaMjZqWO5dfARvvAj7D9pScd+rNanFJEzsd4dzEiY2g1 ViDVdpzzVEf2Ok3ga6YtewleYtADilcHtjHNLX1o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41074: cachefiles: Set object to close if ondemand_id < 0 in copen Date: Mon, 29 Jul 2024 16:58:20 +0200 Message-ID: <2024072910-CVE-2024-41074-e5d9@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=2291; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=og6F85vFCU/3ACrYG6XMd65oKGvacvw+w5ZmRBzLfw4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnL1zGtNXYJdTQ8/LVhvfXe/G9/Aj46zLH8/itiSxGL2 JZrhet8O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiBxIZ5kosb/+gFjA9ZcW/ O2r/T8x/qsnzVpNhDmfDRv0ZLRdWagfePBdrX153YYOhEQA= 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: Set object to close if ondemand_id < 0 in copen If copen is maliciously called in the user mode, it may delete the request corresponding to the random id. And the request may have not been read yet. Note that when the object is set to reopen, the open request will be done with the still reopen state in above case. As a result, the request corresponding to this object is always skipped in select_req function, so the read request is never completed and blocks other process. Fix this issue by simply set object to close if its id < 0 in copen. The Linux kernel CVE team has assigned CVE-2024-41074 to this issue. Affected and fixed versions =========================== Fixed in 6.1.101 with commit 703bea37d13e Fixed in 6.6.42 with commit c32ee78fbc67 Fixed in 6.9.11 with commit 0845c553db11 Fixed in 6.10 with commit 4f8703fb3482 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-41074 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/703bea37d13e4ccdafd17ae7c4cb583752ba7663 https://git.kernel.org/stable/c/c32ee78fbc670e6f90989a45d340748e34cad333 https://git.kernel.org/stable/c/0845c553db11c84ff53fccd59da11b6d6ece4a60 https://git.kernel.org/stable/c/4f8703fb3482f92edcfd31661857b16fec89c2c0