Bug 2493775 (CVE-2026-53297) - CVE-2026-53297 kernel: net: mana: Guard mana_remove against double invocation
Summary: CVE-2026-53297 kernel: net: mana: Guard mana_remove against double invocation
Keywords:
Status: NEW
Alias: CVE-2026-53297
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-26 21:06 UTC by OSIDB Bzimport
Modified: 2026-06-29 08:01 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-26 21:06:55 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-06-29 07:59:40 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062618-CVE-2026-53297-ccbc@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.