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>
Assisted-by: gkh_clanker_2000
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/net/usb/pegasus.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
From: Alan Stern <stern@rowland.harvard.edu> Date: 2026-02-23 14:39:57
On Mon, Feb 23, 2026 at 01:58:48PM +0100, Greg Kroah-Hartman wrote:
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>
Assisted-by: gkh_clanker_2000
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
On Mon, Feb 23, 2026 at 09:39:52AM -0500, Alan Stern wrote:
On Mon, Feb 23, 2026 at 01:58:48PM +0100, Greg Kroah-Hartman wrote:
quoted
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>
Assisted-by: gkh_clanker_2000
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
A hacked up system of tools/scripts I'm running here to find stuff like
"take this previously applied commit that fixed a problem, does the same
pattern need to be also done anywhere else in the tree"? It finds a lot
of stuff and then I sift through it and see if anything is actually real
or not and if so, make up a patch for it. It was my "merge window is
giving me a respite from reviewing patches" hobby project this past
week.
Now if I was really good, I could turn the output into a coccinelle
script, as this is just simple patterns.
Also it seems that we aren't running the coccinelle scripts anymore, as
many things it has found are already covered by that, I wonder why that
is...
thanks,
greg k-h
From: Alan Stern <stern@rowland.harvard.edu> Date: 2026-02-23 15:02:09
On Mon, Feb 23, 2026 at 03:54:30PM +0100, Greg Kroah-Hartman wrote:
On Mon, Feb 23, 2026 at 09:39:52AM -0500, Alan Stern wrote:
quoted
BTW, what is gkh_clanker_2000?
A hacked up system of tools/scripts I'm running here to find stuff like
"take this previously applied commit that fixed a problem, does the same
pattern need to be also done anywhere else in the tree"? It finds a lot
of stuff and then I sift through it and see if anything is actually real
or not and if so, make up a patch for it. It was my "merge window is
giving me a respite from reviewing patches" hobby project this past
week.
Now if I was really good, I could turn the output into a coccinelle
script, as this is just simple patterns.
It's a little surprising that nobody has asked an AI to do this sort of
thing yet (as far as I know). It's hard to say whether the results
would be better than you get with your hacked-up system of
tools/scripts, but it might be.
Alan Stern
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:
On Mon, 23 Feb 2026 13:58:48 +0100 you wrote:
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>
Assisted-by: gkh_clanker_2000
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[...]