Skip to content
Heist/ feed
High

Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete There is a BUG: KASAN: stack-out-of-bounds in set_mesh_sync due to memcpy from badly declared on-stack flexible array. Another crash is in set_mesh_complete() due to double list_del via mgmt_pending_valid + mgmt_pending_remove. Use DEFINE_FLEX to declare the flexible array right, and don't memcpy outside bounds. As mgmt_pending_valid removes the cmd from list, use mgmt_pending_free, and also report status on error.

Announced Source revision 1
Original source ↗

CVE-2025-40213

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-40213

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a",
        "lessThan": "31d6c9216aa1be18ba317239738f73b0b0c7b691",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d71b98f253b079cbadc83266383f26fe7e9e103b",
        "lessThan": "5c19daa93d9af29f1f46251b47e1ea66bcc8d679",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "302a1f674c00dd5581ab8e493ef44767c5101aab",
        "lessThan": "1c9aca1787e8395a2c59fef20e914467958969c5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "302a1f674c00dd5581ab8e493ef44767c5101aab",
        "lessThan": "e8785404de06a69d89dcdd1e9a0b6ea42dc6d327",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "87a1f16f07c6c43771754075e08f45b41d237421",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6.6.140",
        "lessThan": "6.6.160",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.16.10",
        "lessThan": "6.17",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "include/net/bluetooth/mgmt.h",
      "net/bluetooth/mgmt.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.17"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.17",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.17.8",
        "versionType": "semver",
        "lessThanOrEqual": "6.17.*"
      },
      {
        "status": "unaffected",
        "version": "6.18",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/net/bluetooth/mgmt.h",
      "net/bluetooth/mgmt.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-40213

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#46048 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement