Skip to content

Commit 715c857

Browse files
mweineltgithub-actions[bot]
authored andcommitted
polkit: Fix local privilege escalation vulnerability
Fixes a local privilege escalation using polkit_system_bus_name_get_creds_sync() Fixes: CVE-2021-3560 (cherry picked from commit 26ac1d5)
1 parent c0e22c2 commit 715c857

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkgs/development/libraries/polkit/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ stdenv.mkDerivation rec {
3434
url = "https://gitlab.freedesktop.org/polkit/polkit/commit/5dd4e22efd05d55833c4634b56e473812b5acbf2.patch";
3535
sha256 = "17lv7xj5ksa27iv4zpm4zwd4iy8zbwjj4ximslfq3sasiz9kxhlp";
3636
})
37+
(fetchpatch {
38+
# https://www.openwall.com/lists/oss-security/2021/06/03/1
39+
# https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/79
40+
name = "CVE-2021-3560.patch";
41+
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a04d13affe0fa53ff618e07aa8f57f4c0e3b9b81.patch";
42+
sha256 = "157ddsizgr290jsb8fpafrc37gc1qw5pdvl351vnn3pzhqs7n6f4";
43+
})
3744
] ++ lib.optionals stdenv.hostPlatform.isMusl [
3845
# Make netgroup support optional (musl does not have it)
3946
# Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10

0 commit comments

Comments
 (0)