View Issue Details

IDProjectCategoryView StatusLast Update
0009713Kali LinuxKali Package Bugpublic2026-06-08 19:18
ReporterRZA_SF Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0009713: pkexec issues: Regression since 127+really126-0+kali1
Description

In issue 0009497, we experienced the failures to authenticate (e.g. opening a root terminal in the GUI).

I'm on kali-rolling and noticed this regress some weeks back. I waited a while, figuring others would see this and it may be resolved. It's an issue again in my environment following upgrade post `127+really126-0+kali1'.

Currently I'm experiencing this in version `127+really127-0kali1'.

# apt search pkexec
pkexec/kali-rolling,now 127+really127-0kali1 amd64 [installed,automatic]
  run commands as another user with polkit authorization

pkexec-dbgsym/kali-rolling 127+really127-0kali1 amd64
  debug symbols for pkexec

polkitd/kali-rolling,now 127+really127-0kali1 amd64 [installed,automatic]
  framework for managing administrative policies and privileges

Activities

RZA_SF

RZA_SF

2026-05-26 18:35

reporter   ~0021714

I've tried setuid and it seems to have resolved for one of the hosts exhibiting the issue.

chmod u+s /usr/lib/polkit-1/polkit-agent-helper-1

RZA_SF

RZA_SF

2026-05-26 20:50

reporter   ~0021715

So the regression would also be an upstream issue, just like 0009497 with https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125141 ?

arnaudr

arnaudr

2026-05-27 00:47

manager   ~0021716

Hello.

First thing: did you reboot after the upgrade? Cf. https://bugs.kali.org/view.php?id=9497#c21506. You MUST reboot after this particular update of polkit / pkexec. I guess you did, given you said « noticed this regress some weeks back ».

Second question: what terminal do you use?

RZA_SF

RZA_SF

2026-05-27 16:45

reporter   ~0021717

Last edited: 2026-05-27 16:50

First thing: did you reboot after the upgrade?

Yes indeed. My typical habit is rebooting after any updates via kali-rolling (regardless of whether needed or not). As you mentioned, yes, when this regressed I noticed it after reboot. :-(

Second question: what terminal do you use?

qterminal (built-in), Xfce, launched from the toolbar using the built-in shortcut (red terminal icon).

I wish I took a note of when I saw this regress. I didn't look to see how many releases there have been between 127+really126-0+kali1 and 127+really127-0kali1. I'm also surprised this hasn't been seen by anyone else running kali-rolling (at least I haven't found any reports or discussion).

I've experienced this on at least two hosts, <del>and I've been reluctant to upgrade a laptop on kali-rolling until I understand what is going on.</del> make that three hosts. The laptop I thought wasn't upgraded, was and is also exhibiting the issue, 127+really127-0kali1 installed.

RZA_SF

RZA_SF

2026-05-27 16:58

reporter   ~0021718

# grep -r "polkitd" /var/log/dpkg.log*
/var/log/dpkg.log.1:2026-04-03 14:40:05 upgrade polkitd:amd64 127+really126-0+kali1 127+really127-0kali1
/var/log/dpkg.log.1:2026-04-03 14:40:05 status half-configured polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.1:2026-04-03 14:40:05 status unpacked polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.1:2026-04-03 14:40:05 status half-installed polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.1:2026-04-03 14:40:05 status unpacked polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log.1:2026-04-03 14:40:26 configure polkitd:amd64 127+really127-0kali1 <none>
/var/log/dpkg.log.1:2026-04-03 14:40:26 status unpacked polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log.1:2026-04-03 14:40:26 status half-configured polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log.1:2026-04-03 14:40:27 status triggers-awaited polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log.1:2026-04-03 14:40:31 status installed polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log.4:2026-01-12 16:04:47 upgrade polkitd:amd64 126-2+kali1 127-1+kali1
/var/log/dpkg.log.4:2026-01-12 16:04:47 status half-configured polkitd:amd64 126-2+kali1
/var/log/dpkg.log.4:2026-01-12 16:04:47 status unpacked polkitd:amd64 126-2+kali1
/var/log/dpkg.log.4:2026-01-12 16:04:47 status half-installed polkitd:amd64 126-2+kali1
/var/log/dpkg.log.4:2026-01-12 16:04:48 status unpacked polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-12 16:06:02 configure polkitd:amd64 127-1+kali1 <none>
/var/log/dpkg.log.4:2026-01-12 16:06:02 status unpacked polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-12 16:06:02 status half-configured polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-12 16:06:03 status triggers-awaited polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-12 16:06:21 status installed polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:11 upgrade polkitd:amd64 127-1+kali1 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:11 status half-configured polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:11 status unpacked polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:11 status half-installed polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:11 status unpacked polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:24 configure polkitd:amd64 127+really126-0+kali1 <none>
/var/log/dpkg.log.4:2026-01-14 00:14:24 status unpacked polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:24 status half-configured polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:25 status triggers-awaited polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-14 00:14:26 status installed polkitd:amd64 127+really126-0+kali1
RZA_SF

