CVE-2022-50052

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50052
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50052.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50052
Downstream
Related
Published
2025-06-18T11:01:52Z
Modified
2025-10-16T03:59:09.510849Z
Summary
ASoC: Intel: avs: Fix potential buffer overflow by snprintf()
Details

In the Linux kernel, the following vulnerability has been resolved:

ASoC: Intel: avs: 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 a buffer overflow (although it's unrealistic).

This patch replaces it with a safer version, scnprintf() for papering over such a potential issue.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1b3b320bd6519b16e3480f74f2926d106e3bcba
Fixed
840311a09f75632b9d41fbc1cd5c7aea94ce5f7e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1b3b320bd6519b16e3480f74f2926d106e3bcba
Fixed
ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00

Affected versions

v5.*

v5.18
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
v5.19.2
v5.19.3

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.4