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

      Top 10 Use Cases of Vibe Coding in Large-Scale Node.js Applications

      September 3, 2025

      Cloudsmith launches ML Model Registry to provide a single source of truth for AI models and datasets

      September 3, 2025

      Kong Acquires OpenMeter to Unlock AI and API Monetization for the Agentic Era

      September 3, 2025

      Microsoft Graph CLI to be retired

      September 2, 2025

      5 tips for writing better custom instructions for Copilot

      September 3, 2025

      More than €1.2 billion raised by EIC Scaling Club members

      September 3, 2025

      7 Must-Know GSAP Animation Tips for Creative Developers

      September 3, 2025

      CodeSOD: Adding to the Argument

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

      Updates from N|Solid Runtime: The Best Open-Source Node.js RT Just Got Better

      September 3, 2025
      Recent

      Updates from N|Solid Runtime: The Best Open-Source Node.js RT Just Got Better

      September 3, 2025

      Scale Your Business with AI-Powered Solutions Built for Singapore’s Digital Economy

      September 3, 2025

      Creating a JavaScript Debugging Utility to Guard Noisy Production Consoles

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

      Lenovo Legion Go 2 confirmed with Ryzen Z2 Extreme, 1200p OLED 144Hz display & 74Wh battery

      September 2, 2025
      Recent

      Lenovo Legion Go 2 confirmed with Ryzen Z2 Extreme, 1200p OLED 144Hz display & 74Wh battery

      September 2, 2025

      How to Open Ports in Firewall on Windows Server

      September 2, 2025

      Google TV Remote Not Working? 5 Quick Fixes

      September 2, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Security»Common Vulnerabilities and Exposures (CVEs)»CVE-2025-38349 – Linux Kernel Epoll Use-After-Free Vulnerability

    CVE-2025-38349 – Linux Kernel Epoll Use-After-Free Vulnerability

    July 18, 2025

    CVE ID : CVE-2025-38349

    Published : July 18, 2025, 8:15 a.m. | 2 hours, 42 minutes ago

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

    eventpoll: don’t decrement ep refcount while still holding the ep mutex

    Jann Horn points out that epoll is decrementing the ep refcount and then
    doing a

    mutex_unlock(&ep->mtx);

    afterwards. That’s very wrong, because it can lead to a use-after-free.

    That pattern is actually fine for the very last reference, because the
    code in question will delay the actual call to “ep_free(ep)” until after
    it has unlocked the mutex.

    But it’s wrong for the much subtler “next to last” case when somebody
    *else* may also be dropping their reference and free the ep while we’re
    still using the mutex.

    Note that this is true even if that other user is also using the same ep
    mutex: mutexes, unlike spinlocks, can not be used for object ownership,
    even if they guarantee mutual exclusion.

    A mutex “unlock” operation is not atomic, and as one user is still
    accessing the mutex as part of unlocking it, another user can come in
    and get the now released mutex and free the data structure while the
    first user is still cleaning up.

    See our mutex documentation in Documentation/locking/mutex-design.rst,
    in particular the section [1] about semantics:

    “mutex_unlock() may access the mutex structure even after it has
    internally released the lock already – so it’s not safe for
    another context to acquire the mutex and assume that the
    mutex_unlock() context is not using the structure anymore”

    So if we drop our ep ref before the mutex unlock, but we weren’t the
    last one, we may then unlock the mutex, another user comes in, drops
    _their_ reference and releases the ‘ep’ as it now has no users – all
    while the mutex_unlock() is still accessing it.

    Fix this by simply moving the ep refcount dropping to outside the mutex:
    the refcount itself is atomic, and doesn’t need mutex protection (that’s
    the whole _point_ of refcounts: unlike mutexes, they are inherently
    about object lifetimes).

    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-2025-6197 – Grafana Open Redirect Vulnerability
    Next Article CVE-2025-26855 – Joomla Articles Calendar SQL Injection

    Related Posts

    Development

    Malicious npm Package nodejs-smtp Mimics Nodemailer, Targets Atomic and Exodus Wallets

    September 3, 2025
    Development

    Silver Fox Exploits Microsoft-Signed WatchDog Driver to Deploy ValleyRAT Malware

    September 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

    LWiAI Podcast #201 – GPT 4.5, Sonnet 3.7, Grok 3, Phi 4

    Artificial Intelligence

    CVE-2025-55586 – TOTOLINK A3002R Buffer Overflow DoS

    Common Vulnerabilities and Exposures (CVEs)

    7 AI features coming to iOS 26 that I can’t wait to use (and how you can try them)

    News & Updates

    Using CSS Cascade Layers With Tailwind Utilities

    News & Updates

    Highlights

    Machine Learning

    Multimodal Models Don’t Need Late Fusion: Apple Researchers Show Early-Fusion Architectures are more Scalable, Efficient, and Modality-Agnostic

    April 14, 2025

    Multimodal artificial intelligence faces fundamental challenges in effectively integrating and processing diverse data types simultaneously.…

    Tailwind CSS vs. Bootstrap: Which Framework Is Right for Your Next Project?

    August 13, 2025

    I got tired of running out of room on my Legion Go — Here’s how I upgraded the SSD

    July 4, 2025

    CVE-2025-49848 – Apache PRJ File Out-of-bounds Write Vulnerability

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

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