Descrizione
In the Linux kernel, the following vulnerability has been resolved: iio: magnetometer: ak8975: fix potential kernel stack memory leak Currently in the AK8975 driver there are four instances where potential uninitialized kernel stack memory leaks can occur. If i2c_smbus_read_i2c_block_data_or_emulated() returns a value less than the size of the buffer, uninitialized bytes are retained in the buffer and later the buffer is passed on to IIO buffers, potentially leaking memory to userspace. Fix this by adding checks whether the return value of the function is equal to the size of the buffer and subsequently if the value is lesser than zero to distinguish from a returned error code.
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/12848f4ded022963944c063e09a192549a4dad1e
- Riferimentohttps://git.kernel.org/stable/c/3d57672119525c59ed73ea21accb001ccbcd6cfd
- Riferimentohttps://git.kernel.org/stable/c/8cf346074533356d67a6a6a43a192328ad341f11
- Riferimentohttps://git.kernel.org/stable/c/9f920550abacedc7fc3163dea65ac2a7d0b0765d
- Riferimentohttps://git.kernel.org/stable/c/a9a00d727b7bbc5e913a919530a9dd468935bf95
- Riferimentohttps://git.kernel.org/stable/c/a9cf46054f81972f8c0f1dc2a79d2a141999dbce
- Riferimentohttps://git.kernel.org/stable/c/b974566803bceb72f0b9b5f1d7270b79ba963766
- Riferimentohttps://git.kernel.org/stable/c/fb27ebf81136e796c7b719303ef6fd7e1ae5d488