GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

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.
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-09-16",
      "epss": "0.0042",
      "percentile": "0.35678"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50235\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T14:15:33.877\",\"lastModified\":\"2026-08-04T10:18:08.387\",\"vulnStatus\":\"Modified\",\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/nfsd/nfsproc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"9e291a6a28d32545ed2fd959a8165144d1724df1\",\"lessThan\":\"0e57d696f60dee6117a8ace0cac7c5761d375277\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"eabc0aab98e5218ceecd82069b0d6fdfff5ee885\",\"lessThan\":\"dc7f225090c29a5f3b9419b1af32846a201555e7\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"53b1119a6e5028b125f431a0116ba73510d82a72\",\"lessThan\":\"c2a878095b5c6f04f90553a3c45872f990dab14e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"53b1119a6e5028b125f431a0116ba73510d82a72\",\"lessThan\":\"f59c74df82f6ac9d2ea4e01aa3ae7c6c4481652d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"53b1119a6e5028b125f431a0116ba73510d82a72\",\"lessThan\":\"00b4492686e0497fdb924a9d4c8f6f99377e176c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5.15.12\",\"lessThan\":\"5.15.75\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/nfsd/nfsproc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.16\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.16\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.75\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.19.17\",\"lessThanOrEqual\":\"5.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.0.3\",\"lessThanOrEqual\":\"6.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"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\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-787\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.15.12\",\"versionEndExcluding\":\"5.15.75\",\"matchCriteriaId\":\"4AE4FD69-6324-4B8A-B67F-3F58AA37C61A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16.1\",\"versionEndExcluding\":\"5.19.17\",\"matchCriteriaId\":\"08688EB5-BE88-4B72-A843-98C3A7829DD5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.0\",\"versionEndExcluding\":\"6.0.3\",\"matchCriteriaId\":\"5BCD8201-B847-4442-B894-70D430128DEF\"},{\"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\"}]}]}],\"references\":[{\"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\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:41:12+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": "104",
      "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…