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 C145A19F42C for ; Thu, 1 May 2025 14:15:38 +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=1746108938; cv=none; b=YSqTVOqjUY1UY7JWaJL6isJ/cDmfbSSv3nPgTO+plImpql22TOirCkp4dtNME7keuvGUUgyNCWFg3PsgfoQY6pZllq27Lhlyjp/b/YzL20bE3lhYmmwKKTVMvePV81923SWw2Y8FdUPXcyUq2xYiKtyVW4kpgIhFcIfi5ubsXeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108938; c=relaxed/simple; bh=EvFXeTzahnEagvdxiNro5FwGBqH/GHBKXeF0/kPTra0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u2lbUhOF14c5MUTTgcOU1NtzkrCZoFsZsRcWBDv3tO4h+UFq/k1mIQDrzOLU4Ad/ASmN5T8jth5Cqgi1bh8OviAiZlRBlZiBIDFXGEcr1nIFB9aZAFgvbpPq3OldzOP/4Tz4NG6sm1q/TeWmE/S+LEsKb8j1AXudky4xpj/3HVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KJzm3Sbj; 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="KJzm3Sbj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31AF7C4CEE3; Thu, 1 May 2025 14:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108938; bh=EvFXeTzahnEagvdxiNro5FwGBqH/GHBKXeF0/kPTra0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KJzm3SbjT2cLBhFjgy0abJm661dMhHZmkAj0wR1bW4+9mT/U5QIGdeY8k60Iu8hMN QLhIErxdouJga8sfu1OoXQULvxG7zIp6aJC59N7ggRNQ1XnnKthymyA9vueay/kWdB 9KmJwMzA8KVnajlNK1nRm5y6BPIJ6hGSDbFLwAd0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49858: octeontx2-pf: Fix SQE threshold checking Date: Thu, 1 May 2025 16:10:48 +0200 Message-ID: <2025050146-CVE-2022-49858-a1ee@gregkh> X-Mailer: git-send-email 2.49.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=2231; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9oVOU+8dO42adxwoeiBfy6l277fDVHX58g+MvEVJIEU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDatKn3w/5Pb8yK9fPYuKWTe90pnn8Syr56Wk0eL77 SfOz7CI74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXFjMME9vA5PQtSn9YXsr mrRb3CMjz06tX8qwYI+DofatlJQDqm/PztzwtZBt1lczcwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix SQE threshold checking Current way of checking available SQE count which is based on HW updated SQB count could result in driver submitting an SQE even before CQE for the previously transmitted SQE at the same index is processed in NAPI resulting losing SKB pointers, hence a leak. Fix this by checking a consumer index which is updated once CQE is processed. The Linux kernel CVE team has assigned CVE-2022-49858 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 3ca6c4c882a7f34085b170d93cf0d0e843aa00e6 and fixed in 6.0.9 with commit 015e3c0a3b16193aab23beefe4719484b9984c2d Issue introduced in 5.6 with commit 3ca6c4c882a7f34085b170d93cf0d0e843aa00e6 and fixed in 6.1 with commit f0dfc4c88ef39be0ba736aa0ce6119263fc19aeb 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-49858 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/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h 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/015e3c0a3b16193aab23beefe4719484b9984c2d https://git.kernel.org/stable/c/f0dfc4c88ef39be0ba736aa0ce6119263fc19aeb