CVE-2026-53234: net: ibm: emac: Fix use-after-free during device removal

Published Jun 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: ibm: emac: Fix use-after-free during device removal

The driver was using devmregisternetdev() which causes unregisternetdev() to be deferred until the devres cleanup phase, which runs after emacremove() returns. This creates a use-after-free window where:

1. emacremove() is called, which tears down hardware (cancels work, detaches modules, unregisters from MAL) 2. emacremove() returns 3. devres cleanup runs and finally calls unregisternetdev()

During step 3, the network stack might still process packets, triggering emacirq(), emacpoll(), or other handlers that access now-freed hardware resources (dev->emacp, dev->mal, etc.).

Fix this by replacing devmregisternetdev() with manual registernetdev() and calling unregisternetdev() at the beginning of emacremove(), before any hardware teardown. This ensures the network device is fully stopped and unregistered before hardware resources are released.

The change is safe because: - dev->ndev is assigned very early in probe (before any error paths that could bypass emacremove) - platformsetdrvdata() is only called after successful registration, so emacremove() only runs for fully registered devices - unregisternetdev() is idempotent and safe to call on any registered device

Affected Software

11 affected components
Linux Linux kernel (ibm emac driver)
Linux Linux kernel>=6.12<6.12.94
Linux Linux kernel>=6.13<6.18.36
Linux Linux kernel>=6.19<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6
Linux Linux kernel=7.1-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Replace devm_register_netdev() with manual register_netdev() so that unregister_netdev() is not deferred to the devres cleanup phase after emac_remove() has begun teardown.

    Linux kernel driver: net: ibm: emac devm_register_netdev() = replace_with_register_netdev()

Event History

Jun 25, 2026
CVE Published
via MITRE·08:39 AM
Data Sourced
via MITRE·08:39 AM
Description
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Systems running the Linux kernel IBM EMAC driver are exposed when an affected EMAC network device is removed. The issue is local-only according to the CVSS vector and requires low privileges.

2

What must happen for exploitation or impact to occur?

The EMAC device removal path must run while the network stack can still process packets. After hardware teardown begins, packet processing can invoke interrupt, polling, or related handlers that access released EMAC or MAL resources.

3

Are default configurations known to be affected?

The provided information does not establish whether the IBM EMAC driver is enabled or used by default. Exposure depends on the affected driver being present and an EMAC device undergoing removal.

4

What mitigation is available if the fix cannot be applied immediately?

No alternative mitigation is specified. Reducing or avoiding removal of affected EMAC devices would avoid the described device-removal race condition.

5

How can I determine whether a system may be affected?

Check whether the running Linux kernel includes and uses the IBM EMAC driver, and whether affected network devices are removed. The relevant unsafe behavior is registration through devm_register_netdev() with unregistration deferred until devres cleanup after emac_remove() returns.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203