Commit 43b0db8
committed
firmware: cs_dsp: Return error if block header overflows file
JIRA: https://issues.redhat.com/browse/RHEL-53650
CVE: CVE-2024-42238
commit 959fe01
Author: Richard Fitzgerald <rf@opensource.cirrus.com>
Date: Thu Jun 27 15:14:30 2024 +0100
firmware: cs_dsp: Return error if block header overflows file
Return an error from cs_dsp_power_up() if a block header is longer
than the amount of data left in the file.
The previous code in cs_dsp_load() and cs_dsp_load_coeff() would loop
while there was enough data left in the file for a valid region. This
protected against overrunning the end of the file data, but it didn't
abort the file processing with an error.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: f6bc909 ("firmware: cs_dsp: add driver to support firmware loading on Cirrus Logic DSPs")
Link: https://patch.msgid.link/20240627141432.93056-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: David Arcari <darcari@redhat.com>1 parent 80852bc commit 43b0db8
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
1530 | | - | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
1531 | 1536 | | |
1532 | 1537 | | |
1533 | 1538 | | |
| |||
2215 | 2220 | | |
2216 | 2221 | | |
2217 | 2222 | | |
2218 | | - | |
2219 | | - | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2220 | 2230 | | |
2221 | 2231 | | |
2222 | 2232 | | |
| |||
0 commit comments