Descrizione
In the Linux kernel, the following vulnerability has been resolved: HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait() In picolcd_send_and_wait(), an integer overflow of the signed loop counter 'k' can theoretically lead to a NULL pointer dereference of 'raw_data'. If the loop executes more than INT_MAX times, 'k' becomes negative, making the condition 'k < size' true even when 'size' is 0. Change the type of 'k' to 'unsigned int' to prevent the overflow and eliminate the out-of-bounds access. Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool. [jkosina@suse.com: extended hash length]
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria.
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/0021eb09041f021c079be1022934a280f7f176c0
- Riferimentohttps://git.kernel.org/stable/c/42dc0b7b55fe0499fc09183f34a1c46d1dcccf77
- Riferimentohttps://git.kernel.org/stable/c/48caee2c106b03301c72fe389ebff00d852c58d5
- Riferimentohttps://git.kernel.org/stable/c/a02d5d7ad7ae5fa3756b8332f7350e973085dcb3
- Riferimentohttps://git.kernel.org/stable/c/d354e523c6f740db758cafcd4c11bb7913285ed8
- Riferimentohttps://git.kernel.org/stable/c/dc176447c7279435c46735db7da81aed1ec25cc2
- Riferimentohttps://git.kernel.org/stable/c/e4edeefb8d5bfceb2058e2b3291f4ae1e5a76e61
- Riferimentohttps://git.kernel.org/stable/c/ef649703dce0df1364fcec3cdad9b32d1c522939