RZA_SF

2026-05-27 17:07

reporter   ~0021719

From the aforementioned laptop:

# grep "polkitd" /var/log/dpkg.log*
/var/log/dpkg.log:2026-05-25 23:27:07 upgrade polkitd:amd64 127+really126-0+kali1 127+really127-0kali1
/var/log/dpkg.log:2026-05-25 23:27:07 status half-configured polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log:2026-05-25 23:27:07 status unpacked polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log:2026-05-25 23:27:07 status half-installed polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log:2026-05-25 23:27:07 status unpacked polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log:2026-05-25 23:40:54 configure polkitd:amd64 127+really127-0kali1 <none>
/var/log/dpkg.log:2026-05-25 23:40:54 status unpacked polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log:2026-05-25 23:40:54 status half-configured polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log:2026-05-25 23:40:55 status installed polkitd:amd64 127+really127-0kali1
/var/log/dpkg.log.4:2026-01-17 20:06:49 upgrade polkitd:amd64 127-1+kali1 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-17 20:06:49 status half-configured polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-17 20:06:49 status unpacked polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-17 20:06:49 status half-installed polkitd:amd64 127-1+kali1
/var/log/dpkg.log.4:2026-01-17 20:06:49 status unpacked polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-17 20:07:36 configure polkitd:amd64 127+really126-0+kali1 <none>
/var/log/dpkg.log.4:2026-01-17 20:07:36 status unpacked polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-17 20:07:36 status half-configured polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-17 20:07:36 status triggers-awaited polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.4:2026-01-17 20:07:38 status installed polkitd:amd64 127+really126-0+kali1
/var/log/dpkg.log.5:2026-01-12 16:08:21 upgrade polkitd:amd64 126-2+kali1 127-1+kali1
/var/log/dpkg.log.5:2026-01-12 16:08:21 status half-configured polkitd:amd64 126-2+kali1
/var/log/dpkg.log.5:2026-01-12 16:08:21 status unpacked polkitd:amd64 126-2+kali1
/var/log/dpkg.log.5:2026-01-12 16:08:21 status half-installed polkitd:amd64 126-2+kali1
/var/log/dpkg.log.5:2026-01-12 16:08:21 status unpacked polkitd:amd64 127-1+kali1
/var/log/dpkg.log.5:2026-01-12 16:13:55 configure polkitd:amd64 127-1+kali1 <none>
/var/log/dpkg.log.5:2026-01-12 16:13:55 status unpacked polkitd:amd64 127-1+kali1
/var/log/dpkg.log.5:2026-01-12 16:13:55 status half-configured polkitd:amd64 127-1+kali1
/var/log/dpkg.log.5:2026-01-12 16:13:56 status triggers-awaited polkitd:amd64 127-1+kali1
/var/log/dpkg.log.5:2026-01-12 16:14:48 status installed polkitd:amd64 127-1+kali1
/var/log/dpkg.log.10:2025-07-10 17:43:02 install polkitd:amd64 <none> 126-2+kali1
/var/log/dpkg.log.10:2025-07-10 17:43:02 status half-installed polkitd:amd64 126-2+kali1
/var/log/dpkg.log.10:2025-07-10 17:43:02 status unpacked polkitd:amd64 126-2+kali1
/var/log/dpkg.log.10:2025-07-10 17:47:56 configure polkitd:amd64 126-2+kali1 <none>
/var/log/dpkg.log.10:2025-07-10 17:47:56 status unpacked polkitd:amd64 126-2+kali1
/var/log/dpkg.log.10:2025-07-10 17:47:56 status half-configured polkitd:amd64 126-2+kali1
/var/log/dpkg.log.10:2025-07-10 17:47:56 status installed polkitd:amd64 126-2+kali1
RZA_SF

