Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792759444; b=AGRcFM5FW5/EmwWplTi6IIHhVpTu35g2PhSSDXaNvId5OkaOaUJpDYCbc2MTIm4Efn7O nhNfHeWo2xO+guB+ikaEuNNOsX9T7+eRAEX/VeGB/1bHguvIAQ9EAv1JfWVT20JIBsV09 MhZLNztVefRhLlUeHRkZm25Ch5CUV0KThkdBmQZHjywbB9mAGLkPlAlyfLnOK1/rWKnkF uA5rQCxCGLX/DEbo5QCL9w+xElRqUJOsurQxOQhv52Y/xPjx28UVFCR2PffNwlqPBQbor 5WENr6T9BLdqYo15QN6PNIEUmON0fexXcUjv2sCzfzuA2rIApQ6ixeF/SJPIQge+fOw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759444; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=JZlnN05691PwblmOMDylvID97ulhr1TbwHprrc0voFo=; b=nYyLmBwrTa14Dq1t3zYS9V1adguc6iZMjEzZahx1Vz6cwbz+QZn237a0oyMw3XaXXnJY zEJTBP1zMKFvFWju5GVBKFDcWBrwuifmr6MYKPUy7w8ytetD6HblHSWqIBfu/iy/ySbsw PvGrEWoD8RBHthWBzli6TGhyKzoRbhxqqr+X1eJe4s+kozA+O9fOSNwMAznmvUQsqu3gT +9RInD13FfnwoS4FPx3zjW/vFox+FbSvARIl26d3rHIwex/P+soo74/m1yGdHiXMo+yuO 1OwDOZTZNTXeRG+qmFwMcSA90JvcKbXokvJglAmA+nNQFOWI+4rR0RFIb7hdQPzfoPg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Z7kFUAsW; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D942D606A31F for ; Fri, 23 Oct 2026 12:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Z7kFUAsW Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B9FE1F01828; Fri, 23 Oct 2026 12:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759443; bh=JZlnN05691PwblmOMDylvID97ulhr1TbwHprrc0voFo=; h=From:To:Cc:Subject:Date:Reply-To; b=Z7kFUAsWTAGpP5UdegN+Nc5qV7U/rNX4j8IDeUUfUjjZ94rUKymDHKl8u0MF+d+hU yNKHi6fZWJlxD8Nx8z76Ch1F0kJlk9b0xA1obeQg3ujsketKTwcJhMnqf5ELnLJFbZ 3h8mhwYaRg3vvUxXpzC0MMTqBB4tQJU5PDURRtfo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99078: net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry Date: Fri, 23 Oct 2026 14:21:20 +0200 Message-ID: <2026102335-CVE-2026-99078-198e@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3661; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5gOjpUAN9g4PfgYdRsRSWJh/j8WE08325X8h2eEzOvI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A64fWHly/TOnjYLmXDPuO9RuqLsQu8I5T/bJ1S8NL /YzdZz174hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJVBowzNOJyg/jvJDAwrDS aPskjsme3yL+qDDMTynkXuL0jkFa9Nn27y07Fu6+o39dGgA= 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: net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry With AF_XDP on a striding RQ, mlx5e defers releasing XSK buffers until an MPWQE is refilled. If XSK allocation then returns -ENOMEM, actual_wq_head is not advanced and a later NAPI poll retries the same WQE. mlx5e_free_rx_mpwqe() leaves each released slot marked as releasable. On retry it can therefore call xsk_buff_free() again through stale pointers after the frames have returned to the XSK pool and been reallocated. Set all skip_release_bitmap bits in the common error path of mlx5e_xsk_alloc_rx_mpwqe(). This matches mlx5e_alloc_rx_mpwqe(). A successful allocation already clears the bitmap after replacing every buffer, so retries become idempotent without changing the success path. Fault injection forced three consecutive failures for one selected MPWQE. Both an early allocation failure and a partial 8-of-16-buffer unwind released the original 16 XSK buffers only once. Each error left a full bitmap, the following NAPI retry skipped the release, and a later successful allocation cleared it. A 20-second AF_XDP zero-copy pressure run exercised 1,575,262 buffer allocation failures without invalid descriptors, WQE errors, or kernel warnings. The Linux kernel CVE team has assigned CVE-2026-99078 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 4c2a1323680709078736a2886c754004e9fe42e6 and fixed in 6.6.160 with commit f3a52e2ec2788a7f6b64137985c087188a54ad4f Issue introduced in 6.4 with commit 4c2a1323680709078736a2886c754004e9fe42e6 and fixed in 6.12.113 with commit d215d09606b0fcd18ad1eb532995782a21cea49d Issue introduced in 6.4 with commit 4c2a1323680709078736a2886c754004e9fe42e6 and fixed in 6.18.57 with commit 867119b4b588037724b85839d534465f0334d9bd Issue introduced in 6.4 with commit 4c2a1323680709078736a2886c754004e9fe42e6 and fixed in 7.2.11 with commit 3d73a1164a8c6b4461907a65cb6c022ea4fd39af Issue introduced in 6.4 with commit 4c2a1323680709078736a2886c754004e9fe42e6 and fixed in 7.3 with commit 63811edf512584c946e5e96b100e9e280703bbb5 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-2026-99078 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/mellanox/mlx5/core/en/xsk/rx.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/f3a52e2ec2788a7f6b64137985c087188a54ad4f https://git.kernel.org/stable/c/d215d09606b0fcd18ad1eb532995782a21cea49d https://git.kernel.org/stable/c/867119b4b588037724b85839d534465f0334d9bd https://git.kernel.org/stable/c/3d73a1164a8c6b4461907a65cb6c022ea4fd39af https://git.kernel.org/stable/c/63811edf512584c946e5e96b100e9e280703bbb5