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 46228216E1B for ; Wed, 26 Feb 2025 02:00: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=1740535225; cv=none; b=GTbXKo+afVF0lo5z62UA5zTrwaKoY5cy5fTol2zq+hALc466KcAHgjs4ysgiLh6zk7mgYoRnxe1qrpX6kl4W9JN3NEm8/Bgrga3IsPTg9avhIuFgqyAdoCYhq0cYSrNLMpX74NXgMRPL5aUAOyani3NsSL45yWaXOgJy9YfQ9dE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535225; c=relaxed/simple; bh=wbXM9PBzEF1r7Zf8mspcUWNHUCDW4uyiCREmcT+hL78=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QJ851l6x5In+2lngID5/gsRokL93anKURICDug4BYYEFRKJVAHDKL3bOHMAXqHrUDrCLwWgFy61Z1woeQQJu+no3mdB8Sw5dNNKpAVuH9T0kEeA6+LJ48RJaDQQsIKDNf1ysJq24zLOBtOfKyfZi4SqxL9cZ10T11uhd8iTOO2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Haf409Gy; 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="Haf409Gy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B3E6C4CEF0; Wed, 26 Feb 2025 02:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535225; bh=wbXM9PBzEF1r7Zf8mspcUWNHUCDW4uyiCREmcT+hL78=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Haf409GyopD4ImGyyVQ7YL6HleqnFQfKtor962vS68wYLQrLDQ1qVjgsNm9higS20 qZiLpWN1m+ZMPPV+7Kp7WnB6wyMWaFWfgqEaN+KATo188aCyFovGyM+C+WeyJRtzXX qy95AeMYAqrSmhY4NVldWFHIx4DFCliQnFIeljAo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49280: NFSD: prevent underflow in nfssvc_decode_writeargs() Date: Wed, 26 Feb 2025 02:58:05 +0100 Message-ID: <2025022631-CVE-2022-49280-8de2@gregkh> X-Mailer: git-send-email 2.48.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=2797; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wbXM9PBzEF1r7Zf8mspcUWNHUCDW4uyiCREmcT+hL78=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SsK3Oy+6/ry0+5Ss8J4td4uNdH2npb0LnP2DZ+GfC A+ZlLmJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRIHWGeboZvzfptviVvvSr OxPmNte7YJ8yJ8M8q29mfQdO2HIsFKlY9JR/hxGngVc/AA== 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: prevent underflow in nfssvc_decode_writeargs() Smatch complains: fs/nfsd/nfsxdr.c:341 nfssvc_decode_writeargs() warn: no lower bound on 'args->len' Change the type to unsigned to prevent this issue. The Linux kernel CVE team has assigned CVE-2022-49280 to this issue. Affected and fixed versions =========================== Fixed in 4.9.311 with commit 1a33e0de60feda402d05ac8a6cf409c19ea3e0b3 Fixed in 4.14.276 with commit 438068f4912183a59fcb6b7496a06437f7fd4e2b Fixed in 4.19.238 with commit 9f0f048c1bfa7867d565a95fd8c28f4484ba1043 Fixed in 5.4.189 with commit 85259340fc9bd54e3d567b41b881ecb4d0055da1 Fixed in 5.10.110 with commit 65e21cc042f4c1518c8c55283f53bc725b78419d Fixed in 5.15.33 with commit 614a61e1592051cc42d3c38f899c9f7bdaad8a1d Fixed in 5.16.19 with commit 2764af8ce0bf03cc43ee4a11897cab96bde6caae Fixed in 5.17.2 with commit 413d8fefafe531a9442bb623e3fe292a38f88d65 Fixed in 5.18 with commit 184416d4b98509fb4c3d8fc3d6dc1437896cc159 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-2022-49280 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/nfsproc.c fs/nfsd/xdr.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/1a33e0de60feda402d05ac8a6cf409c19ea3e0b3 https://git.kernel.org/stable/c/438068f4912183a59fcb6b7496a06437f7fd4e2b https://git.kernel.org/stable/c/9f0f048c1bfa7867d565a95fd8c28f4484ba1043 https://git.kernel.org/stable/c/85259340fc9bd54e3d567b41b881ecb4d0055da1 https://git.kernel.org/stable/c/65e21cc042f4c1518c8c55283f53bc725b78419d https://git.kernel.org/stable/c/614a61e1592051cc42d3c38f899c9f7bdaad8a1d https://git.kernel.org/stable/c/2764af8ce0bf03cc43ee4a11897cab96bde6caae https://git.kernel.org/stable/c/413d8fefafe531a9442bb623e3fe292a38f88d65 https://git.kernel.org/stable/c/184416d4b98509fb4c3d8fc3d6dc1437896cc159