5.5medium
media: v4l2-core: explicitly clear ioctl input data
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.30% (higher than 16% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: v4l2-core: explicitly clear ioctl input data As seen from a recent syzbot bug report, mistakes in the compat ioctl implementation can lead to uninitialized kernel stack data getting used as input for driver ioctl handlers. The reported bug is now fixed, but it's possible that other related bugs are still present or get added in the future. As the drivers need to check user input already, the possible impact is fairly low, but it might still cause an information leak. To be on the safe side, always clear the entire ioctl buffer before calling the conversion handler functions that are meant to initialize them.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8dbcc3fa387c16abfc88a628cf528c439c91b332 before dc02c0b2bd6096f2f3ce63e1fc317aeda05f74d8, from 8dbcc3fa387c16abfc88a628cf528c439c91b332 before bfb48b54db25c3b4ef4bef5e0691464ebc4aa335, from 8dbcc3fa387c16abfc88a628cf528c439c91b332 before 7b53cca764f9b291b7907fcd39d9e66ad728ee0b, 5.11 Not affected: before 5.11, from 5.12.18 up to 5.12.*, from 5.13.3 up to 5.13.*, from 5.14 up to * | CVE List |
| linux linux_kernel | before 5.12.18, from 5.13 before 5.13.3 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: v4l2-core: explicitly clear ioctl input data As seen from a recent syzbot bug report, mistakes in the compat ioctl implementation can lead to uninitialized kernel stack data getting used as input for driver ioctl handlers. The reported bug is now fixed, but it's possible that other related bugs are still present or get added in the future. As the drivers need to check user input already, the possible impact is fairly low, but it might still cause an information leak. To be on the safe side, always clear the entire ioctl buffer before calling the conversion handler functions that are meant to initialize them.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: medios: v4l2-core: borrar explícitamente los datos de entrada de ioctl. Como se ve en un informe de error reciente de syzbot, los errores en la implementación de compat ioctl pueden llevar a que los datos de la pila del kernel no inicializados se utilicen como entrada para controladores de ioctl del conductor. El error informado ya está solucionado, pero es posible que otros errores relacionados sigan presentes o se agreguen en el futuro. Como los controladores ya necesitan verificar la entrada del usuario, el posible impacto es bastante bajo, pero aún así podría causar una fuga de información. Para estar seguro, borre siempre todo el búfer ioctl antes de llamar a las funciones del controlador de conversión destinadas a inicializarlos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47339 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47339 changed 2026-06-17 | Public domain |