{
  "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-38445",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-38445",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-07-25T15:27:28.035Z",
    "updatedAt": "2026-05-11T21:28:08.626Z",
    "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": "md/raid1: Fix stack memory use after return in raid1_reshape",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid1: Fix stack memory use after return in raid1_reshape\n\nIn the raid1_reshape function, newpool is\nallocated on the stack and assigned to conf->r1bio_pool.\nThis results in conf->r1bio_pool.wait.head pointing\nto a stack address.\nAccessing this address later can lead to a kernel panic.\n\nExample access path:\n\nraid1_reshape()\n{\n\t// newpool is on the stack\n\tmempool_t newpool, oldpool;\n\t// initialize newpool.wait.head to stack address\n\tmempool_init(&newpool, ...);\n\tconf->r1bio_pool = newpool;\n}\n\nraid1_read_request() or raid1_write_request()\n{\n\talloc_r1bio()\n\t{\n\t\tmempool_alloc()\n\t\t{\n\t\t\t// if pool->alloc fails\n\t\t\tremove_element()\n\t\t\t{\n\t\t\t\t--pool->curr_nr;\n\t\t\t}\n\t\t}\n\t}\n}\n\nmempool_free()\n{\n\tif (pool->curr_nr < pool->min_nr) {\n\t\t// pool->wait.head is a stack address\n\t\t// wake_up() will try to access this invalid address\n\t\t// which leads to a kernel panic\n\t\treturn;\n\t\twake_up(&pool->wait);\n\t}\n}\n\nFix:\nreinit conf->r1bio_pool.wait after assigning newpool.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d8a6853d00fbaa810765c8ed2f452a5832273968"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "12b00ec99624f8da8c325f2dd6e807df26df0025"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "48da050b4f54ed639b66278d0ae6f4107b2c4e2d"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "5f35e48b76655e45522df338876dfef88dafcc71"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "df5894014a92ff0196dbc212a7764e97366fd2b7"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "776e6186dc9ecbdb8a1b706e989166c8a99bbf64"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "61fd5e93006cf82ec8ee5c115ab5cf4bbd104bdb"
            },
            {
              "version": "afeee514ce7f4cab605beedd03be71ebaf0c5fc8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d67ed2ccd2d1dcfda9292c0ea8697a9d0f2f0d98"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.18",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.18"
            },
            {
              "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.189",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.146",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.99",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.39",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.15.7",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.15.*"
            },
            {
              "version": "6.16",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}