5.5medium
net: asix: add proper error handling of usb read errors
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: asix: add proper error handling of usb read errors Syzbot once again hit uninit value in asix driver. The problem still the same -- asix_read_cmd() reads less bytes, than was requested by caller. Since all read requests are performed via asix_read_cmd() let's catch usb related error there and add __must_check notation to be sure all callers actually check return value. So, this patch adds sanity check inside asix_read_cmd(), that simply checks if bytes read are not less, than was requested and adds missing error handling of asix_read_cmd() all across the driver code.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d9fe64e511144c1ee7d7555b4111f09dde9692ef before b96a7265f763b37ff3138b9ca8122a950f13b00e, from d9fe64e511144c1ee7d7555b4111f09dde9692ef before 9ea8d2fca8fea3b17005b4dc02f8ef15f7a2fb97, from d9fe64e511144c1ee7d7555b4111f09dde9692ef before 662ff765470ad0d11a1153d6d8e99d69a98e60b4, from d9fe64e511144c1ee7d7555b4111f09dde9692ef before 920a9fa27e7805499cfe78491b36fed2322c02ec, 4.9 Not affected: before 4.9, from 5.15.33 up to 5.15.*, from 5.16.19 up to 5.16.*, from 5.17.2 up to 5.17.*, from 5.18 up to * | CVE List |
| linux linux_kernel | from 4.9 before 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: asix: add proper error handling of usb read errors Syzbot once again hit uninit value in asix driver. The problem still the same -- asix_read_cmd() reads less bytes, than was requested by caller. Since all read requests are performed via asix_read_cmd() let's catch usb related error there and add __must_check notation to be sure all callers actually check return value. So, this patch adds sanity check inside asix_read_cmd(), that simply checks if bytes read are not less, than was requested and adds missing error handling of asix_read_cmd() all across the driver code.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: asix: agregar manejo de errores adecuado para errores de lectura de USB Syzbot una vez más alcanzó un valor uninit en el controlador asix. El problema sigue siendo el mismo: asix_read_cmd() lee menos bytes de los que solicitó el llamador. Dado que todas las solicitudes de lectura se realizan a través de asix_read_cmd(), detectemos el error relacionado con USB allí y agreguemos la notación __must_check para asegurarnos de que todos los llamadores realmente verifiquen el valor de retorno. Entonces, este parche agrega una verificación de cordura dentro de asix_read_cmd(), que simplemente verifica si los bytes leídos no son menores que los solicitados y agrega la gestión de errores faltantes de asix_read_cmd() en todo el código del controlador.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49226 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49226 changed 2026-06-17 | Public domain |