{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-38257",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-38257",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-07-09T10:42:34.395Z",
    "updatedAt": "2026-10-15T21:52:12.939Z",
    "importedAt": "2026-10-24T01:57:34.152Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "s390/pkey: Prevent overflow in size calculation for memdup_user()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pkey: Prevent overflow in size calculation for memdup_user()\n\nNumber of apqn target list entries contained in 'nr_apqns' variable is\ndetermined by userspace via an ioctl call so the result of the product in\ncalculation of size passed to memdup_user() may overflow.\n\nIn this case the actual size of the allocated area and the value\ndescribing it won't be in sync leading to various types of unpredictable\nbehaviour later.\n\nUse a proper memdup_array_user() helper which returns an error if an\noverflow is detected. Note that it is different from when nr_apqns is\ninitially zero - that case is considered valid and should be handled in\nsubsequent pkey_handler implementations.\n\nFound by Linux Verification Center (linuxtesting.org).",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ad1bdd24a02d5a8d119af8e4cd50933780a6d29f"
            },
            {
              "version": "f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "faa1ab4a23c42e34dc000ef4977b751d94d5148c"
            },
            {
              "version": "f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "88f3869649edbc4a13f6c2877091f81cd5a50f05"
            },
            {
              "version": "f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f855b119e62b004a5044ed565f2a2b368c4d3f16"
            },
            {
              "version": "f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "73483ca7e07a5e39bdf612eec9d3d293e8bef649"
            },
            {
              "version": "f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7360ee47599af91a1d5f4e74d635d9408a54e489"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.4",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.4"
            },
            {
              "version": "5.15.187",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.143",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.96",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.36",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.15.5",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.15.*"
            },
            {
              "version": "6.16",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}