# CVE-2022-49501: linux: In the Linux kernel, the following vulnerability has been resolved:  usbnet: Run unregister_netdev() before unbind()...

CVE-2022-49501 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-49501, released February 26, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-49501
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0027
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 26, 2025

## Description

In the Linux kernel, the following vulnerability has been resolved:  usbnet: Run unregister_netdev() before unbind() again  Commit 2c9d6c2b871d ("usbnet: run unbind() before unregister_netdev()") sought to fix a use-after-free on disconnect of USB Ethernet adapters.  It turns out that a different fix is necessary to address the issue: https://lore.kernel.org/netdev/18b3541e5372bc9b9fc733d422f4e698c089077c.1650177997.git.lukas@wunner.de/  So the commit was not necessary.  The commit made binding and unbinding of USB Ethernet asymmetrical: Before, usbnet_probe() first invoked the ->bind() callback and then register_netdev().  usbnet_disconnect() mirrored that by first invoking unregister_netdev() and then ->unbind().  Since the commit, the order in usbnet_disconnect() is reversed and no longer mirrors usbnet_probe().  One consequence is that a PHY disconnected (and stopped) in ->unbind() is afterwards stopped once more by unregister_netdev() as it closes the netdev before unregistering.  That necessitates a contortion in ->stop() because the PHY may only be stopped if it hasn't already been disconnected.  Reverting the commit allows making the call to phy_stop() unconditional in ->stop().

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 5.18.5-1 | [DEBIAN-CVE-2022-49501](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49501.md) | Feb 26, 2025 |
| Linux | linux Debian 13.5 (trixie) | 5.18.5-1 | [DEBIAN-CVE-2022-49501](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49501.md) | Feb 26, 2025 |
| Linux | linux Debian 14 | 5.18.5-1 | [DEBIAN-CVE-2022-49501](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49501.md) | Feb 26, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