RZA_SF

2026-05-27 18:04

reporter   ~0021720

From the third host, and an attempt at readability. :-)

# grep -r "polkitd" /var/log/dpkg.log* |awk -F: 'BEGIN { OFS=":" } { print $2,$3,$4,$5 }' | sort -g
2026-01-09 09:45:44 status half-configured polkitd:amd64 126-2+kali1
2026-01-09 09:45:44 status half-installed polkitd:amd64 126-2+kali1
2026-01-09 09:45:44 status unpacked polkitd:amd64 126-2+kali1
2026-01-09 09:45:44 status unpacked polkitd:amd64 127-1+kali1
2026-01-09 09:45:44 upgrade polkitd:amd64 126-2+kali1 127-1+kali1
2026-01-09 09:45:54 configure polkitd:amd64 127-1+kali1 <none>
2026-01-09 09:45:54 status half-configured polkitd:amd64 127-1+kali1
2026-01-09 09:45:54 status unpacked polkitd:amd64 127-1+kali1
2026-01-09 09:45:55 status installed polkitd:amd64 127-1+kali1
2026-01-09 09:45:55 status triggers-awaited polkitd:amd64 127-1+kali1
2026-01-13 09:20:19 status half-configured polkitd:amd64 127-1+kali1
2026-01-13 09:20:19 status half-installed polkitd:amd64 127-1+kali1
2026-01-13 09:20:19 status unpacked polkitd:amd64 127+really126-0+kali1
2026-01-13 09:20:19 status unpacked polkitd:amd64 127-1+kali1
2026-01-13 09:20:19 upgrade polkitd:amd64 127-1+kali1 127+really126-0+kali1
2026-01-13 09:20:20 configure polkitd:amd64 127+really126-0+kali1 <none>
2026-01-13 09:20:20 status half-configured polkitd:amd64 127+really126-0+kali1
2026-01-13 09:20:20 status unpacked polkitd:amd64 127+really126-0+kali1
2026-01-13 09:20:21 status triggers-awaited polkitd:amd64 127+really126-0+kali1
2026-01-13 09:20:23 status installed polkitd:amd64 127+really126-0+kali1
2026-04-03 13:10:47 status half-configured polkitd:amd64 127+really126-0+kali1
2026-04-03 13:10:47 upgrade polkitd:amd64 127+really126-0+kali1 127+really127-0kali1
2026-04-03 13:10:48 status half-installed polkitd:amd64 127+really126-0+kali1
2026-04-03 13:10:48 status unpacked polkitd:amd64 127+really126-0+kali1
2026-04-03 13:10:48 status unpacked polkitd:amd64 127+really127-0kali1
2026-04-03 13:10:49 configure polkitd:amd64 127+really127-0kali1 <none>
2026-04-03 13:10:49 status half-configured polkitd:amd64 127+really127-0kali1
2026-04-03 13:10:49 status unpacked polkitd:amd64 127+really127-0kali1
2026-04-03 13:10:50 status triggers-awaited polkitd:amd64 127+really127-0kali1
2026-04-03 13:10:52 status installed polkitd:amd64 127+really127-0kali1
arnaudr

arnaudr

2026-05-28 08:07

manager   ~0021723

Can you please paste the output of these commands?

dpkg -l | grep -E 'polkitd|pkexec|kali-menu|kali-default' | column -t -l 5

which qterminal

ls -l /usr/share/polkit-1/actions/org.kali.pkexec.policy

sha1sum /usr/share/polkit-1/actions/org.kali.pkexec.policy

Thanks

RZA_SF

RZA_SF

2026-05-29 04:00

reporter   ~0021728

Last edited: 2026-05-29 04:00

From the laptop:

