7.8high
ASoC: SOF: debug: Fix potential buffer overflow by snprintf()
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: debug: Fix potential buffer overflow by snprintf() snprintf() returns the would-be-filled size when the string overflows the given buffer size, hence using this value may result in the buffer overflow (although it's unrealistic). This patch replaces with a safer version, scnprintf() for papering over such a potential issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5b10b62989219aa527ee4fa555d1995a3b70981b before b318b9dd2ac67f39d0338ce563879d1f59a0347a, from 5b10b62989219aa527ee4fa555d1995a3b70981b before a67971a17604ae7de278fb09243432459afc51e1, from 5b10b62989219aa527ee4fa555d1995a3b70981b before 1eb123ce985e6cf302ac6e3f19862d132d86fa8f, 5.11 Not affected: before 5.11, from 5.15.63 up to 5.15.*, from 5.19.4 up to 5.19.*, from 6.0 up to * | CVE List |
| linux linux_kernel | from 5.11 before 5.15.63, from 5.16 before 5.19.4, 6.0 | 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: ASoC: SOF: debug: Fix potential buffer overflow by snprintf() snprintf() returns the would-be-filled size when the string overflows the given buffer size, hence using this value may result in the buffer overflow (although it's unrealistic). This patch replaces with a safer version, scnprintf() for papering over such a potential issue.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: SOF: depuración: Corrección de un posible desbordamiento de búfer mediante snprintf(). snprintf() devuelve el tamaño que se espera que se llene cuando la cadena supera el tamaño de búfer especificado; por lo tanto, usar este valor podría provocar un desbordamiento de búfer (aunque esto no es realista). Este parche reemplaza scnprintf(), una versión más segura, para disimular este posible problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50051 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2022-50051 changed 2026-11-05 | Public domain |