From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A7A52EA15A; Tue, 22 Jul 2025 13:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753192237; cv=none; b=G9Ew/gcuvNgDPA/HMI0zt6i37k5/KUsr5aBSXVOfH+hplupgFsmDqdd9aRoADYaYPG//ngeH0HzLZoobDaYK2fU0Xtd0OnnvfWmnYOnHhdHh06+8A3mmJpnDLW67/woscHyih32cPz1Bcll1ylUJboU96L4Sntu/sKSLGz07gWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753192237; c=relaxed/simple; bh=8V17qEMdliV8Wag4yVql/s0i2kJWDSWQhNxNA+XJ+ZI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a1I3/ssY9HaupJynkG0xwIEX/cC8+91M+8ze7IWLCtdlTAJReQZIkwkgLyzqU3bd1QusBw/TmyUn4RjOepd4ih/j4qQrXVlF50P9GrXdIxkYiCu7KZCLv0zv2f8Dw9ibSrkq8H67KHtJCBaZ7dt4XRc7cw7Neg9zG85gkPKOAi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HSjSu+4a; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HSjSu+4a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5A71C4CEF1; Tue, 22 Jul 2025 13:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753192237; bh=8V17qEMdliV8Wag4yVql/s0i2kJWDSWQhNxNA+XJ+ZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HSjSu+4ahm+LBctGixFbjQXX9ZB3OS1rNhrEhFmAyjw5i1yQ1myYFp3DCvkinNMSS Cze0EdZ/WkOP1cv2zZMoZoalQvF52iGthuLNV7FMYV51XcEs57WC0E4oz7EiS0Eb5W egdg8s59AKmGznt353hHYstrvXhJFsjyywiu+W5w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+3f89ec3d1d0842e95d50@syzkaller.appspotmail.com, Oliver Neukum , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.1 51/79] usb: net: sierra: check for no status endpoint Date: Tue, 22 Jul 2025 15:44:47 +0200 Message-ID: <20250722134330.255577573@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250722134328.384139905@linuxfoundation.org> References: <20250722134328.384139905@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Oliver Neukum [ Upstream commit 4c4ca3c46167518f8534ed70f6e3b4bf86c4d158 ] The driver checks for having three endpoints and having bulk in and out endpoints, but not that the third endpoint is interrupt input. Rectify the omission. Reported-by: syzbot+3f89ec3d1d0842e95d50@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-usb/686d5a9f.050a0220.1ffab7.0017.GAE@google.com/ Tested-by: syzbot+3f89ec3d1d0842e95d50@syzkaller.appspotmail.com Fixes: eb4fd8cd355c8 ("net/usb: add sierra_net.c driver") Signed-off-by: Oliver Neukum Link: https://patch.msgid.link/20250714111326.258378-1-oneukum@suse.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/usb/sierra_net.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c index b3ae949e6f1c5..d067f09fc072b 100644 --- a/drivers/net/usb/sierra_net.c +++ b/drivers/net/usb/sierra_net.c @@ -689,6 +689,10 @@ static int sierra_net_bind(struct usbnet *dev, struct usb_interface *intf) status); return -ENODEV; } + if (!dev->status) { + dev_err(&dev->udev->dev, "No status endpoint found"); + return -ENODEV; + } /* Initialize sierra private data */ priv = kzalloc(sizeof *priv, GFP_KERNEL); if (!priv) -- 2.39.5