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 0402061689 for ; Mon, 4 Mar 2024 18:12:41 +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=1709575962; cv=none; b=aMT2LByKpaTmLRW4ckiRGVTq4Cbnf3VUqf3jIqjkcewc+oiVhpCm5tgc2Lu/0MyPapl2CZChiotP2Cxf72sJqZoo2FjdnB/gwL40AJ2OpJEKCAAMUMIQvn+zVSQQ+ATD1JFFUrk6UJpiaoYhr01W6nOAGj8O8pUhHVmcBcG7kpQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709575962; c=relaxed/simple; bh=GeYnq2NZ3mD1DfsvBU5+tMPHrwsJaXBUGA2Ri9377qM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p6msns+GrgLF8Cc29r9Gs6mp90GjlVBhqXVzVVZ11BhibUG9A8dSvMEGQ+oft2X0Lgp09ttYk8M4TYAI9BnhY7ckYrdFHQhMqbSKMv9HBwFs1nZfp3pYIPTJ9rtoxt1I/7WUfhVQjgGDQk69+Nv/LR2rB2vCq/IMV1+CFA2SA6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uAPw6NSS; 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="uAPw6NSS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5B66C433F1; Mon, 4 Mar 2024 18:12:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709575961; bh=GeYnq2NZ3mD1DfsvBU5+tMPHrwsJaXBUGA2Ri9377qM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uAPw6NSSq4b6Xb9VE5j76AxhTQewHAOMmCIdlegC6FF2jhFc27SB0lCtd4ymwtvg0 wxhoAeCRXQV6RPpv41NwsqbNkE8SJ2YbtyFpQvuqfqkzvnA7qt42+1jz1sKz++ba9W XNhWg752M8egWF9jhHXHV4urDW4O0tRxqizaNQnU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47101: asix: fix uninit-value in asix_mdio_read() Date: Mon, 4 Mar 2024 19:11:28 +0100 Message-ID: <2024030415-CVE-2021-47101-f3fa@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2364; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GeYnq2NZ3mD1DfsvBU5+tMPHrwsJaXBUGA2Ri9377qM=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnP+I7MvPJ61YUkOb4pUrnvW26ompof2XeJ6Vi0i9Tqt kxTkQvfOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiAlsYFvR+ZQpPeJ3QG3Pg 0pRT+17Zf5/tZ8cwzzJq4duEFC2mncf6b7PaeERJPd76GAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: asix: fix uninit-value in asix_mdio_read() asix_read_cmd() may read less than sizeof(smsr) bytes and in this case smsr will be uninitialized. Fail log: BUG: KMSAN: uninit-value in asix_check_host_enable drivers/net/usb/asix_common.c:82 [inline] BUG: KMSAN: uninit-value in asix_check_host_enable drivers/net/usb/asix_common.c:82 [inline] drivers/net/usb/asix_common.c:497 BUG: KMSAN: uninit-value in asix_mdio_read+0x3c1/0xb00 drivers/net/usb/asix_common.c:497 drivers/net/usb/asix_common.c:497 asix_check_host_enable drivers/net/usb/asix_common.c:82 [inline] asix_check_host_enable drivers/net/usb/asix_common.c:82 [inline] drivers/net/usb/asix_common.c:497 asix_mdio_read+0x3c1/0xb00 drivers/net/usb/asix_common.c:497 drivers/net/usb/asix_common.c:497 The Linux kernel CVE team has assigned CVE-2021-47101 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit d9fe64e51114 and fixed in 5.15.12 with commit d259f621c859 Issue introduced in 4.9 with commit d9fe64e51114 and fixed in 5.16 with commit 8035b1a2a37a Please see https://www.kernel.org or a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2021-47101 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/usb/asix_common.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/d259f621c85949f30cc578cac813b82bb5169f56 https://git.kernel.org/stable/c/8035b1a2a37a29d8c717ef84fca8fe7278bc9f03