Descrizione
The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate certain block-size data, which allows local users to cause a denial of service (integer signedness error and out-of-bounds write), or gain privileges (if the CAP_NET_RAW capability is held), via crafted system calls.
Tipo di vulnerabilità
CWE-681
Incorrect Conversion between Numeric Types
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.
Impatto sui sistemi
| Ambito | Impatto |
| Altro, Integrità |
Stato imprevisto, Degradare la qualità |
Come si previene
Sviluppo
Avoid making conversion between numeric types. Always check for the allowed ranges.
Tutte le 120 CVE di tipo CWE-681, con andamento e prevenzione