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=1792756510; b=G2n2Tmf8zhpkHtWfWu2trtM8p+FjbiMQsaJHtt9gXJrFZ61Wz6zw69pjwFHPweFKkMK0 +Yd5qDIveQL+8vCTuoFFQ/MbeP6r2O9GLFVCz5qV+9NUNuxRMm3G50T/VmUK0D9dTBnaB X6uyxXdcXwQaJ31TyqdSm8Sc87mQl0Av7L/8G2wruwI5smr2x8NCDH+WEHEGQvE+FPJnI EkPPinVWKH7Xpg73lOTfVA61q36lBzF2bNgFwjj34ei359SFR/IvdhmPEaRlTRkuNHpOT 2slyOU5OgaNRSVyjz5FYbLRvOg7lGkcYAnn2qCuRfcSw7SCp8Su9gHtyBD49wsfK7yQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792756510; 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=7L/boH16nhtywMMtMNKCO2iXxaraY00XlfKXnc1ZmBA=; b=EkohVLExg73d2gIyCme4RG9rrCrp/80mE05rKzYYA6qwU2qGXkVKltWAR0T7HoKzMp/7 1XsO8BSBLMJmkCKLtjEGixO09NnUEc9jg25PyyKeRIYSerEBYRH9L0Cf/q7T45hadOAva 0MywY0+Yg76x8T6ms2LTBaOrlHn9wOd1s06hIOqDovoA0+64D12dSz/ote5h/aj6ptShP NS2MQOaCdcklHSDr3hSNae5B55gT5ZrF5K967AMCkq93Bixe5AmtE22E0+ZqLl2C2bIZ7 B88n3e7Dx6Db95ytSV59ldBqvueSlzK5Fy90q+g1wkzCTvH0xz1A/VEOEYKRx3KEk3g== 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=Lsm9XK+y; 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 683BB606A31A for ; Fri, 23 Oct 2026 11:55:10 +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=Lsm9XK+y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54E511F01825; Fri, 23 Oct 2026 11:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792756509; bh=7L/boH16nhtywMMtMNKCO2iXxaraY00XlfKXnc1ZmBA=; h=From:To:Cc:Subject:Date:Reply-To; b=Lsm9XK+yF7jHmDgLg0uu5GpecFxBohWQpvA57HzA9DJAfSYbhIQPvIhOszHxFQ1FI fLg53crbA0x90KwrN7PenIl3uiIcsNIpKIlgViWLqaX9ykAzr+YDCUPPSd+A+0sBk4 djx7JcisJ709sqlub7hLAL2LPeQKR/J7i4dDr6Ps= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98908: net: microchip: sparx5: clean up PSFP resources on flower setup failure Date: Fri, 23 Oct 2026 13:54:21 +0200 Message-ID: <2026102313-CVE-2026-98908-2b82@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=2754; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0dWGWbzlXPtT8TlzeJnSNEQqlYOdDay8CKMvrWSdmbE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3vZ6WnW2KCg3zXpD5wrB38sdcy5BdAZvnpTMnrk/ZV 18SZDa5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy6TDDTMYcnbtT7x0uOl/I mej2MPWCM++yZwzzg0ufMPNVaxz6Z3WHO7L21yPm5TfDAA== 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: microchip: sparx5: clean up PSFP resources on flower setup failure sparx5_tc_flower_psfp_setup() allocates PSFP stream gate, flow meter and stream filter resources before adding VCAP actions. If a later step fails, the resources allocated earlier in the function are not unwound. Add error paths to release the stream filter, flow meter and stream gate when setup fails after they have been acquired. Also make sparx5_psfp_fm_add() return the acquired flow-meter id before the existing-flow-meter early return. When an existing flow meter is reused, sparx5_psfp_fm_get() increments its pool reference count, but the caller previously kept psfp_fmid as 0. If a later setup step failed, the error path could try to delete flow-meter id 0 instead of the reused flow meter, leaving the incremented reference behind. The Linux kernel CVE team has assigned CVE-2026-98908 to this issue. Affected and fixed versions =========================== Fixed in 6.6.158 with commit a7625d408f7f0535c2b0f05d53231d6496acd48b Fixed in 6.12.111 with commit a46ea3f7ee0d3ad3d5e92043232b293be2a305d3 Fixed in 6.18.53 with commit 640c1bd8d359ad34817f5afec0872985e87b49ec Fixed in 7.2 with commit 46e50367338702abe3df661df7795bdada40fef7 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-98908 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/microchip/sparx5/sparx5_psfp.c drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.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/a7625d408f7f0535c2b0f05d53231d6496acd48b https://git.kernel.org/stable/c/a46ea3f7ee0d3ad3d5e92043232b293be2a305d3 https://git.kernel.org/stable/c/640c1bd8d359ad34817f5afec0872985e87b49ec https://git.kernel.org/stable/c/46e50367338702abe3df661df7795bdada40fef7