diff --git a/backport-CVE-2023-45866.patch b/backport-CVE-2023-45866.patch new file mode 100644 index 0000000000000000000000000000000000000000..818decb99b05a8e399d1646278a065bf3f0dc1fd --- /dev/null +++ b/backport-CVE-2023-45866.patch @@ -0,0 +1,47 @@ +From 25a471a83e02e1effb15d5a488b3f0085eaeb675 Mon Sep 17 00:00:00 2001 +From: Luiz Augusto von Dentz +Date: Tue, 10 Oct 2023 13:03:12 -0700 +Subject: input.conf: Change default of ClassicBondedOnly + +This changes the default of ClassicBondedOnly since defaulting to false +is not inline with HID specification which mandates the of Security Mode +4: + +BLUETOOTH SPECIFICATION Page 84 of 123 +Human Interface Device (HID) Profile: + + 5.4.3.4.2 Security Modes + Bluetooth HID Hosts shall use Security Mode 4 when interoperating with + Bluetooth HID devices that are compliant to the Bluetooth Core + Specification v2.1+EDR[6]. +--- + profiles/input/device.c | 2 +- + profiles/input/input.conf | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/profiles/input/device.c b/profiles/input/device.c +index d89da2d..e6f9e84 100644 +--- a/profiles/input/device.c ++++ b/profiles/input/device.c +@@ -92,7 +92,7 @@ struct input_device { + + static int idle_timeout = 0; + static bool uhid_enabled = false; +-static bool classic_bonded_only = false; ++static bool classic_bonded_only = true; + + void input_set_idle_timeout(int timeout) + { +diff --git a/profiles/input/input.conf b/profiles/input/input.conf +index 166aff4..d0b6449 100644 +--- a/profiles/input/input.conf ++++ b/profiles/input/input.conf +@@ -17,5 +17,5 @@ + # platforms may want to make sure that input connections only come from bonded + # device connections. Several older mice have been known for not supporting + # pairing/encryption. +-# Defaults to false to maximize device compatibility. ++# Defaults to true for security. + #ClassicBondedOnly=true +-- +2.33.0 diff --git a/bluez.spec b/bluez.spec index 6c45def769be890728526b068a0f36d793a472a5..d3686f30e367852e8b8434098e3d6d088776c793 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,7 +1,7 @@ Name: bluez Summary: Bluetooth utilities Version: 5.54 -Release: 12 +Release: 13 License: GPLv2+ URL: http://www.bluez.org/ Source0: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz @@ -34,6 +34,7 @@ Patch6010: backport-CVE-2022-39176.patch Patch6011: backport-0001-CVE-2022-39177.patch Patch6012: backport-0002-CVE-2022-39177.patch Patch6013: backport-CVE-2023-27349.patch +Patch6014: backport-CVE-2023-45866.patch BuildRequires: dbus-devel >= 1.6 libell-devel >= 0.28 autoconf BuildRequires: git-core glib2-devel libical-devel readline-devel @@ -190,6 +191,9 @@ make check %{_mandir}/man8/* %changelog +* Fri Dec 08 2023 zhouwenpei - 5.54-13 +- fix CVE-2023-45866 + * Tue Apr 18 2023 zhouwenpei - 5.54-12 - DESC: fix CVE-2023-27349