Descrizione
In the Linux kernel, the following vulnerability has been resolved:
net/iucv: fix locking in .getsockopt
Mirror iucv_sock_setsockopt() and wrap the whole switch in
lock_sock()/release_sock(). The pre-existing SO_MSGLIMIT-only lock
becomes redundant and is removed.
Any AF_IUCV HIPER user can potentially crash the kernel by racing
recvmsg() with getsockopt(SO_MSGSIZE): the SO_MSGSIZE arm dereferences
iucv->hs_dev->mtu after iucv_sock_close() (called from the racing
recvmsg()) has set hs_dev to NULL, producing a NULL pointer dereference
oops.
Tipo di vulnerabilità
CWE-667
Gestione impropria dei lock
Il prodotto non acquisisce o non rilascia correttamente il blocco (lock) su una risorsa, causando stati e comportamenti imprevisti.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità |
Interruzione del servizio: esaurimento della CPU |
| Integrità |
Modificare la memoria, Modificare i dati dell’applicazione |
| Altro |
Dipende dal contesto, Stato imprevisto |
Come si previene
Sviluppo · Librerie o framework
Use industry standard APIs to implement locking mechanism.
Tutte le 738 CVE di tipo CWE-667, con andamento e prevenzione