Commit 11de1d3
net: usb: pegasus: validate USB endpoints
The pegasus driver should validate that the device it is probing has the
proper number and types of USB endpoints it is expecting before it binds
to it. If a malicious device were to not have the same urbs the driver
will crash later on when it blindly accesses these endpoints.
Cc: Petko Manolov <petkan@nucleusys.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2026022347-legibly-attest-cc5c@gregkh
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 12133a4 commit 11de1d3
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
815 | 822 | | |
816 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
817 | 828 | | |
818 | 829 | | |
819 | 830 | | |
| |||
1168 | 1179 | | |
1169 | 1180 | | |
1170 | 1181 | | |
| 1182 | + | |
1171 | 1183 | | |
1172 | 1184 | | |
1173 | 1185 | | |
| |||
1179 | 1191 | | |
1180 | 1192 | | |
1181 | 1193 | | |
1182 | | - | |
1183 | 1194 | | |
1184 | 1195 | | |
1185 | 1196 | | |
| |||
0 commit comments