{
  "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-40001",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-40001",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-10-18T08:03:21.935Z",
    "updatedAt": "2026-05-11T21:40:33.447Z",
    "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": "scsi: mvsas: Fix use-after-free bugs in mvs_work_queue",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mvsas: Fix use-after-free bugs in mvs_work_queue\n\nDuring the detaching of Marvell's SAS/SATA controller, the original code\ncalls cancel_delayed_work() in mvs_free() to cancel the delayed work\nitem mwq->work_q. However, if mwq->work_q is already running, the\ncancel_delayed_work() may fail to cancel it. This can lead to\nuse-after-free scenarios where mvs_free() frees the mvs_info while\nmvs_work_queue() is still executing and attempts to access the\nalready-freed mvs_info.\n\nA typical race condition is illustrated below:\n\nCPU 0 (remove)            | CPU 1 (delayed work callback)\nmvs_pci_remove()          |\n  mvs_free()              | mvs_work_queue()\n    cancel_delayed_work() |\n      kfree(mvi)          |\n                          |   mvi-> // UAF\n\nReplace cancel_delayed_work() with cancel_delayed_work_sync() to ensure\nthat the delayed work item is properly canceled and any executing\ndelayed work item completes before the mvs_info is deallocated.\n\nThis bug was found by static analysis.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a6f68f219d4d4b92d7c781708d4afc4cc42961ec"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "aacd1777d4a795c387a20b9ca776e2c1225d05d7"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6ba7e73cafd155a5d3abf560d315f0bab2b9d89f"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c2c35cb2a31844f84f21ab364b38b4309d756d42"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3c90f583d679c81a5a607a6ae0051251b6dee35b"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "00d3af40b158ebf7c7db2b3bbb1598a54bf28127"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "feb946d2fc9dc754bf3d594d42cd228860ff8647"
            },
            {
              "version": "20b09c2992fefbe78f8cede7b404fb143a413c52",
              "status": "affected",
              "versionType": "git",
              "lessThan": "60cd16a3b7439ccb699d0bf533799eeb894fd217"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.31",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.31"
            },
            {
              "version": "5.4.301",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.246",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.195",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.157",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.113",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.54",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.17.4",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}