Commit 049e1e6
committed
net: usb: smsc75xx: Move packet length check to prevent kernel panic in skb_pull
jira VULN-67489
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: Brett Mastbergen <bmastbergen@ciq.com>1 parent 9c8e527 commit 049e1e6
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
2202 | 2209 | | |
2203 | 2210 | | |
2204 | 2211 | | |
| |||
2211 | 2218 | | |
2212 | 2219 | | |
2213 | 2220 | | |
2214 | | - | |
2215 | | - | |
| 2221 | + | |
2216 | 2222 | | |
2217 | 2223 | | |
2218 | 2224 | | |
| |||
0 commit comments