Every CVE Search/ Get API key

CVE-2026-41054

Missing exit out of permission check in haveged could lead to root exploit

7.8 HighFix available

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.18%Up 0.2 points since May 20, 2026
90%50%10%1%

What each source reports

CVE List Score used 7.8

Missing exit out of permission check in haveged could lead to root exploit

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
CVE-2026-41054
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-305
Updated
2026-11-02
EUVDEUVD-2026-31076 7.8

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
EUVD-2026-31076
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-c5g3-m8p9-m3gh 7.8

In `src/havegecmd.c`, the `socket_handler` function performs a credential check on the abstract...

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
GHSA-c5g3-m8p9-m3gh
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-305
Updated
2026-11-02
NVD 7.8

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
CVE-2026-41054
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-305
Updated
2026-11-02
OSVALPINE-CVE-2026-41054 7.8

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
ALPINE-CVE-2026-41054
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2026-41054 7.8
Record
BELL-CVE-2026-41054
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 9 moreShow less
OSVDEBIAN-CVE-2026-41054 7.8

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
DEBIAN-CVE-2026-41054
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2026-41054 7.8

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
UBUNTU-CVE-2026-41054
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVAZL-87113 No score

CVE-2026-41054 affecting package haveged for versions less than 1.9.22-1

In src/havegecmd.c, the socket_handler function performs a credential check on the abstract UNIX socket (\0/sys/entropy/haveged). However, while it detects if the connecting user is not root (cred.uid != 0) and prepares a negative acknowledgement (ASCII_NAK), it fails to stop execution. The code proceeds to the switch statement, allowing any local unprivileged user to execute privileged commands such as MAGIC_CHROOT.

Record
AZL-87113
Updated
2026-11-02
OSVMGASA-2026-0275 No score

Updated haveged package fixes a security vulnerability

The updated package fixes a security vulnerability: Privilege escalation via command socket. (CVE-2026-41054)

Record
MGASA-2026-0275
Updated
2026-11-02
OSVopenSUSE-SU-2026:10833-1 No score

haveged-1.9.21-1.1 on GA media

These are all security issues fixed in the haveged-1.9.21-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:10833-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21958-1 No score

Security update for haveged

This update for haveged fixes the following issues:

