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

CVE-2025-68775

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

Descrizione

In the Linux kernel, the following vulnerability has been resolved: net/handshake: duplicate handshake cancellations leak socket When a handshake request is cancelled it is removed from the handshake_net->hn_requests list, but it is still present in the handshake_rhashtbl until it is destroyed. If a second cancellation request arrives for the same handshake request, then remove_pending() will return false... and assuming HANDSHAKE_F_REQ_COMPLETED isn't set in req->hr_flags, we'll continue processing through the out_true label, where we put another reference on the sock and a refcount underflow occurs. This can happen for example if a handshake times out - particularly if the SUNRPC client sends the AUTH_TLS probe to the server but doesn't follow it up with the ClientHello due to a problem with tlshd. When the timeout is hit on the server, the server will send a FIN, which triggers a cancellation request via xs_reset_transport(). When the timeout is hit on the client, another cancellation request happens via xs_tls_handshake_sync(). Add a test_and_set_bit(HANDSHAKE_F_REQ_COMPLETED) in the pending cancel path so duplicate cancels can be detected.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel >= 6.4 < 6.6.120 –
linux linux kernel >= 6.4 < 6.12.64 –
linux linux kernel >= 6.4 < 6.18.3 –
linux linux kernel >= 6.4 < 6.19 –
Tutte le 24.085 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-662 Improper Synchronization

The product utilizes multiple threads, processes, components, or systems to allow temporary access to a shared resource that can only be exclusive to one process at a time, but it does not properly synchronize these actions, which might cause simultaneous accesses of this resource by multiple threads or processes.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Altro Modificare i dati dell’applicazione, Modificare la memoria, Leggere i dati dell’applicazione, Alterare la logica di esecuzione
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità

Come si previene

Sviluppo Use industry standard APIs to synchronize your code.

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

Tutte le 64 CVE di tipo CWE-662, con andamento e prevenzione

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