Message ID | 20241028074150.112511-4-koichiro.den@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XcQMq6P6Lz1xxV for <incoming@patchwork.ozlabs.org>; Mon, 28 Oct 2024 18:42:31 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1t5KOM-0002iQ-Qk; Mon, 28 Oct 2024 07:42:22 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <koichiro.den@canonical.com>) id 1t5KOJ-0002h2-Lx for kernel-team@lists.ubuntu.com; Mon, 28 Oct 2024 07:42:19 +0000 Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 4022B3F2A2 for <kernel-team@lists.ubuntu.com>; Mon, 28 Oct 2024 07:42:19 +0000 (UTC) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-20c9fe994daso34523375ad.2 for <kernel-team@lists.ubuntu.com>; Mon, 28 Oct 2024 00:42:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730101338; x=1730706138; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4VMFBervkNHKNx+XQuhWFJagP8rcCFetI4vOtMGvEB8=; b=Yts0dgY1eEOwNCQ6l28nuUOLojPgh3ajVVloLzKCC45+h95XYewDAp4UO9XAmmJ0wm BE3wtx9/LNezQ7faz4EDrI3X1+IWKGoHl1uLkl23rXgCYw09JJ5BnMZdc1tViUTMyFke zv7RtxU8gGqScwJ3BgFC+6wyupAUKHGcGIrNfzrREIsctpbUeId9+Y/scAg9xEDc18xz TBKGwUVzTBtpZDbTc1dkp4QV6zfpheAwcNvU++jdIXE/QLw/ZTlL+JRmbvKToE4ktW4z YXkzQ1OWbkGSuTOI0vHemrqTQvxNABbWqUSIQ5zM+W8GXgjC/sFtCqPzBw+BFa9kuszW 8ujg== X-Gm-Message-State: AOJu0YyPU2MIpDrDCAumju4OboOqQ689000JeqeeEKvLTiLyuK70hxd4 g9EIyiPnLcIfC6rt76CiMvF0/chAfv60xzYPrsX58wXl10wwaPaShgjlJkr+KMy2o7vru7ZDyEW J+6N933SDcYiyAiZK5wjZFUvNz8/3zaCRuy/z9VAk64zVqnf+EMdc7zdvqh0mGnqZykBttl7taL 9KsxHIheaRdw== X-Received: by 2002:a17:902:e951:b0:20b:6458:ec83 with SMTP id d9443c01a7336-210c686c57fmr150806475ad.4.1730101337701; Mon, 28 Oct 2024 00:42:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEv3Nn3f6XHUpJHY2hSn4LAzEByGIcfko0ZLF9/DcHSvrZLdN8LHntOr6AKCAvc68056arESA== X-Received: by 2002:a17:902:e951:b0:20b:6458:ec83 with SMTP id d9443c01a7336-210c686c57fmr150806255ad.4.1730101337363; Mon, 28 Oct 2024 00:42:17 -0700 (PDT) Received: from localhost.localdomain ([240f:74:7be:1:fc2f:5f77:13cb:653f]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc0167f3sm45344785ad.150.2024.10.28.00.42.16 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 00:42:17 -0700 (PDT) From: Koichiro Den <koichiro.den@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][F][PATCH v2 3/3] asix: fix uninit-value in asix_mdio_read() Date: Mon, 28 Oct 2024 16:41:40 +0900 Message-ID: <20241028074150.112511-4-koichiro.den@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241028074150.112511-1-koichiro.den@canonical.com> References: <20241028074150.112511-1-koichiro.den@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
CVE-2021-47101
|
expand
|
diff --git a/drivers/net/usb/asix_common.c b/drivers/net/usb/asix_common.c index 65fd0d5e9cc5..43a20e59311a 100644 --- a/drivers/net/usb/asix_common.c +++ b/drivers/net/usb/asix_common.c @@ -79,7 +79,7 @@ static int asix_check_host_enable(struct usbnet *dev, int in_pm) 0, 0, 1, &smsr, in_pm); if (ret == -ENODEV) break; - else if (ret < 0) + else if (ret < sizeof(smsr)) continue; else if (smsr & AX_HOST_EN) break;