Descrizione
In the Linux kernel, the following vulnerability has been resolved:
net: shaper: protect late read accesses to the hierarchy
We look up a netdev during prep of Netlink ops (pre- callbacks)
and take a ref to it. Then later in the body of the callback
we take its lock or RCU which are the actual protections.
This is not proper, a conversion from a ref to a locked netdev
must include a liveness check (a check if the netdev hasn't been
unregistered already). Fix the read cases (those under RCU).
Writes needs a separate change to protect from creating the
hierarchy after flush has already run.
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
| Ambito | Impatto |
| 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.
Tutte le 64 CVE di tipo CWE-662, con andamento e prevenzione