Skip to content

Commit aab2d1b

Browse files
hbebermananphel31
authored andcommitted
colord: fix CVE-2021-42523 (#3675)
1 parent ce20a21 commit aab2d1b

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

SPECS/colord/CVE-2021-42523.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff -Naur a/src/cd-device-db.c b/src/cd-device-db.c
2+
--- a/src/cd-device-db.c 2019-03-08 04:43:10.000000000 -0800
3+
+++ b/src/cd-device-db.c 2022-09-01 17:19:29.006382333 -0700
4+
@@ -91,7 +91,7 @@
5+
6+
/* check properties version 2 */
7+
rc = sqlite3_exec (priv->db, "SELECT * FROM properties_v2 LIMIT 1",
8+
- NULL, NULL, &error_msg);
9+
+ NULL, NULL, NULL);
10+
if (rc != SQLITE_OK) {
11+
statement = "CREATE TABLE properties_v2 ("
12+
"device_id TEXT,"
13+
diff -Naur a/src/cd-profile-db.c b/src/cd-profile-db.c
14+
--- a/src/cd-profile-db.c 2019-03-08 04:43:11.000000000 -0800
15+
+++ b/src/cd-profile-db.c 2022-09-01 17:21:45.006213393 -0700
16+
@@ -79,7 +79,7 @@
17+
18+
/* check schema */
19+
rc = sqlite3_exec (priv->db, "SELECT * FROM properties_pu LIMIT 1",
20+
- NULL, NULL, &error_msg);
21+
+ NULL, NULL, NULL);
22+
if (rc != SQLITE_OK) {
23+
statement = "CREATE TABLE properties_pu ("
24+
"profile_id TEXT,"

SPECS/colord/colord.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
Summary: Color daemon
88
Name: colord
99
Version: 1.4.4
10-
Release: 8%{?dist}
10+
Release: 9%{?dist}
1111
License: GPLv2+ and LGPLv2+
1212
Vendor: Microsoft Corporation
1313
Distribution: Mariner
1414
URL: https://www.freedesktop.org/software/colord/
1515
Source0: https://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
1616
Source1: %{name}-LGPLv2.txt
17+
Patch0: CVE-2021-42523.patch
1718
BuildRequires: bash-completion
1819
BuildRequires: color-filesystem
1920
BuildRequires: dbus-devel
@@ -87,7 +88,7 @@ Summary: Data files for installed tests
8788
Data files for installed tests.
8889

8990
%prep
90-
%setup -q
91+
%autosetup -p1
9192
cp %{SOURCE1} COPYING-LGPLv2.txt
9293

9394
%build
@@ -233,6 +234,9 @@ exit 0
233234
%{_datadir}/installed-tests/colord/*
234235

235236
%changelog
237+
* Thu Sep 01 2022 Henry Beberman <[email protected]> - 1.4.4-9
238+
- Patch CVE-2021-42523 to remove unused error_msg pointers.
239+
236240
* Wed Dec 08 2021 Thomas Crain <[email protected]> - 1.4.4-8
237241
- License verified, added LGPLv2 license text
238242
- Lint spec

0 commit comments

Comments
 (0)