{"id":"CVE-2026-93187","state":"PUBLISHED","title":"ASoC: SOF: ipc4-topology: Return error for invalid number of formats","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc4-topology: Return error for invalid number of formats\n\nWhen the number of input or output formats is zero,\nsof_ipc4_widget_setup_comp_src() and sof_ipc4_widget_setup_comp_asrc()\nprint an error and jump to the cleanup label. At that point 'ret' is\nstill 0, because the earlier sof_ipc4_get_audio_fmt() call succeeded, so\nthe function returns success and the caller never finds out that the\nwidget setup actually failed.\n\nSet ret to -EINVAL before the goto so the error gets reported.","publishedAt":"2026-09-17T16:12:12.795Z","updatedAt":"2026-10-19T09:06:59.972Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"21a5adffad463344e9aca6ee697f45a079cb3ef5","status":"affected","lessThan":"4992cdc4eb97981d6ea66002c5b764a6115edb0c","versionType":"git"},{"version":"21a5adffad463344e9aca6ee697f45a079cb3ef5","status":"affected","lessThan":"11e828cd6b0f283ebe9dc6b4cffd38e3321e7725","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc4-topology.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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/ipc4-topology.c"]}],"references":["https://git.kernel.org/stable/c/4992cdc4eb97981d6ea66002c5b764a6115edb0c","https://git.kernel.org/stable/c/11e828cd6b0f283ebe9dc6b4cffd38e3321e7725"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/93xxx/CVE-2026-93187.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-93187","state":"PUBLISHED","datePublished":"2026-09-17T16:12:12.795Z","dateUpdated":"2026-10-19T09:06:59.972Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-17T16:02:15.091Z"},"containers":{"cna":{"title":"ASoC: SOF: ipc4-topology: Return error for invalid number of formats","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc4-topology: Return error for invalid number of formats\n\nWhen the number of input or output formats is zero,\nsof_ipc4_widget_setup_comp_src() and sof_ipc4_widget_setup_comp_asrc()\nprint an error and jump to the cleanup label. At that point 'ret' is\nstill 0, because the earlier sof_ipc4_get_audio_fmt() call succeeded, so\nthe function returns success and the caller never finds out that the\nwidget setup actually failed.\n\nSet ret to -EINVAL before the goto so the error gets reported."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"21a5adffad463344e9aca6ee697f45a079cb3ef5","status":"affected","lessThan":"4992cdc4eb97981d6ea66002c5b764a6115edb0c","versionType":"git"},{"version":"21a5adffad463344e9aca6ee697f45a079cb3ef5","status":"affected","lessThan":"11e828cd6b0f283ebe9dc6b4cffd38e3321e7725","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc4-topology.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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/ipc4-topology.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4992cdc4eb97981d6ea66002c5b764a6115edb0c"},{"url":"https://git.kernel.org/stable/c/11e828cd6b0f283ebe9dc6b4cffd38e3321e7725"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:06:59.972Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}