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 391FD30F813 for ; Mon, 15 Sep 2025 14:02:12 +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=1757944933; cv=none; b=Mq9DBQUu+DLzFY0PpZRssyEll+b+z9lGwQrwaaMzkb7bHsZ6fp11r7hYDbGFOS70EMZHRHasVz0rvv6LPXL2tKQx2etTJMQpEGrs3g12nB452BzOeChPmeL+BsUHBXwSA2tXl4tsEolxK2IaiH4LQAXucSjCEZa5UHdt5WrG2VA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757944933; c=relaxed/simple; bh=7SFZhzUVqsvpfn7hqKEeRMKBW6z4kQZB7RNTHYjI8DE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rub/RXmx0Jk4u3TTFDUKyb8SUROHFfAS9QA1eiPGzRagup/067FC8EJI0IkWjQC9/yCHn4Smuay1TQQ6oQCxfUr+U+46I4xHpL8q9V5wkS1zHbSXpUq4/uO5MTHgx7hBW8Me2EuztPNOaOpZBhk9S8dMvhtRds+grFwl1E8zCrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=00/9LZC3; 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="00/9LZC3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6111AC4CEF1; Mon, 15 Sep 2025 14:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757944932; bh=7SFZhzUVqsvpfn7hqKEeRMKBW6z4kQZB7RNTHYjI8DE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=00/9LZC3Mk1+nP2Vb8Xe06iK27MZBYQa7P2tvuTnvTDLmHUQkQReoyb6t/vWQG0zO GclENeNtb/hFj08NqJ19JA1w2aNH3Rxm5gt6eugPzXVNAHAW/A5R9J6FHU38YoPyUA bq/B3qcwJoE3QROJe+RwGwS4s5gte0mC1V07NEbY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50235: NFSD: Protect against send buffer overflow in NFSv2 READDIR Date: Mon, 15 Sep 2025 16:01:45 +0200 Message-ID: <2025091547-CVE-2022-50235-a5c0@gregkh> X-Mailer: git-send-email 2.51.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=2381; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hWPw1TBZ61eK2ufyFeyzaPhxSVAt+iNCcgM+09H4YE0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZLybivfqHI1WUn7O0b75zEK2ZuuTFxbMO808o6kjy obva1VeRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk+gWGeer/ZG5z33vq/up5 9cNFS322lpSIajPM0wmJ4E/y6rq5WIArqi0iKW5yRoYDAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: NFSD: Protect against send buffer overflow in NFSv2 READDIR Restore the previous limit on the @count argument to prevent a buffer overflow attack. The Linux kernel CVE team has assigned CVE-2022-50235 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.12 with commit eabc0aab98e5218ceecd82069b0d6fdfff5ee885 and fixed in 5.15.75 with commit dc7f225090c29a5f3b9419b1af32846a201555e7 Issue introduced in 5.16 with commit 53b1119a6e5028b125f431a0116ba73510d82a72 and fixed in 5.19.17 with commit c2a878095b5c6f04f90553a3c45872f990dab14e Issue introduced in 5.16 with commit 53b1119a6e5028b125f431a0116ba73510d82a72 and fixed in 6.0.3 with commit f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d Issue introduced in 5.16 with commit 53b1119a6e5028b125f431a0116ba73510d82a72 and fixed in 6.1 with commit 00b4492686e0497fdb924a9d4c8f6f99377e176c 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-50235 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 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/0e57d696f60dee6117a8ace0cac7c5761d375277 https://git.kernel.org/stable/c/dc7f225090c29a5f3b9419b1af32846a201555e7 https://git.kernel.org/stable/c/c2a878095b5c6f04f90553a3c45872f990dab14e https://git.kernel.org/stable/c/f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d https://git.kernel.org/stable/c/00b4492686e0497fdb924a9d4c8f6f99377e176c