└─# dpkg -l | grep -E 'polkitd|pkexec|kali-menu|kali-default' | column -t -l 5
ii  kali-defaults          2026.2.10             all    Kali default settings
ii  kali-defaults-desktop  2026.2.10             all    Kali default settings for graphical desktops
ii  kali-menu              2026.2.5              all    Kali Linux custom menu
ii  pkexec                 127+really127-0kali1  amd64  run commands as another user with polkit authorization
ii  polkitd                127+really127-0kali1  amd64  framework for managing administrative policies and privileges

└─# which qterminal
/usr/bin/qterminal

└─# ls -l /usr/share/polkit-1/actions/org.kali.pkexec.policy
-rw-r--r-- 1 root root 12817 May 14 01:25 /usr/share/polkit-1/actions/org.kali.pkexec.policy

└─# sha1sum /usr/share/polkit-1/actions/org.kali.pkexec.policy
94d00585e95edc94b69db6f22cc7d87149da7e78  /usr/share/polkit-1/actions/org.kali.pkexec.policy
arnaudr

arnaudr

2026-05-29 09:21

manager   ~0021729

Ok, everything looks good in your logs above... Please give me the output of:

ls -l /usr/lib/systemd/system/polkit-agent-helper.socket

ps fax | grep polkit | grep -v grep

systemctl status polkit-agent-helper.socket
RZA_SF

RZA_SF

2026-05-29 16:39

reporter   ~0021735

└─# ls -l /usr/lib/systemd/system/polkit-agent-helper.socket  
-rw-r--r-- 1 root root 200 Dec 17 08:14 /usr/lib/systemd/system/polkit-agent-helper.socket

└─# ps fax | grep polkit | grep -v grep
   1632 ?        Sl     0:01          \_ /usr/libexec/polkit-mate-authentication-agent-1
 582332 ?        Ssl    0:07 /usr/lib/polkit-1/polkitd --no-debug --log-level=notice

└─# systemctl status polkit-agent-helper.socket
○ polkit-agent-helper.socket - Authorization Manager Agent Helper
     Loaded: loaded (/usr/lib/systemd/system/polkit-agent-helper.socket; disabled; preset: enabled)
     Active: inactive (dead)
       Docs: man:polkit(8)
     Listen: /run/polkit/agent-helper.socket (Stream)
   Accepted: 0; Connected: 0;

uptime... ;-)

└─# uptime          
 09:38:37 up 33 days, 17:19,  1 user,  load average: 1.77, 0.68, 0.30
arnaudr

arnaudr

2026-05-30 04:02

manager   ~0021737

Looks like your polkit-agent-helper is disabled and that's the issue.

Try that:

systemctl enable --now polkit-agent-helper.socket

That should fix the issue. If it doesn't fix it, try a reboot and retry. Does that work?

RZA_SF

RZA_SF

2026-05-31 00:13

reporter   ~0021741

└─# systemctl enable --now polkit-agent-helper.socket
Created symlink '/etc/systemd/system/sockets.target.wants/polkit-agent-helper.socket' → '/usr/lib/systemd/system/polkit-agent-helper.socket'.

No change after enabling, need to reboot. Will try that momentarily.

RZA_SF

RZA_SF

2026-05-31 00:51

reporter   ~0021742

Last edited: 2026-05-31 00:52

Rebooting the system after enabling made the laptop work.

On the other two systems, (0009713:0021714) setuid permitted the root terminal to launch (across reboots), and their helpers are still disabled:

Sat May 30 17:42:16 PDT 2026

○ polkit-agent-helper.socket - Authorization Manager Agent Helper
     Loaded: loaded (/usr/lib/systemd/system/polkit-agent-helper.socket; disabled; preset: enabled)
     Active: inactive (dead)
       Docs: man:polkit(8)
     Listen: /run/polkit/agent-helper.socket (Stream)
   Accepted: 0; Connected: 0;

i.e.:

└─# ls -al /usr/lib/polkit-1/polkit-agent-helper-1
-rwsr-xr-x 1 root root 22840 Mar 31 21:49 /usr/lib/polkit-1/polkit-agent-helper-1

For some reason 3 of 3 systems didn't have the helper enabled (and I'm assuming that should have been the case since you mentioned it!). I'm wondering what the conditions are which do not set it to enabled. I'm surprised nobody else has reported this experience.

Guessing there are only a few situations where it's not enabled? (e.g., is not set... or becomes disabled after repeat crash)

