Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Security»Common Vulnerabilities and Exposures (CVEs)»CVE-2022-50220 – Linux USBnet Use-After-Free Vulnerability

    CVE-2022-50220 – Linux USBnet Use-After-Free Vulnerability

    June 18, 2025

    CVE ID : CVE-2022-50220

    Published : June 18, 2025, 11:15 a.m. | 3 hours, 16 minutes ago

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

    usbnet: Fix linkwatch use-after-free on disconnect

    usbnet uses the work usbnet_deferred_kevent() to perform tasks which may
    sleep. On disconnect, completion of the work was originally awaited in
    ->ndo_stop(). But in 2003, that was moved to ->disconnect() by historic
    commit “[PATCH] USB: usbnet, prevent exotic rtnl deadlock”:

    https://git.kernel.org/tglx/history/c/0f138bbfd83c

    The change was made because back then, the kernel’s workqueue
    implementation did not allow waiting for a single work. One had to wait
    for completion of *all* work by calling flush_scheduled_work(), and that
    could deadlock when waiting for usbnet_deferred_kevent() with rtnl_mutex
    held in ->ndo_stop().

    The commit solved one problem but created another: It causes a
    use-after-free in USB Ethernet drivers aqc111.c, asix_devices.c,
    ax88179_178a.c, ch9200.c and smsc75xx.c:

    * If the drivers receive a link change interrupt immediately before
    disconnect, they raise EVENT_LINK_RESET in their (non-sleepable)
    ->status() callback and schedule usbnet_deferred_kevent().
    * usbnet_deferred_kevent() invokes the driver’s ->link_reset() callback,
    which calls netif_carrier_{on,off}().
    * That in turn schedules the work linkwatch_event().

    Because usbnet_deferred_kevent() is awaited after unregister_netdev(),
    netif_carrier_{on,off}() may operate on an unregistered netdev and
    linkwatch_event() may run after free_netdev(), causing a use-after-free.

    In 2010, usbnet was changed to only wait for a single instance of
    usbnet_deferred_kevent() instead of *all* work by commit 23f333a2bfaf
    (“drivers/net: don’t use flush_scheduled_work()”).

    Unfortunately the commit neglected to move the wait back to
    ->ndo_stop(). Rectify that omission at long last.

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCVE-2022-50227 – “KVM Xen Timer Initialization Vulnerability”
    Next Article CVE-2022-50218 – Linux Kernel IIO Light Driver Null Pointer Dereference Vulnerability

    Related Posts

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-44658 – Netgear RAX30 PHP-FPM Misconfigured Extension Bypass Vulnerability

    July 22, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-7393 – Drupal Mail Login Authentication Bypass

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    ai generator coloring page

    Web Development

    CVE-2025-32456 – Quantenna Wi-Fi Command Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    OpenDocument Format (ODF) celebra il suo 20° anniversario!

    Linux

    Can you get HEVC codec for free on Windows 11?

    Operating Systems

    Highlights

    CVE-2025-34073 – Maltrail Command Injection Vulnerability

    July 2, 2025

    CVE ID : CVE-2025-34073

    Published : July 2, 2025, 2:15 p.m. | 1 hour, 1 minute ago

    Description : An unauthenticated command injection vulnerability exists in stamparm/maltrail (Maltrail) versions
    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-2517 – OpenText ArcSight Enterprise Security Manager Domain Reference Leak

    April 21, 2025

    CVE-2025-7759 – Thinkgem JeeSite UEditor Image Grabber SSRF Vulnerability

    July 17, 2025

    Why I’m switching to VS Code. Hint: It’s all about AI tool integration

    June 16, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.