{
  "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-40062",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-40062",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-10-28T11:48:33.961Z",
    "updatedAt": "2026-05-23T16:01:17.923Z",
    "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": "crypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs\n\nWhen the initialization of qm->debug.acc_diff_reg fails,\nthe probe process does not exit. However, after qm->debug.qm_diff_regs is\nfreed, it is not set to NULL. This can lead to a double free when the\nremove process attempts to free it again. Therefore, qm->debug.qm_diff_regs\nshould be set to NULL after it is freed.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "eda60520cfe3aba9f088c68ebd5bcbca9fc6ac3c",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a7836260d5121949ba734e840d42a86ab4a32fcc"
            },
            {
              "version": "7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1750f1ec143ebabdbdfa013668665c9d5042c430"
            },
            {
              "version": "8be0913389718e8d27c4f1d4537b5e1b99ed7739",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a87a21a56244b8f4eb357f6bad879247005bbe38"
            },
            {
              "version": "8be0913389718e8d27c4f1d4537b5e1b99ed7739",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7226a0650ad5705bd8d39a11be270fa21ed1e6a5"
            },
            {
              "version": "8be0913389718e8d27c4f1d4537b5e1b99ed7739",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f0cafb02de883b3b413d34eb079c9680782a9cc1"
            },
            {
              "version": "e0a2d2df9ba7bd6bd7e0a9b6a5e3894f7e8445b3",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "6.1.98",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.156"
            },
            {
              "version": "6.6.39",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.112"
            },
            {
              "version": "6.9.9",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.10"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.10",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.10"
            },
            {
              "version": "6.1.156",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.112",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.53",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.17.3",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}