CVE-2024-42132 bluetooth/hci: disallow setting handle bigger than HCI_CONN_HANDLE_MAX

High 7.6 Published Updated

A missing bounds check in the Linux kernel Bluetooth HCI subsystem allows a local attacker to trigger a kernel warning and potential denial of service.

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

What is CVE-2024-42132?

CVE-2024-42132 is a high-severity vulnerability in Linux kernel, published on 30 Jul 2024. 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/hci: disallow setting handle bigger than HCI_CONN_HANDLE_MAX

Syzbot hit warning in hci_conn_del() caused by freeing handle that was not allocated using ida allocator.

This is caused by handle bigger than HCI_CONN_HANDLE_MAX passed by hci_le_big_sync_established_evt(), which makes code think it's unset connection.

Add same check for handle upper bound as in hci_conn_set_handle() to prevent warning.

Weakness: CWE-763

Which versions are affected by CVE-2024-42132?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42132?

Apply the vendor's patch.

Is CVE-2024-42132 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-42132, DEBIAN-CVE-2024-42132, GHSA-6fvx-97p6-hw44, UBUNTU-CVE-2024-42132.

Is CVE-2024-42132 in your software?

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

Check your SBOMs for free