Skip to content

net: lan78xx: fix NULL deref and memory leak

Johan Hovold linux-usb lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: lan78xx: add missing endpoint sanity checkdrivers/net/usb/lan78xx.c+5 -00 replies
2/3net: lan78xx: fix transfer-buffer memory leakdrivers/net/usb/lan78xx.c+1 -00 replies
3/3net: lan78xx: replace bogus endpoint lookupdrivers/net/usb/lan78xx.c+30 -870 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] net: lan78xx: fix NULL deref and memory leak

The first two patches fix a NULL-pointer dereference at probe that can be triggered by a malicious device and a small transfer-buffer memory leak, respectively.

For another subsystem I would have marked them:

	Cc: [email protected]	# 4.3

The third one replaces the driver's current broken endpoint lookup helper, which could end up accepting incomplete interfaces and whose results weren't even useeren
Johan

Johan Hovold (3):
net: lan78xx: add missing endpoint sanity check
net: lan78xx: fix transfer-buffer memory leak
net: lan78xx: replace bogus endpoint lookup

 drivers/net/usb/lan78xx.c | 113 +++++++++++---------------------------
 1 file changed, 31 insertions(+), 82 deletions(-)
Signature · 1 line
2.26.2