net: mana: Guard mana_remove against double invocation
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.191, 6.12.114, 6.18.33, 6.6.160, 7.0.10
- CVEs
- CVE-2026-53297
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 10:23 UTC · Revision 1
Source evidence
net: mana: Guard mana_remove against double invocation
core-osv · Original sourcePublished 26 Jun 2026, 19:40 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.
osv:CVE-2026-53297
Kernel
Fixed versions: 6.1.191, 6.6.160, 6.12.114, 6.18.33, 7.0.10
Complete source record
{
"id": "ac34ebd9514527bb3f6d8e8d198089ace720bdeffe1506c703406f328a003d7d",
"url": "https://osv.dev/vulnerability/CVE-2026-53297",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: mana: Guard mana_remove against double invocation",
"summary": "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.",
"evidence": "osv:CVE-2026-53297",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.191",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.160",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.114",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.33",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-53297",
"aliases": [
"CVE-2026-53297"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "635096a86edb067d55a1e04b4a918f5c6dac0c51"
},
{
"fixed": "f63a6d2e4167703611f5c2602eaa1a23f635430f"
},
{
"fixed": "793bf1f4e469c51d0e39199823da5e1de85a2741"
},
{
"fixed": "8ee85b75a72216c857c39457f6595709c4c9f856"
},
{
"fixed": "a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6"
},
{
"fixed": "bbe5c3c570645a4ceb120979d3ee203a1583d775"
},
{
"fixed": "50271d7ec95144d26808025b508f463780517d3c"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53297.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.191"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.160"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.114"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.33"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53297.json"
}
}
],
"modified": "2026-11-01T02:30:43.515820742Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/50271d7ec95144d26808025b508f463780517d3c",
"https://git.kernel.org/stable/c/793bf1f4e469c51d0e39199823da5e1de85a2741",
"https://git.kernel.org/stable/c/8ee85b75a72216c857c39457f6595709c4c9f856",
"https://git.kernel.org/stable/c/a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6",
"https://git.kernel.org/stable/c/bbe5c3c570645a4ceb120979d3ee203a1583d775",
"https://git.kernel.org/stable/c/f63a6d2e4167703611f5c2602eaa1a23f635430f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53297.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-53297",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53297.json"
}
},
"related_cves": [
{
"value": "CVE-2026-53297",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 494457,
"published_at": "2026-06-26T19:40:55.155+00:00"
}