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

      React.js for SaaS Platforms: How Top Development Teams Help Startups Launch Faster

      August 3, 2025

      Upwork Freelancers vs Dedicated React.js Teams: What’s Better for Your Project in 2025?

      August 1, 2025

      Is Agile dead in the age of AI?

      August 1, 2025

      Top 15 Enterprise Use Cases That Justify Hiring Node.js Developers in 2025

      July 31, 2025

      Unplugging these 7 common household devices helped reduce my electricity bills

      August 3, 2025

      DistroWatch Weekly, Issue 1133

      August 3, 2025

      Anthropic beats OpenAI as the top LLM provider for business – and it’s not even close

      August 2, 2025

      I bought Samsung’s Galaxy Watch Ultra 2025 – here’s why I have buyer’s remorse

      August 2, 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 details of TC39’s last meeting

      August 3, 2025
      Recent

      The details of TC39’s last meeting

      August 3, 2025

      Enhancing Laravel Queries with Reusable Scope Patterns

      August 1, 2025

      Everything We Know About Livewire 4

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

      DistroWatch Weekly, Issue 1133

      August 3, 2025
      Recent

      DistroWatch Weekly, Issue 1133

      August 3, 2025

      Newelle, a ‘Virtual Assistant’ for GNOME, Hits Version 1.0

      August 3, 2025

      Bustle – visualize D-Bus activity

      August 3, 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-6754 – “WordPress SEO Metrics Privilege Escalation”

    August 3, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-7710 – “Brave Conversion Engine WordPress Facebook Authentication Bypass”

    August 3, 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

    Taylor Swift hacked, but denies naked pictures will be leaked

    Development

    This top-rated Dyson hair dryer is on sale for the lowest price yet on Amazon

    News & Updates

    Urgent CISA Alert: Ransomware Actors Exploiting SimpleHelp RMM Flaw (CVE-2024-57727)

    Security

    HamClock – clock and world map with extra features for amateur radio

    Linux

    Highlights

    Development

    Compare Collection Keys with Laravel’s diffKeys Method

    May 29, 2025

    Laravel’s diffKeys method identifies collection differences based on keys rather than values, enabling precise structural…

    My favorite Garmin feature comes to its new Forerunner watch

    May 15, 2025

    Microsoft ha risolto il bug che impediva il dual boot tra Windows 11 e le distribuzioni GNU/Linux

    May 17, 2025

    CVE-2025-28963 – “URL Shortener Server-Side Request Forgery”

    July 4, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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