CVE-2026-53234
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
25/06/2026
Last modified:
08/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: ibm: emac: Fix use-after-free during device removal<br />
<br />
The driver was using devm_register_netdev() which causes unregister_netdev()<br />
to be deferred until the devres cleanup phase, which runs after emac_remove()<br />
returns. This creates a use-after-free window where:<br />
<br />
1. emac_remove() is called, which tears down hardware (cancels work, detaches<br />
modules, unregisters from MAL)<br />
2. emac_remove() returns<br />
3. devres cleanup runs and finally calls unregister_netdev()<br />
<br />
During step 3, the network stack might still process packets, triggering<br />
emac_irq(), emac_poll(), or other handlers that access now-freed hardware<br />
resources (dev->emacp, dev->mal, etc.).<br />
<br />
Fix this by replacing devm_register_netdev() with manual register_netdev()<br />
and calling unregister_netdev() at the beginning of emac_remove(), before<br />
any hardware teardown. This ensures the network device is fully stopped and<br />
unregistered before hardware resources are released.<br />
<br />
The change is safe because:<br />
- dev->ndev is assigned very early in probe (before any error paths that<br />
could bypass emac_remove)<br />
- platform_set_drvdata() is only called after successful registration, so<br />
emac_remove() only runs for fully registered devices<br />
- unregister_netdev() is idempotent and safe to call on any registered device
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.12 (including) | 6.12.94 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.18.36 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 7.0.13 (excluding) |
| cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



