RetroPie / RetroPie-Setup

Shell script to set up a Raspberry Pi/Odroid/PC with RetroArch emulator and various cores
Other
10k stars 1.38k forks source link

bluetooth: fix PS3 pairing with recent BlueZ #3893

Closed cmitu closed 4 months ago

cmitu commented 4 months ago

Due to changes in BlueZ added to fix CVE-2023-45866, the PS3 controllers won't pair/work anymore with BlueZ. Since the path consist in only one change to default option (ClassicBondedOnly default changed, see [1]), it's been quickly added by all distros [2], [3]. This has already been reported in the forums and fixed (for Buster) by downgrading the bluez package. The same fix cannot be applied to current distros, so we can switch back the option to the way it works with PS3 controllers.

NOTE:

[1] https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/profiles/input?id=25a471a83e02e1effb15d5a488b3f0085eaeb675 [2] https://ubuntu.com/security/CVE-2023-45866 [3] https://security-tracker.debian.org/tracker/CVE-2023-45866 [4] https://github.com/marcnewlin/hi_my_name_is_keyboard?tab=readme-ov-file#linux-keystroke-injection

cmitu commented 4 months ago

Forgot to mention that the workaround/configuration has to be in-place even after pairing, otherwise re-connecting the controller doesn't work.

joolswills commented 4 months ago

Thank you.