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 860061991AE for ; Mon, 21 Oct 2024 18:07: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=1729534045; cv=none; b=X0HBSF4GwlXLoj+Uj+pT5THtlcqvmRYsEHwXN5I90dBb0uEUYIr0RhZd+dElvliAHnGr0I0X7FqDyC0IdKpgbPDPLFpwmbdIzZpaK5V3sHJEgpBbWZ4eiXFH5Y2bg4M3gAMU9+2eL3ew4NxpG2HkQ2yPElYeT62NDMzgy+BJrW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729534045; c=relaxed/simple; bh=AVkIFShaTZRzgYMMER/RE/0fSuzSSR2OFSlWdlOUmoY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Adio/BMtY2ohNVPZ4cbKZ89xBn5aEfG2N83dmqfecrQqOAX4EzdibHRMGB7FdJ2BgJp1q/G9tQQvqrnWizV90djaHsPL1vgkGjMSqSyIAmJdPMgrXPxairdFLBMdJ9LkNoiODrr7piy53cf2f7vb2p07gmZLADW6vri3xKTTQUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N7AtgsB8; 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="N7AtgsB8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADA21C4CEC7; Mon, 21 Oct 2024 18:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729534045; bh=AVkIFShaTZRzgYMMER/RE/0fSuzSSR2OFSlWdlOUmoY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=N7AtgsB89r9Cl7wVBMi1GjlU2DcuIyrGdhrHIpgpHLT/xSjLCAyjRVlxp7mW8tGtN rXPc5uQ0kIg9VG/mY0fVLWZQ7KOf2kJuMwOLg6CmIiYTvoTcmBuZyP0RiD4PvsqN+v 1DK3x6yuOOwB9byYTW1ftXhe5FGU3y0QEhyYRtTg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49974: NFSD: Limit the number of concurrent async COPY operations Date: Mon, 21 Oct 2024 20:03:02 +0200 Message-ID: <2024102134-CVE-2024-49974-bda6@gregkh> X-Mailer: git-send-email 2.47.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=2464; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AVkIFShaTZRzgYMMER/RE/0fSuzSSR2OFSlWdlOUmoY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli0/5x8/1P61bpD57AHrW+Zy2jkYT7p7sJO/I7rmRu6 pJKWtHUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP528swhzPX0HPS9Ud2+9K+ Hl18o+j4dwvVrwzzy24s4FNeHNa4896UOuvl313tHPdeBAA= 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: NFSD: Limit the number of concurrent async COPY operations Nothing appears to limit the number of concurrent async COPY operations that clients can start. In addition, AFAICT each async COPY can copy an unlimited number of 4MB chunks, so can run for a long time. Thus IMO async COPY can become a DoS vector. Add a restriction mechanism that bounds the number of concurrent background COPY operations. Start simple and try to be fair -- this patch implements a per-namespace limit. An async COPY request that occurs while this limit is exceeded gets NFS4ERR_DELAY. The requesting client can choose to send the request again after a delay or fall back to a traditional read/write style copy. If there is need to make the mechanism more sophisticated, we can visit that in future patches. The Linux kernel CVE team has assigned CVE-2024-49974 to this issue. Affected and fixed versions =========================== Fixed in 6.10.14 with commit b4e21431a0db Fixed in 6.11.3 with commit 6a488ad7745b Fixed in 6.12-rc1 with commit aadc3bbea163 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-49974 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/nfsd/netns.h fs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/xdr4.h 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/b4e21431a0db4854b5023cd5af001be557e6c3db https://git.kernel.org/stable/c/6a488ad7745b8f64625c6d3a24ce7e448e83f11b https://git.kernel.org/stable/c/aadc3bbea163b6caaaebfdd2b6c4667fbc726752