ASoC: tas2781: bound firmware description string parsing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: tas2781: bound firmware description string parsing
The TAS2781 firmware parser reads several variable-length description strings with strlen() before checking that the string terminator is present inside the firmware blob. A malformed firmware image without a NUL terminator can therefore make the parser walk past the end of the firmware buffer before the later size checks run.
Add a small bounded string-length helper and use it for all description fields that are parsed from the firmware buffer. Keep the existing size checks for the fixed bytes that follow each string.
From the CVE record · Linux
The Linux kernel TAS2781 firmware parser reads variable-length description strings before confirming that they end within the firmware buffer. Parsing a malformed firmware image without a NUL terminator can cause an out-of-bounds read. The input does not specify how an attacker could supply the image or whether authentication or user interaction is required.
Engineers running Linux kernels with the TAS2781 firmware parser should check their kernel versions; affected versions are not specified.