Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 481E339936D for ; Thu, 25 Jun 2026 09:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782380795; cv=none; b=igBVqe6vXCV8XlF03CbhhxmLar6G09qt5ET1POioXJAx6mD4U6nCb7S50upB9G267VEJiPeAA5kghpvlfk13UrGKq3kbYbyDdto+ylNErmrenDSTMLkeuaT+zmuMKAR1uLz0ilBmvRWliCb/WZbfVHH3gQNHznYYKmzmAYjZeCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782380795; c=relaxed/simple; bh=tfQbVJOv8cLNUx4JRQpQ5tdOKjnn3TP/OQhCJV0QTQ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GCh1A+JsBMIFpS5JpK/aNlN+e9wrRAyXT9y9mEyEzlagZLEhKnu+07YByknTVjcz9gm+0LtcvE0fnY9HD6zwF7GcvaARwAyaaI7s5vpZDSzb0gB8Xzo7X1Z2w/6kUItIsKpv8zrY+ZNOkt3bNBnmZfnK4lxCV1Rf6YUugtb7fvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x5gPEuKf; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x5gPEuKf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A085D1F000E9; Thu, 25 Jun 2026 09:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782380794; bh=oCP48qRlMTcNLiFZYEwEw99hEX4KB1J0WVjAf4JSzgI=; h=From:To:Cc:Subject:Date:Reply-To; b=x5gPEuKfUqDx2ZOR+SN6ifyv2tqyK9Jlt1BM87RRPDcbHvkm7L4n1TcBBshot3ugm VmTVd8+q8DVTnv/9/ZhV5eMyv62Xgd9MjVjK5kZvXt6gjeV+zy+3o2MVaKpicGmKn5 /GBUczKYEFl/FsmQDVGaf8c4gQi9U+c0f+RZMAAM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53261: devlink: Release nested relation on devlink free Date: Thu, 25 Jun 2026 09:41:49 +0100 Message-ID: <2026062516-CVE-2026-53261-bde9@gregkh> X-Mailer: git-send-email 2.54.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=2872; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dg3lOQiJ5hT4y0mjg+ZPMeOrfPlyFNXk4GEHsgFN0tw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LwtW24qbCtTllLuleqpnb2uP3bx6z82Fjx8UiWbfi 372dklCRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk7guGBQ1/9gVe57cVjLpY 58OZeHKp0B3twwwLpryxeM50n1d0fprEzMWMKfk5ChW5AA== 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: Release nested relation on devlink free devlink relation state is normally released from devl_unregister(), which calls devlink_rel_put(). This misses devlink instances that get a nested relation before registration and then fail probe before devl_register() is reached. That flow can happen for SFs. The child devlink gets linked to its parent before registration, then a later probe error calls devlink_free() directly. Since the instance was never registered, devl_unregister() is not called and devlink->rel is leaked. Release any pending relation from devlink_free() as well. The registered path is unchanged because devl_unregister() already clears devlink->rel before devlink_free() runs. The Linux kernel CVE team has assigned CVE-2026-53261 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 6.12.94 with commit a9137286884703113b1c9e6403bd6d7d97b14754 Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 6.18.36 with commit 927f96861f939c0b517d13ed27bf4fabbfc1cfb3 Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 7.0.13 with commit 11324d52b0c63f4f202b35793c6507a575e9a689 Issue introduced in 6.7 with commit c137743bce02b18c1537d4681aa515f7b80bf0a8 and fixed in 7.1 with commit 3522b21fd7e1863d0734537737bd59f1b90d0190 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-53261 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/a9137286884703113b1c9e6403bd6d7d97b14754 https://git.kernel.org/stable/c/927f96861f939c0b517d13ed27bf4fabbfc1cfb3 https://git.kernel.org/stable/c/11324d52b0c63f4f202b35793c6507a575e9a689 https://git.kernel.org/stable/c/3522b21fd7e1863d0734537737bd59f1b90d0190