Skip to content

Commit 9e01b06

Browse files
committed
polkit: fix local priviledge escalation in pkexec
> We discovered a Local Privilege Escalation (from any user to root) in > polkit's pkexec, a SUID-root program that is installed by default on > every major Linux distribution https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt Fixes: CVE-2021-4034
1 parent 54a44e4 commit 9e01b06

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkgs/development/libraries/polkit/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ stdenv.mkDerivation rec {
6060
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/7ba07551dfcd4ef9a87b8f0d9eb8b91fabcb41b3.patch";
6161
sha256 = "ebbLILncq1hAZTBMsLm+vDGw6j0iQ0crGyhzyLZQgKA=";
6262
})
63+
# pkexec: local privilege escalation (CVE-2021-4034)
64+
(fetchpatch {
65+
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683.patch";
66+
sha256 = "162jkpg2myq0rb0s5k3nfr4pqwv9im13jf6vzj8p5l39nazg5i4s";
67+
})
6368
] ++ lib.optionals stdenv.hostPlatform.isMusl [
6469
# Make netgroup support optional (musl does not have it)
6570
# Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10

0 commit comments

Comments
 (0)