Commit 18fe2fb
committed
usb: xhci: prevent potential failure in handle_tx_event() for Transfer events without TRB
jira LE-2157
cve CVE-2024-42226
Rebuild_History Non-Buildable kernel-5.14.0-503.14.1.el9_5
commit-author Niklas Neronin <niklas.neronin@linux.intel.com>
commit 66cb618
Some transfer events don't always point to a TRB, and consequently don't
have a endpoint ring. In these cases, function handle_tx_event() should
not proceed, because if 'ep->skip' is set, the pointer to the endpoint
ring is used.
To prevent a potential failure and make the code logical, return after
checking the completion code for a Transfer event without TRBs.
Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240429140245.3955523-11-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 66cb618)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 2aee3af commit 18fe2fb
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2660 | 2660 | | |
2661 | 2661 | | |
2662 | 2662 | | |
2663 | | - | |
| 2663 | + | |
2664 | 2664 | | |
2665 | 2665 | | |
2666 | 2666 | | |
2667 | | - | |
| 2667 | + | |
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
2672 | 2672 | | |
| 2673 | + | |
2673 | 2674 | | |
2674 | 2675 | | |
2675 | 2676 | | |
| |||
0 commit comments