{
  "id": "CVE-2025-40213",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40213",
  "published_at": "2025-11-24T15:59:44Z",
  "title": "Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a, \u003c 31d6c9216aa1be18ba317239738f73b0b0c7b691",
          "\u003e= d71b98f253b079cbadc83266383f26fe7e9e103b, \u003c 5c19daa93d9af29f1f46251b47e1ea66bcc8d679",
          "\u003e= 302a1f674c00dd5581ab8e493ef44767c5101aab, \u003c 1c9aca1787e8395a2c59fef20e914467958969c5",
          "\u003e= 302a1f674c00dd5581ab8e493ef44767c5101aab, \u003c e8785404de06a69d89dcdd1e9a0b6ea42dc6d327",
          "87a1f16f07c6c43771754075e08f45b41d237421",
          "\u003e= 6.6.140, \u003c 6.6.160",
          "\u003e= 6.16.10, \u003c 6.17"
        ],
        "fixed_in": [
          "31d6c9216aa1be18ba317239738f73b0b0c7b691",
          "5c19daa93d9af29f1f46251b47e1ea66bcc8d679",
          "1c9aca1787e8395a2c59fef20e914467958969c5",
          "e8785404de06a69d89dcdd1e9a0b6ea42dc6d327",
          "6.6.160",
          "6.17"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.17"
        ],
        "fixed_in": [
          "0",
          "6.6.160",
          "6.17.8",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 31d6c9216aa1be18ba317239738f73b0b0c7b691 or 5c19daa93d9af29f1f46251b47e1ea66bcc8d679 or 1c9aca1787e8395a2c59fef20e914467958969c5 or e8785404de06a69d89dcdd1e9a0b6ea42dc6d327 or 6.6.160 or 6.17 or later.",
      "Upgrade Linux to 0 or 6.6.160 or 6.17.8 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
