Compare commits

...

1 Commits
rawhide ... f33

Author SHA1 Message Date
Jan Rybar 21eb3f3e9f CVE-2021-3560 mitigation
Resolves: CVE-2021-3560
2021-06-03 14:29:34 +02:00
2 changed files with 19 additions and 1 deletions

13
CVE-2021-3560.patch Normal file
View File

@ -0,0 +1,13 @@
--- a/src/polkit/polkitsystembusname.c
+++ b/src/polkit/polkitsystembusname.c
@@ -435,6 +435,9 @@ polkit_system_bus_name_get_creds_sync (PolkitSystemBusName *system_bus
while (!((data.retrieved_uid && data.retrieved_pid) || data.caught_error))
g_main_context_iteration (tmp_context, TRUE);
+ if (data.caught_error)
+ goto out;
+
if (out_uid)
*out_uid = data.uid;
if (out_pid)

View File

@ -6,13 +6,14 @@
Summary: An authorization framework
Name: polkit
Version: 0.117
Release: 2%{?dist}
Release: 2%{?dist}.1
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/polkit
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
Patch1: mozjs78.patch
Patch2: CVE-2021-3560.patch
BuildRequires: gcc-c++
BuildRequires: glib2-devel >= 2.30.0
@ -176,6 +177,10 @@ exit 0
%{_libdir}/girepository-1.0/*.typelib
%changelog
* Thu May 20 2021 Jan Rybar <jrybar@redhat.com> - 0.117-2.1
- CVE-2021-3560 mitigation
- Resolves: CVE-2021-3560
* Wed Aug 12 2020 Jan Rybar <jrybar@redhat.com> - 0.117-2
- update dependency to mozjs78