Should the upgrade ensure it's enabled? Is this a Debian inherited thing?

arnaudr

arnaudr

2026-06-01 05:06

manager   ~0021748

For some reason 3 of 3 systems didn't have the helper enabled (and I'm assuming that should have been the case since you mentioned it!). I'm wondering what the conditions are which do not set it to enabled. I'm surprised nobody else has reported this experience.

I'm also curious about that. Do you think that you could zip the directory /var/log/apt on the machine that didn't have the setuid bit, and then send it over to [email protected]? The issue could be due to how packages are ordered during the "apt upgrade" transaction. For the polkit-agent-helper to be enabled you need the latest version of base-files (this is a Kali-specific thing). If both base-files and polkit are updagred together, maybe there's an issue. I think I tested this scenario, but not 100% sure anymore.

Note that the setuid bit should not be set, ie. you should remove it now that we know what is the correct fix (which is, to enable polkit-agent-helper.socket) .

The latest version of polkit did some refactoring so that there's no need for the setuid bit anymore, to increase security of the system. So setting the setuid bit reverts back to a less secure system -- not good!

RZA_SF

RZA_SF

2026-06-03 04:28

reporter   ~0021754

Do you think that you could zip the directory /var/log/apt on the machine that didn't have the setuid bit, and then send it over to [email protected]?

Yes, just sent.

arnaudr

arnaudr

2026-06-03 05:27

manager   ~0021755

Thanks! I understand better what happens now. Because you updated your system at the time of https://bugs.kali.org/view.php?id=9497, at the time the service polkit-agent-helper.socket was disabled during the apt upgrade transaction, because that's what we do for network services by default in Kali, we disable it. Later on I update the policy to specifically allow the service polkit-agent-helper.socket (this is in the base-files package). But for all users that updated their system before that and got the bogus polkitd package, that was too late, the service was already disabled.

And there's nothing in place to forcefully enable polkit-agent-helper.socket when installed , so all those users have to enable it manually...

I'll check if I can force enabling polkit-agent-helper.socket somehow

arnaudr

arnaudr

2026-06-05 10:52

manager   ~0021756

And this is fixed with version 127+really127-3kali1 of polkitd ! Thank you very much @RZA_SF for helping to troubleshoot this issue!

RZA_SF

RZA_SF

2026-06-08 19:18

reporter   ~0021760

Awesome, glad to help. Looking forward to reversing the setuid on those two boxes and testing it out. :-)

Issue History

Date Modified Username Field Change
2026-05-26 17:47 RZA_SF New Issue
2026-05-26 18:35 RZA_SF Note Added: 0021714
2026-05-26 20:50 RZA_SF Note Added: 0021715
2026-05-27 00:47 arnaudr Note Added: 0021716
2026-05-27 16:45 RZA_SF Note Added: 0021717
2026-05-27 16:48 RZA_SF Note Edited: 0021717
2026-05-27 16:50 RZA_SF Note Edited: 0021717
2026-05-27 16:58 RZA_SF Note Added: 0021718
2026-05-27 17:07 RZA_SF Note Added: 0021719
2026-05-27 18:04 RZA_SF Note Added: 0021720
2026-05-28 07:52 arnaudr Description Updated
2026-05-28 08:07 arnaudr Note Added: 0021723
2026-05-29 04:00 RZA_SF Note Added: 0021728
2026-05-29 04:00 RZA_SF Note Edited: 0021728
2026-05-29 09:21 arnaudr Note Added: 0021729
2026-05-29 16:39 RZA_SF Note Added: 0021735
2026-05-30 04:02 arnaudr Note Added: 0021737
2026-05-31 00:13 RZA_SF Note Added: 0021741
2026-05-31 00:51 RZA_SF Note Added: 0021742
2026-05-31 00:52 RZA_SF Note Edited: 0021742
2026-05-31 00:52 RZA_SF Note Edited: 0021742
2026-06-01 05:06 arnaudr Note Added: 0021748
2026-06-03 04:28 RZA_SF Note Added: 0021754
2026-06-03 05:27 arnaudr Note Added: 0021755
2026-06-05 10:52 arnaudr Note Added: 0021756
2026-06-08 19:18 RZA_SF Note Added: 0021760