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 2B0B4361DB4 for ; Fri, 3 Apr 2026 15:24:59 +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=1775229899; cv=none; b=k2vbC6n7CjogAZ+xApr70nldHcGF3jf6Zy8tJvZhhHOpCj39jmkqAEFS1glbYusfNS8a0ZIxegbSA2ndtc2yt5yv4wV6gItoLs3chP2OdC0wSPdELfL85/4f2fUXd0j9hzrQ8DWkBBIrlSlMUUH+AjxYO+Xq8TswhaOkoVbtThY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229899; c=relaxed/simple; bh=quxu77dtk5R8lSuO/0mWY1/2fBeeXAaoStqXBHAiaUk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=epFZbA9fwa+uTjfGwUG9rDAkjGQYofKkPu0MTs+xBZlHqZouFJmN/dGLdq3fw9idkg6S/RRRR4PUrN3eH0aV/djgdQOjqb0qLTJlTMRXvCHKcE9zxdjon+u4Ejs1kOPrGl/MhsbUeLFXsBfDel8h58STTAydg3gCl9EVLEyDYC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SfCdbmN/; 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="SfCdbmN/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A15F3C4CEF7; Fri, 3 Apr 2026 15:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229899; bh=quxu77dtk5R8lSuO/0mWY1/2fBeeXAaoStqXBHAiaUk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=SfCdbmN/v1wL2yyqQi40qRr4IaW2X+3KOkD20Z+bGS1pc3qqGxxpgRAgf/d66nWnH ZLZDAVz535P+sVh+cd39u1EcSqzv948MweJkleugN9me8jG3xBTrMZopOuwiUIskIU xC1009lfrztntRwcbuG/+gC+Iq1lTRsnyJXvey4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23436: net: shaper: protect from late creation of hierarchy Date: Fri, 3 Apr 2026 17:18:17 +0200 Message-ID: <2026040312-CVE-2026-23436-f1f8@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2897; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XmO6eu3K/Kb6g57ng65xgdAyzHpE/JtuUMKyjocUdqE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb5kUe0758uamu5a7h9RP7YR45jrbNSzTA5TCK4XLX +n/95LqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk4HWCYK7iicsXRTTnl759+ iVFtXdouxBfNwjA/aMekmB4Gxfaeoq4niwryVb/E9qwCAA== 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: shaper: protect from late creation of hierarchy We look up a netdev during prep of Netlink ops (pre- callbacks) and take a ref to it. Then later in the body of the callback we take its lock or RCU which are the actual protections. The netdev may get unregistered in between the time we take the ref and the time we lock it. We may allocate the hierarchy after flush has already run, which would lead to a leak. Take the instance lock in pre- already, this saves us from the race and removes the need for dedicated lock/unlock callbacks completely. After all, if there's any chance of write happening concurrently with the flush - we're back to leaking the hierarchy. We may take the lock for devices which don't support shapers but we're only dealing with SET operations here, not taking the lock would be optimizing for an error case. The Linux kernel CVE team has assigned CVE-2026-23436 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 93954b40f6a4fc43226c01a15b02732f884500f1 and fixed in 6.18.20 with commit 719f6784f918f9e32f3ff3b197f900e852223f9d Issue introduced in 6.13 with commit 93954b40f6a4fc43226c01a15b02732f884500f1 and fixed in 6.19.10 with commit d22921727023e7852704965e935f4d1fc83a5ec9 Issue introduced in 6.13 with commit 93954b40f6a4fc43226c01a15b02732f884500f1 and fixed in 7.0-rc5 with commit d75ec7e8ba1979a1eb0b9211d94d749cdce849c8 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-23436 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: Documentation/netlink/specs/net_shaper.yaml net/shaper/shaper.c net/shaper/shaper_nl_gen.c net/shaper/shaper_nl_gen.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/719f6784f918f9e32f3ff3b197f900e852223f9d https://git.kernel.org/stable/c/d22921727023e7852704965e935f4d1fc83a5ec9 https://git.kernel.org/stable/c/d75ec7e8ba1979a1eb0b9211d94d749cdce849c8