firmware: cs_dsp: Use strnlen() on name fields in V1 wmfw files
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:
firmware: cs_dsp: Use strnlen() on name fields in V1 wmfw files
Use strnlen() instead of strlen() on the algorithm and coefficient name string arrays in V1 wmfw files.
In V1 wmfw files the name is a NUL-terminated string in a fixed-size array. cs_dsp should protect against overrunning the array if the NUL terminator is missing.
From the CVE record · Linux
The Linux kernel's cs_dsp code can read past fixed-size name arrays when a V1 wmfw file lacks a NUL terminator. This occurs when the kernel processes such a file; the input does not specify how an attacker could supply one or whether authentication or user interaction is required.
Engineers running Linux kernels that process V1 wmfw files should check their kernel versions against the vendor advisory; affected versions were not provided.