Not scored
usb: idmouse: fix an uninit-value in idmouse_open
- Severity
- Not scored
- Exploit likelihood
- 0.32% (higher than 18% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: idmouse: fix an uninit-value in idmouse_open In idmouse_create_image, if any ftip_command fails, it will go to the reset label. However, this leads to the data in bulk_in_buffer[HEADER..IMGSIZE] uninitialized. And the check for valid image incurs an uninitialized dereference. Fix this by moving the check before reset label since this check only be valid if the data after bulk_in_buffer[HEADER] has concrete data. Note that this is found by KMSAN, so only kernel compilation is tested.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4244f72436ab77c3c29a6447af81734ab3925d85 before b3304a6df957cc89a0590cb505388d659bf3db4c, from 4244f72436ab77c3c29a6447af81734ab3925d85 before 7dad42032f68718259590b0cc7654e9a95ff9762, from 4244f72436ab77c3c29a6447af81734ab3925d85 before f589b667567fde4f81d6e6c40f42b9f2224690ea, from 4244f72436ab77c3c29a6447af81734ab3925d85 before 1eae30c0113dde7522088231584d62415011a035, from 4244f72436ab77c3c29a6447af81734ab3925d85 before b8bbae3236ab7dccc66c42bc3f7cdbcfc0786e54, from 4244f72436ab77c3c29a6447af81734ab3925d85 before 20b8c456df584ebb2387dc23d40ebe4ff334417c, from 4244f72436ab77c3c29a6447af81734ab3925d85 before 6163a5ae097bc78fa26c243fb384537e25610fd7, from 4244f72436ab77c3c29a6447af81734ab3925d85 before adad163d1cff248a5df9f7cec50158e6ca89f33b and 2 more Not affected: before 2.6.13, from 4.9.331 up to 4.9.*, from 4.14.296 up to 4.14.*, from 4.19.262 up to 4.19.*, from 5.4.220 up to 5.4.*, from 5.10.150 up to 5.10.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: idmouse: fix an uninit-value in idmouse_open In idmouse_create_image, if any ftip_command fails, it will go to the reset label. However, this leads to the data in bulk_in_buffer[HEADER..IMGSIZE] uninitialized. And the check for valid image incurs an uninitialized dereference. Fix this by moving the check before reset label since this check only be valid if the data after bulk_in_buffer[HEADER] has concrete data. Note that this is found by KMSAN, so only kernel compilation is tested.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: idmouse: soluciona un valor no inicializado en idmouse_open En idmouse_create_image, si algún ftip_command falla, irá a la etiqueta de reinicio. Sin embargo, esto lleva a que los datos en bulk_in_buffer[HEADER..IMGSIZE] no estén inicializados. Y la comprobación de imagen válida provoca una desreferencia no inicializada. Esto se soluciona moviendo la comprobación antes de la etiqueta de reinicio, ya que esta comprobación solo es válida si los datos después de bulk_in_buffer[HEADER] tienen datos concretos. Tenga en cuenta que esto fue encontrado por KMSAN, por lo que solo se prueba la compilación del kernel.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50733 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50733 changed 2026-11-10 | Public domain |