{"id":"CVE-2022-50050","summary":"ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()\n\nsnprintf() returns the would-be-filled size when the string overflows\nthe given buffer size, hence using this value may result in the buffer\noverflow (although it's unrealistic).\n\nThis patch replaces with a safer version, scnprintf() for papering\nover such a potential issue.","modified":"2026-04-11T12:44:50.670797Z","published":"2025-06-18T11:01:50.642Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50050.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6ee1310f4d148dbf04c4159b88afd0b941018903"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94c1ceb043c1a002de9649bb630c8e8347645982"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7915c5614a7ece117ec390f21a410531eac48de"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50050.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50050"},{"type":"PACKAGE","url":"https://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":"29c8e4398f02adacd429c7847dacc8aea5a0c2f1"},{"fixed":"6ee1310f4d148dbf04c4159b88afd0b941018903"},{"fixed":"f7915c5614a7ece117ec390f21a410531eac48de"},{"fixed":"94c1ceb043c1a002de9649bb630c8e8347645982"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50050.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.0"},{"fixed":"5.15.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50050.json"}}],"schema_version":"1.7.5"}