Bug 2416793 (CVE-2025-40213) - CVE-2025-40213 kernel: Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete
Summary: CVE-2025-40213 kernel: Bluetooth: MGMT: fix crash in set_mesh_sync and set_me...
Keywords:
Status: NEW
Alias: CVE-2025-40213
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-24 17:01 UTC by OSIDB Bzimport
Modified: 2025-11-26 14:06 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-24 17:01:16 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.