CVE-2026-74511: Bluetooth: mgmt: fix pending command UAF in EIR updates
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: mgmt: fix pending command UAF in EIR updates
MGMTOPSETLOCALNAME is handled asynchronously on powered controllers and can run setnamesync(). When the controller is BR/EDR capable, setnamesync() updates the local name and then rebuilds EIR data through eircreate(). The EIR builder walks hdev->uuids, but the UUID list can be changed and entries can be freed by MGMTOPADDUUID and MGMTOPREMOVEUUID.
pendingeirorclass() is meant to serialize management commands that can change EIR or the class of device, but it did not include MGMTOPSETLOCALNAME. In addition, it walked hdev->mgmtpending without hdev->mgmtpendinglock even though pending commands are added and removed under that mutex. A racing command completion can therefore remove and free a pending command while pendingeirorclass() is still inspecting it, leading to a use-after-free in the pending-command list or allowing a local name update to rebuild EIR while UUID entries are being removed.
Take hdev->mgmtpendinglock while scanning hdev->mgmtpending and treat MGMTOPSETLOCALNAME as an EIR/class-affecting pending command on the powered asynchronous path. Check for a conflicting pending command before copying the new short name so a rejected SETLOCALNAME request does not modify hdev->shortname.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-74511?
The severity of CVE-2026-74511 is rated as high risk at 34.
How do I fix CVE-2026-74511?
To fix CVE-2026-74511, update your Linux kernel to the latest stable version that includes the patch addressing this vulnerability.
What does CVE-2026-74511 affect?
CVE-2026-74511 affects the Bluetooth management commands within the Linux kernel.
What type of vulnerability is CVE-2026-74511?
CVE-2026-74511 is classified as a Use After Free (UAF) vulnerability.
What are the potential consequences of CVE-2026-74511?
Exploitation of CVE-2026-74511 could lead to unauthorized access or denial of service on affected devices.