{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50235",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-06-18T10:57:27.432Z",
        "datePublished": "2025-09-15T14:01:41.043Z",
        "dateUpdated": "2026-08-05T08:57:51.543Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:57:51.543Z"
            },
            "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."
                }
            ],
            "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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/nfsd/nfsproc.c"
                    ],
                    "versions": [
                        {
                            "version": "9e291a6a28d32545ed2fd959a8165144d1724df1",
                            "lessThan": "0e57d696f60dee6117a8ace0cac7c5761d375277",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "eabc0aab98e5218ceecd82069b0d6fdfff5ee885",
                            "lessThan": "dc7f225090c29a5f3b9419b1af32846a201555e7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
                            "lessThan": "c2a878095b5c6f04f90553a3c45872f990dab14e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
                            "lessThan": "f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
                            "lessThan": "00b4492686e0497fdb924a9d4c8f6f99377e176c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.15.12",
                            "lessThan": "5.15.75",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/nfsd/nfsproc.c"
                    ],
                    "versions": [
                        {
                            "version": "5.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.75",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.17",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.3",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
                }
            ],
            "title": "NFSD: Protect against send buffer overflow in NFSv2 READDIR",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}