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 BD7732820C5 for ; Wed, 18 Jun 2025 11:04:43 +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=1750244683; cv=none; b=oy3PpW4focCVAOneB0B8iVgDLHw8yq29cu4YiWPy0PLs1SlChrnG5yul+KmMIRm0/VBE/05TAOffK0RBKk5VbIfKwsiHifJ37B/TcztgJMtY0X3DaiwtLic/8jsw1xii8xs8hDRU4vbahWlflvDC4U0sofsB9N5zHbROuDMO/1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244683; c=relaxed/simple; bh=TKVK5G8Na9gnz+UgulkpqP9BTBXRQmR9Jlbr1LOPsN0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HRMGyNa8PzW2STFKLK7/A5zi9BV6CP36xLHiHjZAUP7popCUdg2i4jb5XOWXPYAXPDpn7x5UYA7gU10uGzpavzxTd8lXqp11SY5wLS0XLqg9IKhd83JOw1tzhCoeLaXFZIzsPrWa6iEJRXWAuLKy2LAAIQuV8v6tL/Jlja4bDj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UP9e1s+e; 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="UP9e1s+e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29F36C4CEE7; Wed, 18 Jun 2025 11:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244683; bh=TKVK5G8Na9gnz+UgulkpqP9BTBXRQmR9Jlbr1LOPsN0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UP9e1s+eM5MuMp6O/kz4lvjiAGe5eEdeUBD/td4X3hCSx/GzggBCEg6ffJeOQpNbN 8AkaD2wamFZBum5xnZQ/hrcONyuP+YX//SrpJ7b6cE7OPgM8jURk/FGL9aCagbQHWQ Kgw2cVK/u67c/YntuALSni/gH1EN4vuT7vbw2Lds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49972: xsk: Fix corrupted packets for XDP_SHARED_UMEM Date: Wed, 18 Jun 2025 13:00:37 +0200 Message-ID: <2025061818-CVE-2022-49972-651b@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=2335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tI2tldfd0EKEpvc3szcDyjb1mjMT6qHV5+8orr86txQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc5w0Z6aHnubI9D5RxrYsvWdSR5Z09auuYqFTy/e8z PbRK/rTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZ+oJhfhRj6PaHVxcvnKjc c1eHrc19hX7Zd4Z5Wt9vKgRwHLWabPniwUrXLW3/nvuvBQA= 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: xsk: Fix corrupted packets for XDP_SHARED_UMEM Fix an issue in XDP_SHARED_UMEM mode together with aligned mode where packets are corrupted for the second and any further sockets bound to the same umem. In other words, this does not affect the first socket bound to the umem. The culprit for this bug is that the initialization of the DMA addresses for the pre-populated xsk buffer pool entries was not performed for any socket but the first one bound to the umem. Only the linear array of DMA addresses was populated. Fix this by populating the DMA addresses in the xsk buffer pool for every socket bound to the same umem. The Linux kernel CVE team has assigned CVE-2022-49972 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 94033cd8e73b8632bab7c8b7bb54caa4f5616db7 and fixed in 5.19.8 with commit 2c75891d56ab6fe5ba0d415bfad91d514a4027cd Issue introduced in 5.16 with commit 94033cd8e73b8632bab7c8b7bb54caa4f5616db7 and fixed in 6.0 with commit 58ca14ed98c87cfe0d1408cc65a9745d9e9b7a56 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-49972 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: net/xdp/xsk_buff_pool.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/2c75891d56ab6fe5ba0d415bfad91d514a4027cd https://git.kernel.org/stable/c/58ca14ed98c87cfe0d1408cc65a9745d9e9b7a56