mfd: cs42l43: Sanity check firmware size
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:
mfd: cs42l43: Sanity check firmware size
Currently the code checks if a firmware was received, however it does not verify that the firmware size is larger than the firmware header. As the firmware pointer is dereferenced as a pointer to the header structure this could lead to an out of bounds memory access. Add the missing check.
From the CVE record · Linux
The Linux kernel's cs42l43 driver did not check whether received firmware was large enough to contain its header. An undersized firmware image could cause an out-of-bounds memory access. The input does not specify how an attacker could supply such firmware or whether authentication or user interaction is required.
Engineers running Linux kernels with the cs42l43 driver should check their kernel vendor's advisory; affected versions are not specified.