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 51F9049365D for ; Fri, 25 Sep 2026 10:30:55 +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=1790332256; cv=none; b=nXeS4CClY7u2+9pHbKs1k+FhN+1urRSpzqWO+ICfFv6tNjkG7/5JmljGoSPkVxC/Ec5AlTQjUq6sSgMXNIjb2JSlS65tv/EfA0ZJKx/Pt3CrV3XrzAz0CfCubG48RWClbBc7ymQu7JnSJjQ1hat939JkfjDLmgQlKhxYuR0WQus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332256; c=relaxed/simple; bh=6nw1GoVevaNSC1V3ib9qu+Wrrh4iWX2YG14w66iJmEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MVNJYLRRGMbbAzToaTvWFKJ10FAG237vdyoL4N/CeKdrGd6ipm/WbiyJYZtTpKhcy7NsmX65irDfYSMDuGRP49b2HzhD9auPQvIezvFM8UAfbziAhgao7sYPf7oHhFy+c0K5uidPqeg52hpZEY0CTHWEx+/AxU5F2iwWFB+g9qk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cwlFzuVh; 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="cwlFzuVh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE78D1F000FF; Fri, 25 Sep 2026 10:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332255; bh=TuzhoLeP9nJWkrj1WfHwAzucXT9XlBzpIdzKVfVgo1E=; h=From:To:Cc:Subject:Date:Reply-To; b=cwlFzuVhcfR7fv+NikF7KMrD+ry/nZreEjatk8pCAaRPwMms35W8dM2bmcQKxbe1/ 1oF/akL/AMBFCgvykguUGxgAaRS8pvksRV36GiR7Y9R9iiuBi9FAgOJUUdZ80keO3I 3nzG8WBZW2CUNxhVpTGUAXqUdELLWQGiKgqRm7ac= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97972: net: macb: put the "mdio" child node reference on success Date: Fri, 25 Sep 2026 12:24:35 +0200 Message-ID: <2026092518-CVE-2026-97972-8849@gregkh> X-Mailer: git-send-email 2.55.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=2445; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IvykLpNLGbS/RE4yaWNI5BareAZklCYiWX3wkk1bSYw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvKO6tf0fzBVy5nx3yNdH4KTK3Ipg/g3aD//eLLoXM Xf2o1jljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIj0CG2Wyv5aVfmLMeievj c7gp/eRGxiHLHwzzTDV28jrYXppRJT3r3RK5XUafH72sBgA= 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: macb: put the "mdio" child node reference on success macb_mii_init() holds the reference returned by of_get_child_by_name() for macb_mdiobus_register() and drops it only on the error paths, so every successful probe leaks a node reference. On a CM5, overlay removal after four bind cycles reports OF: ERROR: memory leak, expected refcount 1 instead of 5 Drop the reference after registration, where __mdiobus_register() has already taken its own for the lifetime of the bus. The Linux kernel CVE team has assigned CVE-2026-97972 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 8a6631f1cece09047fa44608d21d520ca65ce7d8 and fixed in 6.18.53 with commit 5fba30080d298edb742396073372385c961578d3 Issue introduced in 6.13 with commit 8a6631f1cece09047fa44608d21d520ca65ce7d8 and fixed in 7.2.7 with commit 7d60dc7ff85b73a2119d582ca2d4456b30960380 Issue introduced in 6.13 with commit 8a6631f1cece09047fa44608d21d520ca65ce7d8 and fixed in 7.3-rc3 with commit 382a373d9ea7a6ac4de9c022385b6217f65ae3cc 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-97972 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/cadence/macb_main.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/5fba30080d298edb742396073372385c961578d3 https://git.kernel.org/stable/c/7d60dc7ff85b73a2119d582ca2d4456b30960380 https://git.kernel.org/stable/c/382a373d9ea7a6ac4de9c022385b6217f65ae3cc