{
  "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-40213",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-40213",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-11-24T15:59:44.000Z",
    "updatedAt": "2026-10-21T12:37:53.837Z",
    "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": "Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete\n\nThere is a BUG: KASAN: stack-out-of-bounds in set_mesh_sync due to\nmemcpy from badly declared on-stack flexible array.\n\nAnother crash is in set_mesh_complete() due to double list_del via\nmgmt_pending_valid + mgmt_pending_remove.\n\nUse DEFINE_FLEX to declare the flexible array right, and don't memcpy\noutside bounds.\n\nAs mgmt_pending_valid removes the cmd from list, use mgmt_pending_free,\nand also report status on error.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "31d6c9216aa1be18ba317239738f73b0b0c7b691"
            },
            {
              "version": "d71b98f253b079cbadc83266383f26fe7e9e103b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "5c19daa93d9af29f1f46251b47e1ea66bcc8d679"
            },
            {
              "version": "302a1f674c00dd5581ab8e493ef44767c5101aab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1c9aca1787e8395a2c59fef20e914467958969c5"
            },
            {
              "version": "302a1f674c00dd5581ab8e493ef44767c5101aab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e8785404de06a69d89dcdd1e9a0b6ea42dc6d327"
            },
            {
              "version": "87a1f16f07c6c43771754075e08f45b41d237421",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "6.6.140",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.160"
            },
            {
              "version": "6.16.10",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.17"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.17",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.17"
            },
            {
              "version": "6.6.160",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.17.8",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}