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 1962360265 for ; Mon, 4 Mar 2024 18:18:27 +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=1709576308; cv=none; b=ohGJ0v+GFu66RBqw+iv2MmOMTE7flE088i3rA+alRVRD/eY/+d8R0Xwsfrz7SN0yvgpM6VWhApibDVF+6ii/6WbMmbSPivEgr3BdIF7qv0ixom9kI4KyDaFobmxcQow5BvNcW6z8oeRHoFy/Ua7tCZHRkCzPeAoDtlR/W/OI5fQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709576308; c=relaxed/simple; bh=COmZEdz+NgXW+6dAh3Pi74TIdlH5RxYLhyWUEayK4T0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ICFJkxbbbC6p38EHGopTKoWTqI3hPVruvn8XHyHCHuZfzG5uqHAuDTNJpPANZqWPc8xHJDbeywIW8F3zGdhxGb0SwsRxK92GcTQasLJRqeNNgLGOPELj2iitRXv6NcIv/nNeLaUBDj8nCiC2Qr+sXa7yyO+kY05h7KfWCQqUEAI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=osoF14DW; 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="osoF14DW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16D93C433F1; Mon, 4 Mar 2024 18:18:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709576307; bh=COmZEdz+NgXW+6dAh3Pi74TIdlH5RxYLhyWUEayK4T0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=osoF14DWBfMw/bHerFxEvwUlfl7YxquU1aUNofqMDhm3PLG/nmrxEVFqUXoLEG1j9 Ct1Oleg0ehfudoo6VN6M1JOQ6TfIukBVUYIwcswUAsVECILgA5ILewewNrZwX0gy6a YhVZ+1pjt4sONhegUwo8gT0XF2kI5Huq9f8t1JLY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47105: ice: xsk: return xsk buffers back to pool when cleaning the ring Date: Mon, 4 Mar 2024 19:17:46 +0100 Message-ID: <2024030444-CVE-2021-47105-fa23@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=2155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=COmZEdz+NgXW+6dAh3Pi74TIdlH5RxYLhyWUEayK4T0=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnPBDyFqjUCqjcenLFI8KrPO4+Lv1sO8S22fqG2OeViA u+1BUZ+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARZRGG+WmLPeeGGf4O/Txv JdOj+IjpP79NucKwoNM0Yt/y7y8nPFh+8Mn/Hdn8fAEBUwA= 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: ice: xsk: return xsk buffers back to pool when cleaning the ring Currently we only NULL the xdp_buff pointer in the internal SW ring but we never give it back to the xsk buffer pool. This means that buffers can be leaked out of the buff pool and never be used again. Add missing xsk_buff_free() call to the routine that is supposed to clean the entries that are left in the ring so that these buffers in the umem can be used by other sockets. Also, only go through the space that is actually left to be cleaned instead of a whole ring. The Linux kernel CVE team has assigned CVE-2021-47105 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 2d4238f55697 and fixed in 5.15.12 with commit ad6d20da2cfb Issue introduced in 5.5 with commit 2d4238f55697 and fixed in 5.16 with commit afe8a3ba85ec 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-47105 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/intel/ice/ice_xsk.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/ad6d20da2cfbe14b7b1200d15f39e65988b0b9e8 https://git.kernel.org/stable/c/afe8a3ba85ec2a6b6849367e25c06a2f8e0ddd05