Changes in haveged:

  • CVE-2026-41054: Fixed local privilege escalation via the haveged command socket (bsc#1264086).
Record
openSUSE-SU-2026:21958-1
Updated
2026-11-02
OSVSUSE-SU-2026:2008-1 No score

Security update for haveged

This update for haveged fixes the following issue

  • CVE-2026-41054: missing exit out of permission check could lead to root exploit (bsc#1264086).

Changes for haveged:

  • Improvements on the linux kernel random subsystem have made move forward to socket communication within private network
  • Fix 'stop' of service, the daemon in foreground actually see daemon(7) for the rationale. Only 'simple' (default) and the help of udev, as starting services while starved of entropy
  • Add ppc64le support
  • update to 1.8
  • Correct additional run-time test aligment problems on mips.
  • haveged 1.7a
  • Correct VPATH issues and modify check target to support parallel builds and changes in automake 1.13 test harness.
  • Remove all sysvinit compatibility.
  • fix powerpc detection
  • Current version does support ARM, remove the ExcludeArch need network and can use PrivateNetwork=yes
  • Add online tests based on AIS-31
  • Fix install target, move to bin and eliminate script if not daemon, now use sysv and systemd templates
  • use -F with no arguments in haveged.service
  • build with -fpie
  • Use Service type 'simple' in systemd unit
  • fix build on ia64, s390, s390x
  • fix ppc64 build present in old versions have been fixed in different ways.
  • run spec cleaner
  • Link with full RELRO (-Wl,-z,relro,-z,now)
  • add systemd support
  • Drop as much capabilitites as possible using libcap-ng
  • I meant Enhances not Supplements
  • Implement hack to start by default only in VMs
  • use O_CLOEXEC on fds
  • add proper Requires(pre)
  • add a SUSE standard init script
Record
SUSE-SU-2026:2008-1
Updated
2026-11-02
OSVSUSE-SU-2026:2009-1 No score

Security update for haveged

This update for haveged fixes the following issue

  • CVE-2026-41054: missing exit out of permission check could lead to root exploit (bsc#1264086).

Changes for haveged:

  • Improvements on the linux kernel random subsystem have made move forward to socket communication within private network
  • Fix 'stop' of service, the daemon in foreground actually see daemon(7) for the rationale. Only 'simple' (default) and the help of udev, as starting services while starved of entropy
  • Add ppc64le support
  • update to 1.8
  • Correct additional run-time test aligment problems on mips.
  • haveged 1.7a
  • Correct VPATH issues and modify check target to support parallel builds and changes in automake 1.13 test harness.
  • Remove all sysvinit compatibility.
  • fix powerpc detection
  • Current version does support ARM, remove the ExcludeArch need network and can use PrivateNetwork=yes
  • Add online tests based on AIS-31
  • Fix install target, move to bin and eliminate script if not daemon, now use sysv and systemd templates
  • use -F with no arguments in haveged.service
  • build with -fpie
  • Use Service type 'simple' in systemd unit
  • fix build on ia64, s390, s390x
  • fix ppc64 build present in old versions have been fixed in different ways.
  • run spec cleaner
  • Link with full RELRO (-Wl,-z,relro,-z,now)
  • add systemd support
  • Drop as much capabilitites as possible using libcap-ng
  • I meant Enhances not Supplements
  • Implement hack to start by default only in VMs
  • use O_CLOEXEC on fds
  • add proper Requires(pre)
  • add a SUSE standard init script
Record
SUSE-SU-2026:2009-1
Updated
2026-11-02
OSVUSN-8358-1 No score

haveged vulnerability

It was discovered that haveged incorrectly handled credential checks on its control socket. A local attacker could possibly use this issue to execute privileged commands.

Record
USN-8358-1
Updated
2026-11-02

Affected products

Show 22 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
haveged
Alpine:v3.20
before 1.9.21-r0
1.9.21-r0
haveged
Alpine:v3.21
before 1.9.21-r0
1.9.21-r0
haveged
Alpine:v3.22
before 1.9.21-r0
1.9.21-r0
haveged
Alpine:v3.23
before 1.9.21-r0
1.9.21-r0
haveged
Alpine:v3.24
before 1.9.21-r0
1.9.21-r0
haveged
Azure Linux:3
before 1.9.22-1
1.9.22-1
haveged
Alpaquita:23
1.9.18-r0 up to 1.9.21-r0
1.9.21-r0
haveged
Alpaquita:25
1.9.19-r0 up to 1.9.21-r0
1.9.21-r0
haveged
Alpaquita:stream
1.9.18-r0 up to 1.9.21-r0
1.9.21-r0
haveged
Debian:12
before 1.9.14-1+deb12u1, plus listed versions
1.9.14-1
1.9.14-1+deb12u1
Show 10 moreShow less
Affected packages
PackageAffectedFixed
haveged
Debian:13
before 1.9.19-12+deb13u1, plus listed versions
1.9.19-12
1.9.19-12+deb13u1
haveged
Debian:14
before 1.9.21-1, plus listed versions
1.9.19-121.9.19-131.9.19-141.9.19-151.9.20-1
1.9.21-1
haveged
Mageia:10
before 1.9.21-2.mga10
1.9.21-2.mga10
haveged
Mageia:9
before 1.9.21-2.mga9
1.9.21-2.mga9
haveged
Ubuntu:Pro:22.04:LTS
before 1.9.14-1ubuntu1+esm1~22.04.1, plus listed versions
1.9.14-1ubuntu1
1.9.14-1ubuntu1+esm1~22.04.1
haveged
Ubuntu:Pro:24.04:LTS
before 1.9.14-1ubuntu2+esm1~24.04.1, plus listed versions
1.9.14-1ubuntu11.9.14-1ubuntu2
1.9.14-1ubuntu2+esm1~24.04.1
haveged
Ubuntu:25.10
before 1.9.19-12+deb13u1build0.25.10.1, plus listed versions
1.9.19-11ubuntu11.9.19-12
1.9.19-12+deb13u1build0.25.10.1
haveged
Ubuntu:26.04:LTS
before 1.9.19-14ubuntu0.1, plus listed versions
1.9.19-121.9.19-131.9.19-14
1.9.19-14ubuntu0.1
haveged
openSUSE:Tumbleweed
before 1.9.21-1.1
1.9.21-1.1
haveged
openSUSE:Leap 16.0
before 1.9.19-bp160.2.1
1.9.19-bp160.2.1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-41054 is a high vulnerability (CVSS 7.8) in Suse Container Suse/sle-micro-rancher/5.3:latest, published May 19, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 8th percentile. Fixed in haveged 1.9.21-r0.

References

Show 17 moreShow less
MoveEnter Open