Bug 2255481

Summary: Bluez 5.71 breaks device pairing
Product: [Fedora] Fedora Reporter: Eric Work <work.eric>
Component: bluezAssignee: Gopal krishna tiwari <gopalkrishna.tiwari>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 39CC: dwmw2, gopalkrishna.tiwari, lnicola, pbrobinson, rgnoble, rvcsaba, spacewar
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://github.com/bluez/bluez/issues/686
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-29 16:40:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Work 2023-12-21 05:27:17 UTC
Due to a regression in Bluez 5.71 devices that previously paired perfectly fine no longer can pair. When looking at journalctl you will see errors such as the following:

bluetoothd[592]: Failed to load link keys for hci0: Invalid Parameters (0x0d)

This issue has already been reported at https://github.com/bluez/bluez/issues/686 and fixed by https://github.com/bluez/bluez/commit/7ad5669402c9acff8e4cc808edc12a41df36654e. Applying this patch on top of Bluez 5.71 resolves the pairing issue. When unpatched not only does it cause pairing issues on Linux, but some devices get into an inconsistent state and can't pair on Windows anymore when sharing the same pairing key (1).

[1] https://wiki.archlinux.org/title/Bluetooth#Dual_boot_pairing

Reproducible: Always

Steps to Reproduce:
1. Turn on device previously paired over Bluetooth
2. Click connect in GNOME Bluetooth settings to initiate a connection
Actual Results:  
It either connects and then immediately disconnects or doesn't connect at all.

Expected Results:  
The device should remain connected and allow the device to be used (ex: play audio).

It would be appreciated if this patch already upstreamed can be applied to the Fedora package. I have applied this patch to my local build of the bluez package and the issue has been resolved.

Comment 1 rvcsaba 2023-12-21 20:09:06 UTC
My problem is related.

bluez-5.70-5.fc39.x86_64 is work, but bluez-5.71-1.fc39.x86_64 can't connecting to my Panasonic SA-PMX80 micro hifi device.

Comment 2 Roger Noble 2023-12-29 16:02:55 UTC
Same here, has problems connecting to all my Bluetooth devices via KDE or using bluetoothctl. The patch described above fixes it.

Comment 3 Peter Robinson 2023-12-29 16:40:16 UTC

*** This bug has been marked as a duplicate of bug 2255295 ***