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=1792758348; b=uOk7FeaimfoDTrnj7ow0wnQhTOAyYTJT5x5lyqotfoeEl0M4IAzxYcyuhdvEvHoqj/dh jNQlh6HlhYafwIIIQreYcQisrBndYl5RtOtiSQZO9bu0mC2Duq3n8SrmXivI00gpF4olK Zwa4YqiRfcGt/s3ivbnBCYHmRIaTHfgeg5uV+fZLm3udGJmJRbu2pO0EnHlFREIkKdq2J Hfagl+4S4tYx+ksOK0ZIKI1aC+o0a/OeiNbwdhAGtKcKTIXZ0+1BxBlXgudUkNzq09Vb/ vy49ZfFbnMILnjL+tn1+seWFbCUEtm+vdGVXfbFQOtXswzQPR8fKX5hFdDqw1LypS9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758348; 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=vmbfv264zP+pvvEC3ncMhVfwbrSsJMScj5gZXRmqV1o=; b=qUdOvn5uQgyMYVmQ0pvI2ijNnbDdOMf3pY0IA4/3GJJxs00d+osS8r1PiXqrhnhuehET WkVR+MLmVIi6REfynkg0phVgQn2aQ50QWBhzcz3YBSI3AiHJzLIv+oNRdpRtbD0fFl38y ZstnXm1ATgxqr21UzOgyBNx/xqCX5Jlw/LRoCsMkDET/iqQDZz/BvMKJD6XfX/fxWpDeE VN3G2lZd3eEmllv0YxqYmex/c8u5IcH3z8DW/IvuPzsrNwZPw0lz45i8YNr3LIgDrQci8 DZYfmC9YIIHxpZQnL4nmpAOK6DNcn9Bb1z5F4sfua+QjR7QLjBYFLOle3VjJSKyhMmA== 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=nBTVaYIU; 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 14FE1606A31A for ; Fri, 23 Oct 2026 12:25:47 +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=nBTVaYIU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DCD61F01825; Fri, 23 Oct 2026 12:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758347; bh=vmbfv264zP+pvvEC3ncMhVfwbrSsJMScj5gZXRmqV1o=; h=From:To:Cc:Subject:Date:Reply-To; b=nBTVaYIUjPuqNI5Aj4pyfTA9uMz8ABPlQ7C4jFbe7fEq1nP4T7PPdTQVfQC99LRRB 6dFBKOtMqQ+a4kwgt3emtMsmm3oYCSraQmoC+s0GGzWFpGxvfNwGKRSUbd9FG2qF91 vry3t0uEwon4Ax/9ZLtid8fVFjVOROh3x5JWJvhM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98953: devlink: fix devlink_rel reference leak when notify work is pending Date: Fri, 23 Oct 2026 14:19:15 +0200 Message-ID: <2026102307-CVE-2026-98953-5f8b@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=3391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WuM1Eq2eVqTYUq/iMZYZl9Fx7HP7dligdziYYEeKwXk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A3avnHA87bBJ5u19CSofJSbX93xelLrX/cy2xSudH 2d/MPhzsSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmsrKBYX6q+wGVOa9M/nQx 8M5s+lp1rjP/WhvD/CrL59M+mB+etG1+wAKPGy/M10TkpwAA 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: devlink: fix devlink_rel reference leak when notify work is pending devlink_rel_nested_in_notify_work_schedule() takes a reference on the devlink_rel for the notify work and then queues the work, ignoring the return value of schedule_delayed_work(). If the work is already pending, nothing new is queued, the work runs only once and drops only one reference, so the extra one is leaked together with the devlink_rel and its index in devlink_rels. This is easy to hit. devl_register() of a nested instance queues the work, and if the instance is unregistered before the work has run, devlink_rel_put() queues it again while it is still pending. The work also keeps rescheduling itself for as long as the parent devlink lock cannot be taken, which widens the window. Registering and unregistering a nested devlink instance 100 times while holding the parent lock leaks all 100 devlink_rel objects. The reschedule path in devlink_rel_nested_in_notify_work() has the same problem: if the work was queued again while it was running, the reference it holds is never dropped. Drop the reference in both places when the work was already pending. The pending work holds its own reference, so this can not be the last one. The Linux kernel CVE team has assigned CVE-2026-98953 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 6.12.113 with commit 8c7830e0120e6e1f5084212fd5b79b3092496f87 Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 6.18.57 with commit 8de57bfec3825effb57fe4d25da98ec3b8fda4c6 Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 7.2.11 with commit dc2e787b5fb474241c8a6d18fdacb44adc6d571f Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 7.3 with commit c5381ae1cd1481cc431c2bd79460472c6f1d3ce3 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-98953 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/devlink/core.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/8c7830e0120e6e1f5084212fd5b79b3092496f87 https://git.kernel.org/stable/c/8de57bfec3825effb57fe4d25da98ec3b8fda4c6 https://git.kernel.org/stable/c/dc2e787b5fb474241c8a6d18fdacb44adc6d571f https://git.kernel.org/stable/c/c5381ae1cd1481cc431c2bd79460472c6f1d3ce3