ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.635.19.46.0In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()
snprintf() returns the would-be-filled size when the string overflows the given buffer size, hence using this value may result in the buffer overflow (although it's unrealistic).
This patch replaces with a safer version, scnprintf() for papering over such a potential issue.
From the CVE record · Linux
The Linux kernel’s ASoC SOF Intel HDA code may use the size returned by snprintf() after a string exceeds its buffer, potentially causing a buffer overflow. The description calls this scenario unrealistic and does not specify an attacker path, access requirements, or user interaction.
Engineers running Linux kernels with the ASoC SOF Intel HDA code should check their versions; affected versions are not specified.