{
  "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-39870",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-39870",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-09-23T06:00:44.369Z",
    "updatedAt": "2026-05-23T16:00:52.713Z",
    "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": "dmaengine: idxd: Fix double free in idxd_setup_wqs()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: idxd: Fix double free in idxd_setup_wqs()\n\nThe clean up in idxd_setup_wqs() has had a couple bugs because the error\nhandling is a bit subtle.  It's simpler to just re-write it in a cleaner\nway.  The issues here are:\n\n1) If \"idxd->max_wqs\" is <= 0 then we call put_device(conf_dev) when\n   \"conf_dev\" hasn't been initialized.\n2) If kzalloc_node() fails then again \"conf_dev\" is invalid.  It's\n   either uninitialized or it points to the \"conf_dev\" from the\n   previous iteration so it leads to a double free.\n\nIt's better to free partial loop iterations within the loop and then\nthe unwinding at the end can handle whole loop iterations.  I also\nrenamed the labels to describe what the goto does and not where the goto\nwas located.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "d584acdf54f409cb7eae1359ae6c12aaabedeed8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "25e6146c2812487a88f619d5ff6efbdcd5b2bc31"
            },
            {
              "version": "47846211998a9ffb0fcc08092eb95ac783d2b11a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "df82c7901513fd0fc738052a8e6a330d92cc8ec9"
            },
            {
              "version": "5fcd392dae6d6aba7dc64ffdbb838ff191315da3",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ec5430d090d0b6ace8fefa290fc37e88930017d2"
            },
            {
              "version": "3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9f0e225635475b2285b966271d5e82cba74295b1"
            },
            {
              "version": "3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4",
              "status": "affected",
              "versionType": "git",
              "lessThan": "39aaa337449e71a41d4813be0226a722827ba606"
            },
            {
              "version": "ed2c66000aa64c0d2621864831f0d04c820a1441",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "6.1.140",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.153"
            },
            {
              "version": "6.6.92",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.107"
            },
            {
              "version": "6.12.30",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.12.48"
            },
            {
              "version": "6.14.8",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.15"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.15",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.15"
            },
            {
              "version": "6.1.153",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.107",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.48",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.16.8",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.16.*"
            },
            {
              "version": "6.17",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}