]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2024 12:51:21 +0000 (14:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2024 12:51:21 +0000 (14:51 +0200)
added patches:
bluetooth-qca-fix-error-code-in-qca_read_fw_build_info.patch

queue-5.15/bluetooth-qca-fix-error-code-in-qca_read_fw_build_info.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/bluetooth-qca-fix-error-code-in-qca_read_fw_build_info.patch b/queue-5.15/bluetooth-qca-fix-error-code-in-qca_read_fw_build_info.patch
new file mode 100644 (file)
index 0000000..85827fb
--- /dev/null
@@ -0,0 +1,34 @@
+From a189f0ee6685457528db7a36ded3085e5d13ddc3 Mon Sep 17 00:00:00 2001
+From: Dan Carpenter <dan.carpenter@linaro.org>
+Date: Sat, 4 May 2024 14:25:43 +0300
+Subject: Bluetooth: qca: Fix error code in qca_read_fw_build_info()
+
+From: Dan Carpenter <dan.carpenter@linaro.org>
+
+commit a189f0ee6685457528db7a36ded3085e5d13ddc3 upstream.
+
+Return -ENOMEM on allocation failure.  Don't return success.
+
+Fixes: cda0d6a198e2 ("Bluetooth: qca: fix info leak when fetching fw build id")
+Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
+Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
+Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/bluetooth/btqca.c |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/drivers/bluetooth/btqca.c
++++ b/drivers/bluetooth/btqca.c
+@@ -147,8 +147,10 @@ static int qca_read_fw_build_info(struct
+       }
+       build_label = kstrndup(&edl->data[1], build_lbl_len, GFP_KERNEL);
+-      if (!build_label)
++      if (!build_label) {
++              err = -ENOMEM;
+               goto out;
++      }
+       hci_set_fw_info(hdev, "%s", build_label);
index d173b7a1d74bbb388320bdb078bd2b5b917e9753..d67f2599a0df3a4ec1a4a2ce0be537aaf90a5e10 100644 (file)
@@ -172,3 +172,4 @@ usb-storage-alauda-check-whether-the-media-is-initia.patch
 i2c-at91-fix-the-functionality-flags-of-the-slave-on.patch
 i2c-designware-fix-the-functionality-flags-of-the-sl.patch
 zap_pid_ns_processes-clear-tif_notify_signal-along-w.patch
+bluetooth-qca-fix-error-code-in-qca_read_fw_build_info.patch