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 DA823215764 for ; Wed, 26 Feb 2025 02:13:30 +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=1740536010; cv=none; b=tKsnjeeejRcOTFY7P0rCk3pGb2FvQw6kVCBZhmDWrfWVBaeU99jouSHEedaynLrUDoaR57cEZoH9gUSzT6mP70YtIQpWvh+Z2TBa3l4faTxEhA9Yl+0Rs7xiLn7Z2TjMac9Pg16BvOYQ9xFJ0JYdjtzLs/kr9Qjmh5yEkXr3Syg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536010; c=relaxed/simple; bh=P9Ul2+1TMTq3WMdmAVh0CKtYk7MA74o9xeyvVGhYWQo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AXtdpQxUFWLBG9rpOAcZvhkjJsdDQnLn4Te5LJqDChXaInnuh2OrIZ7q0/XHw6qqavVBdhhKQCNxTPXJ3aFKs0hzhezMFPOcEn+pYBn3BK3DanjUnt3eaFFryKEuz77T4S081CviIM6YPIftnAs6GRH0y/YtGFF6X71VQizcnJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qgy0ce5Z; 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="qgy0ce5Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B10B5C4CEDD; Wed, 26 Feb 2025 02:13:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536010; bh=P9Ul2+1TMTq3WMdmAVh0CKtYk7MA74o9xeyvVGhYWQo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qgy0ce5Z8VBsnfQu3h6pVmWKYZJDgjYjM+k2kI9RBm/ZmA0M74pLDTtKaiu7yY4gT c/ldGQ0ez6/UUh6tayrRMe5sPQRzsRqLtdI8KeujEEmLAeX6exBqRdFPBPwRNj1uiX xV0Zc5cZCfJhi01yzLMvBGMqed485GfCmTKIu6cI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49368: net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry() Date: Wed, 26 Feb 2025 03:10:42 +0100 Message-ID: <2025022645-CVE-2022-49368-d1d6@gregkh> X-Mailer: git-send-email 2.48.1 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=3527; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P9Ul2+1TMTq3WMdmAVh0CKtYk7MA74o9xeyvVGhYWQo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yl/6nkq8diq7LiTj6s431095GP/f/dt1dXfXRfW/d z+EF3zP7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHGtlmB+Tr3HWUFhLft+/ O2eEt/hzT8mercIwh7fwqdrG7Tv/Ou3KObrJ/5m/i6fFMQA= 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: net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry() The "fsp->location" variable comes from user via ethtool_get_rxnfc(). Check that it is valid to prevent an out of bounds read. The Linux kernel CVE team has assigned CVE-2022-49368 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 4.9.318 with commit b4f0e57ea0d867aacffad7999527e48bd4ea9293 Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 4.14.283 with commit 5ba81f82607ead85fe36f50869fc4f5661359ab8 Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 4.19.247 with commit 657e7174603f0aab2cdedc64ac81edffd2a87afe Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.4.198 with commit 2bd1faedb74dc2a2be3972abcd4239b75a3e7b00 Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.10.122 with commit 71ae30662ec610b92644d13f79c78f76f17873b3 Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.15.47 with commit b24ca1cf846273361d5bd73a35de95a486a54b6d Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.17.15 with commit 4cde554c70d7397cfa2e4116bacb4accdfb6fd48 Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.18.4 with commit 0b238f75b65ed4462ef4cdfa718cac0ac7fce3b8 Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.19 with commit e7e7104e2d5ddf3806a28695670f21bef471f1e1 Please see https://www.kernel.org for 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-2022-49368 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/ethernet/mediatek/mtk_eth_soc.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/b4f0e57ea0d867aacffad7999527e48bd4ea9293 https://git.kernel.org/stable/c/5ba81f82607ead85fe36f50869fc4f5661359ab8 https://git.kernel.org/stable/c/657e7174603f0aab2cdedc64ac81edffd2a87afe https://git.kernel.org/stable/c/2bd1faedb74dc2a2be3972abcd4239b75a3e7b00 https://git.kernel.org/stable/c/71ae30662ec610b92644d13f79c78f76f17873b3 https://git.kernel.org/stable/c/b24ca1cf846273361d5bd73a35de95a486a54b6d https://git.kernel.org/stable/c/4cde554c70d7397cfa2e4116bacb4accdfb6fd48 https://git.kernel.org/stable/c/0b238f75b65ed4462ef4cdfa718cac0ac7fce3b8 https://git.kernel.org/stable/c/e7e7104e2d5ddf3806a28695670f21bef471f1e1