ASoC: Intel: avs: 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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: Intel: avs: 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 a buffer overflow (although it's unrealistic).
This patch replaces it with a safer version, scnprintf() for papering over such a potential issue.
From the CVE record · Linux
The Linux kernel’s ASoC Intel avs component could overflow a buffer by using the size returned by snprintf() after a string is truncated. The description calls this potential overflow unrealistic and does not specify an attack method, access requirements, or user interaction.
Engineers running Linux kernels with the ASoC Intel avs component should check their versions; affected versions are not specified.