Commit d70efbf
committed
net: usb: smsc75xx: Move packet length check to prevent kernel panic in skb_pull
jira VULN-67486
jira VULN-67487
cve-bf CVE-2023-53125
commit-author Szymon Heidrich <szymon.heidrich@gmail.com>
commit 43ffe6c
Packet length check needs to be located after size and align_count
calculation to prevent kernel panic in skb_pull() in case
rx_cmd_a & RX_CMD_A_RED evaluates to true.
Fixes: d8b2283 ("net: usb: smsc75xx: Limit packet length to skb->len")
Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Link: https://lore.kernel.org/r/20230316110540.77531-1-szymon.heidrich@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 43ffe6c)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 3d204c0 commit d70efbf
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2213 | 2213 | | |
2214 | 2214 | | |
2215 | 2215 | | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2216 | 2223 | | |
2217 | 2224 | | |
2218 | 2225 | | |
| |||
2225 | 2232 | | |
2226 | 2233 | | |
2227 | 2234 | | |
2228 | | - | |
2229 | | - | |
| 2235 | + | |
2230 | 2236 | | |
2231 | 2237 | | |
2232 | 2238 | | |
| |||
0 commit comments