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