{"id":"CVE-2022-50235","state":"PUBLISHED","title":"NFSD: Protect against send buffer overflow in NFSv2 READDIR","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Protect against send buffer overflow in NFSv2 READDIR\n\nRestore the previous limit on the @count argument to prevent a\nbuffer overflow attack.","publishedAt":"2025-09-15T14:01:41.043Z","updatedAt":"2026-08-05T08:57:51.543Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9e291a6a28d32545ed2fd959a8165144d1724df1","status":"affected","lessThan":"0e57d696f60dee6117a8ace0cac7c5761d375277","versionType":"git"},{"version":"eabc0aab98e5218ceecd82069b0d6fdfff5ee885","status":"affected","lessThan":"dc7f225090c29a5f3b9419b1af32846a201555e7","versionType":"git"},{"version":"53b1119a6e5028b125f431a0116ba73510d82a72","status":"affected","lessThan":"c2a878095b5c6f04f90553a3c45872f990dab14e","versionType":"git"},{"version":"53b1119a6e5028b125f431a0116ba73510d82a72","status":"affected","lessThan":"f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d","versionType":"git"},{"version":"53b1119a6e5028b125f431a0116ba73510d82a72","status":"affected","lessThan":"00b4492686e0497fdb924a9d4c8f6f99377e176c","versionType":"git"},{"version":"5.15.12","status":"affected","lessThan":"5.15.75","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfsproc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"5.15.75","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfsproc.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50235.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50235","state":"PUBLISHED","datePublished":"2025-09-15T14:01:41.043Z","dateUpdated":"2026-08-05T08:57:51.543Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.432Z"},"containers":{"cna":{"title":"NFSD: Protect against send buffer overflow in NFSv2 READDIR","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Protect against send buffer overflow in NFSv2 READDIR\n\nRestore the previous limit on the @count argument to prevent a\nbuffer overflow attack."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9e291a6a28d32545ed2fd959a8165144d1724df1","status":"affected","lessThan":"0e57d696f60dee6117a8ace0cac7c5761d375277","versionType":"git"},{"version":"eabc0aab98e5218ceecd82069b0d6fdfff5ee885","status":"affected","lessThan":"dc7f225090c29a5f3b9419b1af32846a201555e7","versionType":"git"},{"version":"53b1119a6e5028b125f431a0116ba73510d82a72","status":"affected","lessThan":"c2a878095b5c6f04f90553a3c45872f990dab14e","versionType":"git"},{"version":"53b1119a6e5028b125f431a0116ba73510d82a72","status":"affected","lessThan":"f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d","versionType":"git"},{"version":"53b1119a6e5028b125f431a0116ba73510d82a72","status":"affected","lessThan":"00b4492686e0497fdb924a9d4c8f6f99377e176c","versionType":"git"},{"version":"5.15.12","status":"affected","lessThan":"5.15.75","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfsproc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"5.15.75","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfsproc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0e57d696f60dee6117a8ace0cac7c5761d375277"},{"url":"https://git.kernel.org/stable/c/dc7f225090c29a5f3b9419b1af32846a201555e7"},{"url":"https://git.kernel.org/stable/c/c2a878095b5c6f04f90553a3c45872f990dab14e"},{"url":"https://git.kernel.org/stable/c/f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d"},{"url":"https://git.kernel.org/stable/c/00b4492686e0497fdb924a9d4c8f6f99377e176c"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerability is in nfsd's NFSv2 READDIR handler (fs/nfsd/nfsproc.c), reachable over the network via NFS/RPC on TCP/UDP port 2049 from a remote client.\nAC:L - The attacker fully controls the READDIR count argument and can reliably force multi-page encoding by targeting or populating a directory with enough entries; no conditions beyond attacker control are required.\nPR:N - NFSv2 commonly accepts AUTH_NULL/AUTH_UNIX with no cryptographic authentication, so an unauthenticated network client that can reach an exported share can invoke READDIR; this matches sibling nfsd send-buffer overflow scoring (CVE-2022-50410).\nUI:N - Exploitation requires only sending crafted NFS READDIR RPCs; no victim user action is needed.\nS:U - The overflow corrupts memory in the nfsd/kernel context on the same host; it does not cross a VM, IOMMU, or other security-authority boundary.\nC:H - Out-of-bounds writes into adjacent svc rq_pages are kernel memory corruption that can be leveraged for arbitrary read primitives and disclosure of kernel memory.\nI:H - The bug is an attacker-triggered buffer/overflow write past the single reserved dirlist page into adjacent kernel pages, enabling integrity compromise and potential code execution.\nA:H - Kernel memory corruption from the send-buffer overflow can cause oops/panic or otherwise crash the NFS server kernel, fully impacting availability."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:57:51.543Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.12","versionEndExcluding":"5.15.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"5.19.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.0.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}