CVE-2022-49754 Bluetooth: Fix a buffer overflow in mgmt_mesh_add()

High 7.8 Published Updated

A buffer overflow in the Linux kernel Bluetooth mesh management allows attackers to cause memory corruption, potentially leading to code execution or system crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49754?

CVE-2022-49754 is a high-severity memory corruption vulnerability in Linux kernel, published on 27 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: Fix a buffer overflow in mgmt_mesh_add()

Smatch Warning: net/bluetooth/mgmt_util.c:375 mgmt_mesh_add() error: __memcpy() 'mesh_tx->param' too small (48 vs 50)

Analysis:

'mesh_tx->param' is array of size 48. This is the destination. u8 param[sizeof(struct mgmt_cp_mesh_send) + 29]; // 19 + 29 = 48.

But in the caller 'mesh_send' we reject only when len > 50. len > (MGMT_MESH_SEND_SIZE + 31) // 19 + 31 = 50.

Weakness: CWE-120

Which versions are affected by CVE-2022-49754?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49754?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-49754 being exploited?

There is no known exploitation of CVE-2022-49754 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49754, GHSA-p2cv-98qj-r2qc, UBUNTU-CVE-2022-49754.

Is CVE-2022-49754 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free