Bug 2489100 - BLE advertising broken on F44 (MGMT_OP_ADD_EXT_ADV_DATA)
Summary: BLE advertising broken on F44 (MGMT_OP_ADD_EXT_ADV_DATA)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bluez
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Justin M. Forbes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-16 08:40 UTC by sfranken
Modified: 2026-07-12 00:59 UTC (History)
20 users (show)

Fixed In Version: bluez-5.86-5.fc44 bluez-5.87-2.fc43
Clone Of:
Environment:
Last Closed: 2026-06-24 01:30:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description sfranken 2026-06-16 08:40:13 UTC
## Summary

`kernel-7.0.x-*.fc44` breaks all BLE advertising registration via the BlueZ
D-Bus `LEAdvertisingManager1.RegisterAdvertisement` API. `bluetoothd` returns
`org.bluez.Error.Failed: Failed to register advertisement`; the kernel rejects
the `MGMT_OP_ADD_EXT_ADV_DATA` command with `Invalid Parameters (0x0d)`.

## Component / Version

- kernel-7.0.11-200.fc44 and kernel-7.0.12-201.fc44 (both affected)
- bluez-5.86-4.fc44
- Reproduced on two unrelated controllers (Realtek RTL8761BU, Nordic nRF) and
  with BlueZ's own `test/example-advertisement` and `bluetoothctl advertise on`,
  i.e. it is not application- or controller-specific.

## Steps to Reproduce

```
bluetoothctl -- advertise on
```

## Actual result

```
Failed to set advertise on
```
`bluetoothd` logs:
```
src/advertising.c:add_client_complete() Failed to add advertisement: Invalid Parameters (0x0d)
```

## Expected result

`Advertising object registered`.

## Root cause (confirmed by HCI/MGMT trace)

`btmon` capture of the failing sequence:

```
@ MGMT Command: Add Extended Advertising Parameters (0x0054) plen 18
        Instance: 1   Flags: 0x00000001 (Connectable)
@ MGMT Event:   Command Complete -> Status: Success (0x00)   Instance: 1

@ MGMT Command: Add Extended Advertising Data (0x0055) plen 14    <-- 14, but real content is 6 bytes
        Instance: 1
        Advertising data length: 3
        Advertising Data[3]: 02 01 06        (standard Flags AD)
        Scan response length: 0
@ MGMT Event:   Command Status -> Status: Invalid Parameters (0x0d)   <-- kernel rejects, no HCI issued
```

`bluetoothd` (`src/advertising.c:add_adv_params_callback`) sizes the
`MGMT_OP_ADD_EXT_ADV_DATA` buffer with `sizeof(struct mgmt_cp_add_advertising)`
(11 bytes) instead of `sizeof(struct mgmt_cp_add_ext_adv_data)` (3 bytes), so it
sends 8 trailing bytes. The kernel handler `add_ext_adv_data()` previously
ignored the slop; kernel commit **d3f7d17960ed** ("Bluetooth: MGMT: validate Add
Extended Advertising Data length", a `Cc: stable` fix for a KASAN slab-out-of-bounds
read) made the length check exact, so the over-long command is now rejected. That
stable backport reached the Fedora 44 kernel; the follow-up relaxation has not.

## Fix — please backport either (or both)

**Kernel** (preferred; restores backward compatibility, follows the stable fix):
```
149324fc762c2a7acef9c26790566f81f475e51f
  Bluetooth: MGMT: Fix backward compatibility with userspace
  Fixes: d3f7d17960ed ("Bluetooth: MGMT: validate Add Extended Advertising Data length")
```

**BlueZ** (fixes the actual defect; makes the command the correct size):
```
2a6968b40378dca5650e18e03ad0407738c47be5
  advertising: Fix sending extra bytes with MGMT_OP_ADD_EXT_ADV_DATA
```


Reproducible: Always

Comment 1 Fedora Update System 2026-06-22 09:38:20 UTC
FEDORA-2026-0b0dded71c (bluez-5.86-5.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-0b0dded71c

Comment 2 Fedora Update System 2026-06-22 09:38:49 UTC
FEDORA-2026-d10f575af5 (bluez-5.86-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d10f575af5

Comment 3 Bastien Nocera 2026-06-22 09:40:13 UTC
Fixed in bluez rawhide, updates submitted for F43 and F44.

The kernel side of things is also going to be fixed as kernel 7.1 just got released and the Fedora kernel should soon be updated to it.

Comment 4 Fedora Update System 2026-06-23 01:14:42 UTC
FEDORA-2026-0b0dded71c has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-0b0dded71c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-0b0dded71c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-06-23 01:37:08 UTC
FEDORA-2026-d10f575af5 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d10f575af5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d10f575af5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-06-24 01:30:36 UTC
FEDORA-2026-0b0dded71c (bluez-5.86-5.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2026-07-06 14:00:02 UTC
FEDORA-2026-7f7d44651d has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-7f7d44651d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7f7d44651d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-07-09 01:26:53 UTC
FEDORA-2026-b3df983849 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-b3df983849`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-b3df983849

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2026-07-12 00:59:30 UTC
FEDORA-2026-b3df983849 (bluez-5.87-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


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