Descrizione
Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS, PDU and SCD hardware. From 2.4.2 through 2.8.5, ippon_command in drivers/blazer_usb.c partially initializes char tmp[64] with a short Megatec status query and then passes a fixed eight-byte chunk to usb_control_msg. A malicious firmware-controlled USB device presenting the Mustek Powermust VID 0x06da and Mustek Powermust PID 0x0003 matches blazer_usb_id, selects ippon_subdriver, and can receive the uninitialized trailing stack bytes during normal polling. The disclosure is bounded and read-only, requires physical or supply-chain access to the USB bus, and has no established integrity or availability impact. This issue is scheduled to be fixed in version 2.8.6.
Tipo di vulnerabilità
CWE-457
Use of Uninitialized Variable
The code uses a variable that has not been initialized, leading to unpredictable or unintended results.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza, Integrità, Disponibilità, Altro |
Dipende dal contesto, Leggere i dati dell’applicazione |
| Disponibilità |
Alterare la logica di esecuzione, Stato imprevisto |
| Autorizzazione, Altro |
Dipende dal contesto |
Come si previene
Sviluppo · Riduzione della superficie di attacco
Ensure that critical variables are initialized before first use.
Build e compilazione · Hardening della compilazione
Most compilers will complain about the use of uninitialized variables if warnings are turned on.
Sviluppo · Esercizio
When using a language that does not require explicit declaration of variables, run or compile the software in a mode that reports undeclared or unknown variables. This may indicate the presence of a typographic error in the variable's name.
Requisiti · Scelta del linguaggio
Choose a language that is not susceptible to these issues.
Architettura e progettazione
Mitigating technologies such as safe string libraries and container abstractions could be introduced.
Tutte le 222 CVE di tipo CWE-457, con andamento e prevenzione