{"schema_version":"1.9.0","id":"CVE-2022-50051","published":"2025-06-18T11:01:51.560Z","modified":"2026-08-12T03:51:30.547418123Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"summary":"ASoC: SOF: debug: Fix potential buffer overflow by snprintf()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: debug: 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.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5b10b62989219aa527ee4fa555d1995a3b70981b"},{"fixed":"b318b9dd2ac67f39d0338ce563879d1f59a0347a"},{"fixed":"a67971a17604ae7de278fb09243432459afc51e1"},{"fixed":"1eb123ce985e6cf302ac6e3f19862d132d86fa8f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50051.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50051.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1eb123ce985e6cf302ac6e3f19862d132d86fa8f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a67971a17604ae7de278fb09243432459afc51e1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b318b9dd2ac67f39d0338ce563879d1f59a0347a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50051.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50051"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50051.json"}}