{
  "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-38395",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-38395",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-07-25T12:53:39.933Z",
    "updatedAt": "2026-08-05T12:01:33.139Z",
    "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": "regulator: gpio: Fix the out-of-bounds access to drvdata::gpiods",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nregulator: gpio: Fix the out-of-bounds access to drvdata::gpiods\n\ndrvdata::gpiods is supposed to hold an array of 'gpio_desc' pointers. But\nthe memory is allocated for only one pointer. This will lead to\nout-of-bounds access later in the code if 'config::ngpios' is > 1. So\nfix the code to allocate enough memory to hold 'config::ngpios' of GPIO\ndescriptors.\n\nWhile at it, also move the check for memory allocation failure to be below\nthe allocation to make it more readable.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a3cd5ae7befbac849e0e0529c94ca04e8093cfd2"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9fe71972869faed1f8f9b3beb9040f9c1b300c79"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "56738cbac3bbb1d39a71a07f57484dec1db8b239"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a1e12fac214d4f49fcb186dbdf9c5592e7fa0a7a"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "24418bc77a66cb5be9f5a837431ba3674ed8b52f"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e4d19e5d71b217940e33f2ef6c6962b7b68c5606"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3830ab97cda9599872625cc0dc7b00160193634f"
            },
            {
              "version": "d6cd33ad71029a3f77ba1686caf55d4dea58d916",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c9764fd88bc744592b0604ccb6b6fc1a5f76b4e3"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.1",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.1"
            },
            {
              "version": "5.4.296",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.240",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.187",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.144",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.97",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.37",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.15.6",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.15.*"
            },
            {
              "version": "6.16",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}