CVE-2022-49754

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
27/03/2025
Last modified:
28/03/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> Bluetooth: Fix a buffer overflow in mgmt_mesh_add()<br /> <br /> Smatch Warning:<br /> net/bluetooth/mgmt_util.c:375 mgmt_mesh_add() error: __memcpy()<br /> &amp;#39;mesh_tx-&gt;param&amp;#39; too small (48 vs 50)<br /> <br /> Analysis:<br /> <br /> &amp;#39;mesh_tx-&gt;param&amp;#39; is array of size 48. This is the destination.<br /> u8 param[sizeof(struct mgmt_cp_mesh_send) + 29]; // 19 + 29 = 48.<br /> <br /> But in the caller &amp;#39;mesh_send&amp;#39; we reject only when len &gt; 50.<br /> len &gt; (MGMT_MESH_SEND_SIZE + 31) // 19 + 31 = 50.

Impact