firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)
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: Fix OOB memory read access in KUnit test (ctl cache)
KASAN reported out of bounds access - cs_dsp_ctl_cache_init_multiple_offsets(). The code uses mock_coeff_template.length_bytes (4 bytes) for register value allocations. But later, this length is set to 8 bytes which causes test code failures.
As fix, just remove the lenght override, keeping the original value 4 for all operations.
From the CVE record · Linux
A cs_dsp KUnit test in the Linux kernel can read beyond an allocated register value. The test allocates 4 bytes but later sets the length to 8 bytes; the input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernel builds with the cs_dsp KUnit test should check their versions; affected versions are not specified.