1. Archivio CVE
  2. 2025
  3. CVE-2025-4598

CVE-2025-4598

4.7 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N 4.7 – Media

Descrizione

A vulnerability was found in systemd-coredump. This flaw allows an attacker to force a SUID process to crash and replace it with a non-SUID binary to access the original's privileged process coredump, allowing the attacker to read sensitive data, such as /etc/shadow content, loaded by the original process. A SUID binary or process has a special type of permission, which allows the process to run with the file owner's permissions, regardless of the user executing the binary. This allows the process to access more restricted data than unprivileged users or processes would be able to. An attacker can leverage this flaw by forcing a SUID process to crash and force the Linux kernel to recycle the process PID before systemd-coredump can analyze the /proc/pid/auxv file. If the attacker wins the race condition, they gain access to the original's SUID process coredump file. They can read sensitive content loaded into memory by the original binary, affecting data confidentiality.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 11.0 –
debian debian linux 12.0 –
linux linux kernel < 6.16 –
oracle linux 8 –
oracle linux 9 –
redhat enterprise linux 7.0 –
redhat enterprise linux 8.0 –
redhat enterprise linux 9.0 –
redhat enterprise linux 10.0 –
redhat openshift container platform 4.0 –
systemd project systemd < 252.37 –
systemd project systemd >= 253 < 253.32 –
systemd project systemd >= 254 < 254.25 –
systemd project systemd >= 255 < 255.19 –
systemd project systemd >= 256 < 256.14 –
systemd project systemd >= 257 < 257.6 –
Tutte le 55 vulnerabilità di Systemd Project Systemd
Tutte le 230 vulnerabilità di Oracle Linux
Tutte le 23.632 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-364 Signal Handler Race Condition

The product uses a signal handler that introduces a race condition.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità Modificare i dati dell’applicazione, Modificare la memoria, Interruzione del servizio: arresto o riavvio, Eseguire codice o comandi non autorizzati
Controllo degli accessi Ottenere privilegi o assumere un’altra identità

Come si previene

Requisiti · Scelta del linguaggio Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
Architettura e progettazione Design signal handlers to only set flags, rather than perform complex functionality. These flags can then be checked and acted upon within the main program loop.
Sviluppo Only use reentrant functions within signal handlers. Also, use validation to ensure that state is consistent while performing asynchronous actions that affect the state of execution.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 9 CVE di tipo CWE-364, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org