Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-40213

HIGH 7.8EPSS 8%

Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete

Mitigation

  • Upgrade Linux to 6.17 or later.

Who should check

  • Anyone running Linux >= 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a, < 31d6c9216aa1be18ba317239738f73b0b0c7b691; >= d71b98f253b079cbadc83266383f26fe7e9e103b, < 5c19daa93d9af29f1f46251b47e1ea66bcc8d679; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < 1c9aca1787e8395a2c59fef20e914467958969c5; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < e8785404de06a69d89dcdd1e9a0b6ea42dc6d327; 87a1f16f07c6c43771754075e08f45b41d237421; >= 6.6.140, < 6.6.160; >= 6.16.10, < 6.17
  • Anyone running Linux 6.17

Vulnerability facts

Affected
Linux >= 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a, < 31d6c9216aa1be18ba317239738f73b0b0c7b691; >= d71b98f253b079cbadc83266383f26fe7e9e103b, < 5c19daa93d9af29f1f46251b47e1ea66bcc8d679; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < 1c9aca1787e8395a2c59fef20e914467958969c5; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < e8785404de06a69d89dcdd1e9a0b6ea42dc6d327; 87a1f16f07c6c43771754075e08f45b41d237421; >= 6.6.140, < 6.6.160; >= 6.16.10, < 6.17; Linux 6.17
Fixed in
Linux 31d6c9216aa1be18ba317239738f73b0b0c7b691, Linux 5c19daa93d9af29f1f46251b47e1ea66bcc8d679, Linux 1c9aca1787e8395a2c59fef20e914467958969c5, Linux 6.6.160, Linux 6.17
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a, < 31d6c9216aa1be18ba317239738f73b0b0c7b691; >= d71b98f253b079cbadc83266383f26fe7e9e103b, < 5c19daa93d9af29f1f46251b47e1ea66bcc8d679; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < 1c9aca1787e8395a2c59fef20e914467958969c5; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < e8785404de06a69d89dcdd1e9a0b6ea42dc6d327; 87a1f16f07c6c43771754075e08f45b41d237421; >= 6.6.140, < 6.6.160; >= 6.16.10, < 6.17—cvelist
Linux6.17—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-40213. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40213.md
Affected: Linux >= 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a, < 31d6c9216aa1be18ba317239738f73b0b0c7b691; >= d71b98f253b079cbadc83266383f26fe7e9e103b, < 5c19daa93d9af29f1f46251b47e1ea66bcc8d679; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < 1c9aca1787e8395a2c59fef20e914467958969c5; >= 302a1f674c00dd5581ab8e4…
Fixed in: Linux 31d6c9216aa1be18ba317239738f73b0b0c7b691, Linux 5c19daa93d9af29f1f46251b47e1ea66bcc8d679, Linux 1c9aca1787e8395a2c59fef20e914467958969c5, Linux 6.6.160, Linux 6.17

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-40213 being exploited?

There is no confirmed exploitation: CVE-2025-40213 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-40213?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-40213?

Linux >= 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a, < 31d6c9216aa1be18ba317239738f73b0b0c7b691; >= d71b98f253b079cbadc83266383f26fe7e9e103b, < 5c19daa93d9af29f1f46251b47e1ea66bcc8d679; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < 1c9aca1787e8395a2c59fef20e914467958969c5; >= 302a1f674c00dd5581ab8e493ef44767c5101aab, < e8785404de06a69d89dcdd1e9a0b6ea42dc6d327; 87a1f16f07c6c43771754075e08f45b41d237421; >= 6.6.140, < 6.6.160; >= 6.16.10, < 6.17; Linux 6.17.

Is there a fix for CVE-2025-40213?

Yes. Fixed in Linux 31d6c9216aa1be18ba317239738f73b0b0c7b691, Linux 5c19daa93d9af29f1f46251b47e1ea66bcc8d679, Linux 1c9aca1787e8395a2c59fef20e914467958969c5, Linux 6.6.160, Linux 6.17. Upgrade Linux to 6.17 or later.

How do I check if I'm affected by CVE-2025-40213?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors