forked from microsoft/azurelinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch for Bluez CVE-2022-3563 (microsoft#6335)
* add patch for CVE-2022-3563 * add patch * update typo --------- Co-authored-by: minghe <rmhsawyer>
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
From e3c92f1f786f0b55440bd908b55894d0c792cf0e Mon Sep 17 00:00:00 2001 | ||
From: Tedd Ho-Jeong An <[email protected]> | ||
Date: Wed, 22 Jun 2022 21:45:20 -0700 | ||
Subject: mgmt-tester: Fix null dereference issue reported by scan-build | ||
|
||
This patch fixes the null dereference reported by the scan-build. | ||
|
||
tools/mgmt-tester.c:12025:28: warning: Access to field 'cap_len' results | ||
in a dereference of a null pointer (loaded from variable 'rp') | ||
[core.NullDereference] | ||
|
||
if (sizeof(rp->cap_len) + rp->cap_len != length) { | ||
^~~~~~~~~~~ | ||
--- | ||
tools/mgmt-tester.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c | ||
index f45a6c015e..6018327f10 100644 | ||
--- a/tools/mgmt-tester.c | ||
+++ b/tools/mgmt-tester.c | ||
@@ -12020,12 +12020,14 @@ static void read_50_controller_cap_complete(uint8_t status, uint16_t length, | ||
tester_warn("Failed to read advertising features: %s (0x%02x)", | ||
mgmt_errstr(status), status); | ||
tester_test_failed(); | ||
+ return; | ||
} | ||
|
||
if (sizeof(rp->cap_len) + rp->cap_len != length) { | ||
tester_warn("Controller capabilities malformed, size %zu != %u", | ||
sizeof(rp->cap_len) + rp->cap_len, length); | ||
tester_test_failed(); | ||
+ return; | ||
} | ||
|
||
while (offset < rp->cap_len) { | ||
-- | ||
cgit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Summary: Bluetooth utilities | ||
Name: bluez | ||
Version: 5.63 | ||
Release: 3%{?dist} | ||
Release: 4%{?dist} | ||
License: GPLv2+ AND LGPLv2+ | ||
Vendor: Microsoft Corporation | ||
Distribution: Mariner | ||
|
@@ -23,6 +23,7 @@ Patch6: 0002-Use-g_memdup2-everywhere.patch | |
# Both patches have one rediff necessary to apply to 5.63 | ||
Patch7: 0001-hog-Fix-read-order-of-attributes-rediffed.patch | ||
Patch8: 0002-hog-Add-input-queue-while-uhid-device-has-not-been-c-rediffed.patch | ||
Patch9: CVE-2022-3563.patch | ||
BuildRequires: autoconf | ||
BuildRequires: automake | ||
# For printing | ||
|
@@ -271,6 +272,9 @@ install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/ | |
%{_userunitdir}/obex.service | ||
|
||
%changelog | ||
* Mon Oct 02 2023 Minghe Ren <[email protected]> - 5.63-4 | ||
- Add patch for CVE-2022-3563 | ||
|
||
* Wed Sep 20 2023 Jon Slobodzian <[email protected]> - 5.63-3 | ||
- Recompile with stack-protection fixed gcc version (CVE-2023-4039) | ||
|
||
|