ASoC: SOF: debug: 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: debug: 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 debug code may overflow a buffer by using snprintf()’s return value when output exceeds the buffer size. The input describes this as unlikely and does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with ASoC SOF debug code should check their versions; affected versions are not specified.