CVE-2026-41054
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by suse
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
suse

Description

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`.

Affected

Product or packageVersionsReported by
havegedfrom ? before 1.9.14-150400.3.11.1, from ? before 1.9.14-150600.11.6.1CVE List
libhavege2from ? before 1.9.14-150400.3.11.1, from ? before 1.9.14-150600.11.6.1CVE List
haveged-develfrom ? before 1.9.14-150600.11.6.1, from ? before 1.9.14-150400.3.11.1CVE List

Classification

CWE-305

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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`.

NVD (es)

En src/havegecmd.c , la función socket_handler realiza una comprobación de credenciales en el socket UNIX abstracto ( \0/sys/entropy/haveged ). Sin embargo, aunque detecta si el usuario que se conecta no es root ( cred.uid != 0 ) y prepara un acuse de recibo negativo ( ASCII_NAK ), no detiene la ejecución. El código procede a la instrucción 'switch', permitiendo a cualquier usuario local sin privilegios ejecutar comandos privilegiados como MAGIC_CHROOT .

References

Sources

SourceRecordLicence
CVE ListCVE-2026-41054 changed 2026-06-05CVE Terms of Use
NVDCVE-2026-41054 changed 2026-07-24Public domain