# CVE-2026-53297: net: mana: Guard mana_remove against double invocation

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-26T19:40:55.155Z
- Modified: 2026-11-06T17:18:23.377Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 635096a86edb067d55a1e04b4a918f5c6dac0c51 before f63a6d2e4167703611f5c2602eaa1a23f635430f; from 635096a86edb067d55a1e04b4a918f5c6dac0c51 before 793bf1f4e469c51d0e39199823da5e1de85a2741; from 635096a86edb067d55a1e04b4a918f5c6dac0c51 before 8ee85b75a72216c857c39457f6595709c4c9f856; from 635096a86edb067d55a1e04b4a918f5c6dac0c51 before a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6; from 635096a86edb067d55a1e04b4a918f5c6dac0c51 before bbe5c3c570645a4ceb120979d3ee203a1583d775; from 635096a86edb067d55a1e04b4a918f5c6dac0c51 before 50271d7ec95144d26808025b508f463780517d3c; 5.16 (not affected: before 5.16; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.16 before 6.18.33; from 6.19 before 7.0.10

## References

- <https://git.kernel.org/stable/c/f63a6d2e4167703611f5c2602eaa1a23f635430f>
- <https://git.kernel.org/stable/c/793bf1f4e469c51d0e39199823da5e1de85a2741>
- <https://git.kernel.org/stable/c/8ee85b75a72216c857c39457f6595709c4c9f856>
- <https://git.kernel.org/stable/c/a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6> (patch)
- <https://git.kernel.org/stable/c/bbe5c3c570645a4ceb120979d3ee203a1583d775> (patch)
- <https://git.kernel.org/stable/c/50271d7ec95144d26808025b508f463780517d3c> (patch)

## Sources

- CVE List: [CVE-2026-53297](https://www.cve.org/CVERecord?id=CVE-2026-53297), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-53297](https://nvd.nist.gov/vuln/detail/CVE-2026-53297), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-53297 · Whole record: https://cve.day/CVE-2026-53297.json · Rebuilt by cve.day 2026-11-25T22:59:26.529Z
