Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
915f5eadebd29ba185ac506766a90120153b7e14 to < 3ddb0d3e36507615e5ef010a879357a54870adf5affected915f5eadebd29ba185ac506766a90120153b7e14 to < 0ec45e80a82785ee147516fdecf5c93707dec119affected915f5eadebd29ba185ac506766a90120153b7e14 to < 41ae2b7d37c3dd82302167496836cca9f0328374affected915f5eadebd29ba185ac506766a90120153b7e14 to < e75ef37d83c90b09bedb601624b47e168202b226affected915f5eadebd29ba185ac506766a90120153b7e14 to < bc889dfcea9294a1eae7f8e2f3573a90764ae4d0affected
Linux Linux
Default version status: affected
6.5affected0 to < 6.5unaffected6.6.148 to ≤ 6.6.*unaffected6.12.101 to ≤ 6.12.*unaffected6.18.42 to ≤ 6.18.*unaffected7.1.6 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/3ddb0d3e36507615e5ef010a879357a54870adf5 ↗
- https://git.kernel.org/stable/c/0ec45e80a82785ee147516fdecf5c93707dec119 ↗
- https://git.kernel.org/stable/c/41ae2b7d37c3dd82302167496836cca9f0328374 ↗
- https://git.kernel.org/stable/c/e75ef37d83c90b09bedb601624b47e168202b226 ↗
- https://git.kernel.org/stable/c/bc889dfcea9294a1eae7f8e2f3573a90764ae4d0 ↗