From 7da64c9fbeafa113713ae6fcab695eaef1132b21 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 7 Feb 2019 17:23:05 -0500 Subject: [PATCH] polkit: fix CVE-2019-6133 Jann Horn of Google found that Polkit doesn't properly check if a process is already authenticated, which can lead to an authentication reuse by a different user[0]. See also [1] Closes #55391 [0]: https://bugs.chromium.org/p/project-zero/issues/detail?id=1692 [1]: https://gitlab.freedesktop.org/polkit/polkit/issues/75 --- pkgs/development/libraries/polkit/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix index 83f19e442c6..737a9a5badf 100644 --- a/pkgs/development/libraries/polkit/default.nix +++ b/pkgs/development/libraries/polkit/default.nix @@ -21,6 +21,12 @@ stdenv.mkDerivation rec { }; patches = [ + # CVE-2019-6133 - See: https://bugs.chromium.org/p/project-zero/issues/detail?id=1692 + (fetchpatch { + url = "https://gitlab.freedesktop.org/polkit/polkit/commit/6cc6aafee135ba44ea748250d7d29b562ca190e3.patch"; + name = "CVE-2019-6133.patch"; + sha256 = "0jjlbjzqcz96xh6w3nv3ss9jl0hhrcd7jg4aa5advf08ibaj29r1"; + }) # CVE-2018-19788 - high UID fixup (fetchpatch { url = "https://gitlab.freedesktop.org/polkit/polkit/commit/5230646dc6876ef6e27f57926b1bad348f636147.patch";