Descrizione
A flaw was found in GnuTLS. The `gnutls_pkcs11_token_set_pin` function, used for changing the Security Officer PIN, can lead to a use-after-free vulnerability. This occurs when an attacker attempts to change the PIN with a NULL old PIN for a token that lacks a protected authentication path.
Tipo di vulnerabilità
CWE-825
Expired Pointer Dereference
The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza |
Leggere la memoria |
| Disponibilità |
Interruzione del servizio: arresto o riavvio |
| Integrità, Riservatezza, Disponibilità |
Eseguire codice o comandi non autorizzati |
Come si previene
Architettura e progettazione
Choose a language that provides automatic memory management.
Sviluppo
When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Tutte le 36 CVE di tipo CWE-825, con andamento e prevenzione