CVE-2025-40213

Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete

HIGH
7.8
CVSS Score
Published: November 24, 2025 at 03:59 PM UTC
Updated: October 21, 2026 at 01:18 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a302a1f674c00dd5581ab8e493ef44767c5101aab6.16.106.176.6.14087a1f16f07c6c43771754075e08f45b41d237421d71b98f253b079cbadc83266383f26fe7e9e103b
Vendor states this is fixed in 1c9aca1787e8395a2c59fef20e914467958969c5 (fixed)
Vendor states this is fixed in 5c19daa93d9af29f1f46251b47e1ea66bcc8d679 (fixed)
Vendor states this is fixed in e8785404de06a69d89dcdd1e9a0b6ea42dc6d327 (fixed)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.17.8 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.160 (unaffected)
Affected range stops below 6.7, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card