{"id":"CVE-2022-50051","state":"PUBLISHED","title":"ASoC: SOF: debug: Fix potential buffer overflow by snprintf()","description":"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.","publishedAt":"2025-06-18T11:01:51.560Z","updatedAt":"2026-05-11T19:11:53.971Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b10b62989219aa527ee4fa555d1995a3b70981b","status":"affected","lessThan":"b318b9dd2ac67f39d0338ce563879d1f59a0347a","versionType":"git"},{"version":"5b10b62989219aa527ee4fa555d1995a3b70981b","status":"affected","lessThan":"a67971a17604ae7de278fb09243432459afc51e1","versionType":"git"},{"version":"5b10b62989219aa527ee4fa555d1995a3b70981b","status":"affected","lessThan":"1eb123ce985e6cf302ac6e3f19862d132d86fa8f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/debug.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.63","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.4","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/debug.c"]}],"references":["https://git.kernel.org/stable/c/b318b9dd2ac67f39d0338ce563879d1f59a0347a","https://git.kernel.org/stable/c/a67971a17604ae7de278fb09243432459afc51e1","https://git.kernel.org/stable/c/1eb123ce985e6cf302ac6e3f19862d132d86fa8f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50051.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50051","state":"PUBLISHED","datePublished":"2025-06-18T11:01:51.560Z","dateUpdated":"2026-05-11T19:11:53.971Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.402Z"},"containers":{"cna":{"title":"ASoC: SOF: debug: Fix potential buffer overflow by snprintf()","descriptions":[{"lang":"en","value":"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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b10b62989219aa527ee4fa555d1995a3b70981b","status":"affected","lessThan":"b318b9dd2ac67f39d0338ce563879d1f59a0347a","versionType":"git"},{"version":"5b10b62989219aa527ee4fa555d1995a3b70981b","status":"affected","lessThan":"a67971a17604ae7de278fb09243432459afc51e1","versionType":"git"},{"version":"5b10b62989219aa527ee4fa555d1995a3b70981b","status":"affected","lessThan":"1eb123ce985e6cf302ac6e3f19862d132d86fa8f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/debug.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.63","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.4","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/debug.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b318b9dd2ac67f39d0338ce563879d1f59a0347a"},{"url":"https://git.kernel.org/stable/c/a67971a17604ae7de278fb09243432459afc51e1"},{"url":"https://git.kernel.org/stable/c/1eb123ce985e6cf302ac6e3f19862d132d86fa8f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:11:53.971Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}