CVE-2025-40213

Source
https://cve.org/CVERecord?id=CVE-2025-40213
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40213.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40213
Downstream
AZL (1)
BELL (1)
DEBIAN (1)
openSUSE (1)
ROOT (1)
SUSE (13)
UBUNTU (1)
Related
Published
2025-11-24T15:59:44Z
Modified
2026-10-22T02:47:46Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40213.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a
Fixed
31d6c9216aa1be18ba317239738f73b0b0c7b691
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d71b98f253b079cbadc83266383f26fe7e9e103b
Fixed
5c19daa93d9af29f1f46251b47e1ea66bcc8d679
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
302a1f674c00dd5581ab8e493ef44767c5101aab
Fixed
1c9aca1787e8395a2c59fef20e914467958969c5
Fixed
e8785404de06a69d89dcdd1e9a0b6ea42dc6d327
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.6.140
Fixed
6.6.160
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.16.10
Fixed
6.17
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
87a1f16f07c6c43771754075e08f45b41d237421

Affected versions

v6.*
v6.16.10
v6.16.11
v6.16.12
v6.6.140
v6.6.141
v6.6.142
v6.6.143
v6.6.144
v6.6.145
v6.6.146
v6.6.147
v6.6.148
v6.6.149
v6.6.150
v6.6.151
v6.6.152
v6.6.153
v6.6.154
v6.6.155
v6.6.156
v6.6.157
v6.6.158
v6.6.159

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40213.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.6.160
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.17.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40213.json"