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 826673BBFC9 for ; Fri, 26 Jun 2026 19:42:26 +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=1782502947; cv=none; b=kPEmpCxrNF6+iC6bxikBBg4ItNZXgyKWItnoMylJtb/cBUKQVtQbhBcqNMQgT2TZblPNwr5G1rqya5q6VZ+LuAltSwEqXthFSGYCaiI8ZUW0CFYwPNjnHB2fRHe7HcpDnxlut2hgY6ZOq139wj3Fou733p9zx6C+mhIlwm5elY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782502947; c=relaxed/simple; bh=yhP+twTmnfMvD/tP+thoHie5x3y0o8mapQEkEqKpE5g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ExZMV7ljilys1q3dmwHyfZVdh4KGDwHuQtCJRcE1N3w5upXCSKiH/vAT+LjQxbP0mpYxpA2yzRBLdQispjgc1IpvNhREeaR8kNBNiOekdsoWwmDCmBdLfoKZgJZ3GHPZ/ZxLPTYCn2/rMVBWEPmCRdo+JXooa8RZAtrFeKi697Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CYGPTRQ3; 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="CYGPTRQ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 871C31F000E9; Fri, 26 Jun 2026 19:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782502946; bh=ZNODJLO7p1pa/180cGT0EYLD0RSYgK7aKT0y2nmDF8g=; h=From:To:Cc:Subject:Date:Reply-To; b=CYGPTRQ3TGlBq4mksGW3Ll02bUZ3mk6kVGWLDm0oPphisTc0tXa/XXSMImarnmAT9 IgHCWWun7W6zLwQGXbLMc3Qee93+mZZ6vs3Q54fi+88cCtv4sYOuq0Hh/sHXlCTDdU HVbbaVZx+cicv76vJCp2fypl3wUOrqO+2xMG6pzY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53297: net: mana: Guard mana_remove against double invocation Date: Fri, 26 Jun 2026 20:40:30 +0100 Message-ID: <2026062618-CVE-2026-53297-ccbc@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=2625; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uuYuz8xjkmawrwOBdIDp02fF/XeXGRT8tny4vbo9k80=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2Vxc5dWkcbjD0L91+6Us5Z9SOpxvithx+Ltcs0Fzgt WiXw56EjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIxCSGBTM2VE5t9Fn8fGk6 H7vFt8jyp/N57jPMDwkKDszeINxzW7tlnpT340OK0usrAA== 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: mana: Guard mana_remove against double invocation If PM resume fails (e.g., mana_attach() returns an error), mana_probe() calls mana_remove(), which tears down the device and sets gd->gdma_context = NULL and gd->driver_data = NULL. However, a failed resume callback does not automatically unbind the driver. When the device is eventually unbound, mana_remove() is invoked a second time. Without a NULL check, it dereferences gc->dev with gc == NULL, causing a kernel panic. Add an early return if gdma_context or driver_data is NULL so the second invocation is harmless. Move the dev = gc->dev assignment after the guard so it cannot dereference NULL. The Linux kernel CVE team has assigned CVE-2026-53297 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 635096a86edb067d55a1e04b4a918f5c6dac0c51 and fixed in 6.18.33 with commit a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6 Issue introduced in 5.16 with commit 635096a86edb067d55a1e04b4a918f5c6dac0c51 and fixed in 7.0.10 with commit bbe5c3c570645a4ceb120979d3ee203a1583d775 Issue introduced in 5.16 with commit 635096a86edb067d55a1e04b4a918f5c6dac0c51 and fixed in 7.1 with commit 50271d7ec95144d26808025b508f463780517d3c 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-53297 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/microsoft/mana/mana_en.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/a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6 https://git.kernel.org/stable/c/bbe5c3c570645a4ceb120979d3ee203a1583d775 https://git.kernel.org/stable/c/50271d7ec95144d26808025b508f463780517d3c