CVE-2022-50050
JSON

7.8high

ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()

Severity
7.8high CVSS:3.1 by NVD
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: ASoC: SOF: Intel: hda: 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 packageVersionsReported by
Linux Linuxfrom 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 before 6ee1310f4d148dbf04c4159b88afd0b941018903, from 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 before f7915c5614a7ece117ec390f21a410531eac48de, from 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 before 94c1ceb043c1a002de9649bb630c8e8347645982, 5.10
Not affected: before 5.10, 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_kernelfrom 5.10 before 5.15.63, from 5.16 before 5.19.4, 6.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: Intel: hda: 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: Intel: hda: 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 a scnprintf(), una versión más segura, para disimular este posible problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50050 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50050 changed 2026-06-17Public domain