Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected ace6d14481386ec6c1b63cc2b24c71433a583dc2 before 2ce02059ceb6311a33026b62e6e4dc4ed22a3aef; affected ace6d14481386ec6c1b63cc2b24c71433a583dc2 before 197a4c54d8a94fe2fb7829661b29f0859c10feb5; affected ace6d14481386ec6c1b63cc2b24c71433a583dc2 before d35e4032f16d7621468c8b56816e7935ebf590a7; affected ace6d14481386ec6c1b63cc2b24c71433a583dc2 before 17d79248b4f370663f9d351409a130fc1ed9416d; affected ace6d14481386ec6c1b63cc2b24c71433a583dc2 before b6ef1a74b3ec254f87a6a3c554fe8f8083ebd37c |
| Linux / Linux | affected 6.6; unaffected 0 before 6.6; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/2ce02059ceb6311a33026b62e6e4dc4ed22a3aef
- https://git.kernel.org/stable/c/197a4c54d8a94fe2fb7829661b29f0859c10feb5
- https://git.kernel.org/stable/c/d35e4032f16d7621468c8b56816e7935ebf590a7
- https://git.kernel.org/stable/c/17d79248b4f370663f9d351409a130fc1ed9416d
- https://git.kernel.org/stable/c/b6ef1a74b3ec254f87a6a3c554fe8f8083ebd37c