CVE-2022-50235 (GCVE-0-2022-50235)

Vulnerability from cvelistv5 – Published: 2025-09-15 14:01 – Updated: 2026-08-05 08:57
VLAI
Title
NFSD: Protect against send buffer overflow in NFSv2 READDIR
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 6660 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 9e291a6a28d32545ed2fd959a8165144d1724df1 , < 0e57d696f60dee6117a8ace0cac7c5761d375277 (git)
Affected: eabc0aab98e5218ceecd82069b0d6fdfff5ee885 , < dc7f225090c29a5f3b9419b1af32846a201555e7 (git)
Affected: 53b1119a6e5028b125f431a0116ba73510d82a72 , < c2a878095b5c6f04f90553a3c45872f990dab14e (git)
Affected: 53b1119a6e5028b125f431a0116ba73510d82a72 , < f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d (git)
Affected: 53b1119a6e5028b125f431a0116ba73510d82a72 , < 00b4492686e0497fdb924a9d4c8f6f99377e176c (git)
Affected: 5.15.12 , < 5.15.75 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 5.16
Unaffected: 0 , < 5.16 (semver)
Unaffected: 5.15.75 , ≤ 5.15.* (semver)
Unaffected: 5.19.17 , ≤ 5.19.* (semver)
Unaffected: 6.0.3 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfsproc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0e57d696f60dee6117a8ace0cac7c5761d375277",
              "status": "affected",
              "version": "9e291a6a28d32545ed2fd959a8165144d1724df1",
              "versionType": "git"
            },
            {
              "lessThan": "dc7f225090c29a5f3b9419b1af32846a201555e7",
              "status": "affected",
              "version": "eabc0aab98e5218ceecd82069b0d6fdfff5ee885",
              "versionType": "git"
            },
            {
              "lessThan": "c2a878095b5c6f04f90553a3c45872f990dab14e",
              "status": "affected",
              "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
              "versionType": "git"
            },
            {
              "lessThan": "f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d",
              "status": "affected",
              "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
              "versionType": "git"
            },
            {
              "lessThan": "00b4492686e0497fdb924a9d4c8f6f99377e176c",
              "status": "affected",
              "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
              "versionType": "git"
            },
            {
              "lessThan": "5.15.75",
              "status": "affected",
              "version": "5.15.12",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfsproc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.16"
            },
            {
              "lessThan": "5.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.75",
                  "versionStartIncluding": "5.15.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.17",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.3",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The vulnerability is in nfsd\u0027s 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": {
        "dateUpdated": "2026-08-05T08:57:51.543Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50235",
    "datePublished": "2025-09-15T14:01:41.043Z",
    "dateReserved": "2025-06-18T10:57:27.432Z",
    "dateUpdated": "2026-08-05T08:57:51.543Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50235",
      "date": "2026-11-16",
      "epss": "0.00447",
      "percentile": "0.39378"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/nfsd/nfsproc.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "0e57d696f60dee6117a8ace0cac7c5761d375277",
                    "status": "affected",
                    "version": "9e291a6a28d32545ed2fd959a8165144d1724df1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "dc7f225090c29a5f3b9419b1af32846a201555e7",
                    "status": "affected",
                    "version": "eabc0aab98e5218ceecd82069b0d6fdfff5ee885",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c2a878095b5c6f04f90553a3c45872f990dab14e",
                    "status": "affected",
                    "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d",
                    "status": "affected",
                    "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "00b4492686e0497fdb924a9d4c8f6f99377e176c",
                    "status": "affected",
                    "version": "53b1119a6e5028b125f431a0116ba73510d82a72",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5.15.75",
                    "status": "affected",
                    "version": "5.15.12",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/nfsd/nfsproc.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.16"
                  },
                  {
                    "lessThan": "5.16",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.75",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.19.*",
                    "status": "unaffected",
                    "version": "5.19.17",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.0.*",
                    "status": "unaffected",
                    "version": "6.0.3",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4AE4FD69-6324-4B8A-B67F-3F58AA37C61A",
                    "versionEndExcluding": "5.15.75",
                    "versionStartIncluding": "5.15.12",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "08688EB5-BE88-4B72-A843-98C3A7829DD5",
                    "versionEndExcluding": "5.19.17",
                    "versionStartIncluding": "5.16.1",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "5BCD8201-B847-4442-B894-70D430128DEF",
                    "versionEndExcluding": "6.0.3",
                    "versionStartIncluding": "6.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:5.16:-:*:*:*:*:*:*",
                    "matchCriteriaId": "FF588A58-013F-4DBF-A3AB-70EC054B1892",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:5.16:rc7:*:*:*:*:*:*",
                    "matchCriteriaId": "4EAC2750-F7C6-4A4E-9C04-1E450722B853",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:5.16:rc8:*:*:*:*:*:*",
                    "matchCriteriaId": "ED611C74-E83A-4AFA-8688-9B829C02B038",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "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."
          }
        ],
        "id": "CVE-2022-50235",
        "lastModified": "2026-08-04T10:18:08.387",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.8,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            },
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2025-09-15T14:15:33.877",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/00b4492686e0497fdb924a9d4c8f6f99377e176c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/0e57d696f60dee6117a8ace0cac7c5761d375277"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/c2a878095b5c6f04f90553a3c45872f990dab14e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/dc7f225090c29a5f3b9419b1af32846a201555e7"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-787"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-09T17:59:37+00:00",
      "cve": "CVE-2022-50235",
      "id": "CVE-2022-50235",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:fixed": "441",
      "product_status:known_affected": "52",
      "product_status:known_not_affected": "29",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: NFSD: Protect against send buffer overflow in NFSv2 READDIR",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50235.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-11-17T01:09:28Z",
      "cve": "CVE-2022-50235",
      "id": "CVE-2022-50235",
      "initial_release_date": "2025-09-16T23:35:16Z",
      "product_status:known_not_affected": "287",
      "product_status:recommended": "346",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50235",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-50235.json",
      "version": "46"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.