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-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

    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

    Vibe coding with GitHub Copilot: Agent mode and MCP support rolling out to all VS Code users

    News & Updates

    CVE-2025-3230 – Mattermost Unvalidated Personal Access Token Deactivation

    Common Vulnerabilities and Exposures (CVEs)

    How to Get YouTube Channel Views Using Custom GPTs? Leaked Guide (2025 Edition)

    Artificial Intelligence

    CVE-2025-47691 – Ultimate Member Code Injection

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Accelerating Go-to-Market with Agile AI Product Development🚀

    July 2, 2025

    Post Content Source: Read More 

    Smashing Security podcast #411: The fall of Troy, and whisky barrel scammers

    April 2, 2025

    Rilasciato qBittorrent 5.1: Le novità del client BitTorrent open source multi-piattaforma

    April 29, 2025

    SpeakStream: Streaming Text-to-Speech with Interleaved Data

    May 29, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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