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

      10 Top Node.js Development Companies for Enterprise-Scale Projects (2025-2026 Ranked & Reviewed)

      July 4, 2025

      12 Must-Know Cost Factors When Hiring Node.js Developers for Your Enterprise

      July 4, 2025

      Mirantis reveals Lens Prism, an AI copilot for operating Kubernetes clusters

      July 3, 2025

      Avoid these common platform engineering mistakes

      July 3, 2025

      “A fantastic device for creative users” — this $550 discount on ASUS’s 3K OLED creator laptop disappears before Prime Day

      July 5, 2025

      Distribution Release: Rhino Linux 2025.3

      July 5, 2025

      Just days after joining Game Pass, the Xbox PC edition of Call of Duty: WW2 is taken offline for “an issue”

      July 5, 2025

      Xbox layoffs and game cuts wreak havoc on talented developers and the company’s future portfolio — Weekend discussion 💬

      July 5, 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

      Flaget – new small 5kB CLI argument parser

      July 5, 2025
      Recent

      Flaget – new small 5kB CLI argument parser

      July 5, 2025

      The dog days of JavaScript summer

      July 4, 2025

      Databricks Lakebase – Database Branching in Action

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

      “A fantastic device for creative users” — this $550 discount on ASUS’s 3K OLED creator laptop disappears before Prime Day

      July 5, 2025
      Recent

      “A fantastic device for creative users” — this $550 discount on ASUS’s 3K OLED creator laptop disappears before Prime Day

      July 5, 2025

      Distribution Release: Rhino Linux 2025.3

      July 5, 2025

      EmptyEpsilon – spaceship bridge simulator game

      July 5, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Security»Common Vulnerabilities and Exposures (CVEs)»CVE-2025-37988 – Apache Linux Kernel Mount Namespace Locking races

    CVE-2025-37988 – Apache Linux Kernel Mount Namespace Locking races

    May 20, 2025

    CVE ID : CVE-2025-37988

    Published : May 20, 2025, 6:15 p.m. | 34 minutes ago

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

    fix a couple of races in MNT_TREE_BENEATH handling by do_move_mount()

    Normally do_lock_mount(path, _) is locking a mountpoint pinned by
    *path and at the time when matching unlock_mount() unlocks that
    location it is still pinned by the same thing.

    Unfortunately, for ‘beneath’ case it’s no longer that simple –
    the object being locked is not the one *path points to. It’s the
    mountpoint of path->mnt. The thing is, without sufficient locking
    ->mnt_parent may change under us and none of the locks are held
    at that point. The rules are
    * mount_lock stabilizes m->mnt_parent for any mount m.
    * namespace_sem stabilizes m->mnt_parent, provided that
    m is mounted.
    * if either of the above holds and refcount of m is positive,
    we are guaranteed the same for refcount of m->mnt_parent.

    namespace_sem nests inside inode_lock(), so do_lock_mount() has
    to take inode_lock() before grabbing namespace_sem. It does
    recheck that path->mnt is still mounted in the same place after
    getting namespace_sem, and it does take care to pin the dentry.
    It is needed, since otherwise we might end up with racing mount –move
    (or umount) happening while we were getting locks; in that case
    dentry would no longer be a mountpoint and could’ve been evicted
    on memory pressure along with its inode – not something you want
    when grabbing lock on that inode.

    However, pinning a dentry is not enough – the matching mount is
    also pinned only by the fact that path->mnt is mounted on top it
    and at that point we are not holding any locks whatsoever, so
    the same kind of races could end up with all references to
    that mount gone just as we are about to enter inode_lock().
    If that happens, we are left with filesystem being shut down while
    we are holding a dentry reference on it; results are not pretty.

    What we need to do is grab both dentry and mount at the same time;
    that makes inode_lock() safe *and* avoids the problem with fs getting
    shut down under us. After taking namespace_sem we verify that
    path->mnt is still mounted (which stabilizes its ->mnt_parent) and
    check that it’s still mounted at the same place. From that point
    on to the matching namespace_unlock() we are guaranteed that
    mount/dentry pair we’d grabbed are also pinned by being the mountpoint
    of path->mnt, so we can quietly drop both the dentry reference (as
    the current code does) and mnt one – it’s OK to do under namespace_sem,
    since we are not dropping the final refs.

    That solves the problem on do_lock_mount() side; unlock_mount()
    also has one, since dentry is guaranteed to stay pinned only until
    the namespace_unlock(). That’s easy to fix – just have inode_unlock()
    done earlier, while it’s still pinned by mp->m_dentry.

    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-37983 – Linux kernel qibfs Dentry Leak
    Next Article CVE-2025-37987 – Linux PDS Core AdminQ Overflow/Stuck Condition Vulnerability

    Related Posts

    Development

    CISA Adds 3 Flaws to KEV Catalog, Impacting AMI MegaRAC, D-Link, Fortinet

    July 5, 2025
    Development

    Citrix Releases Emergency Patches for Actively Exploited CVE-2025-6543 in NetScaler ADC

    July 5, 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

    LLMs Can Think While Idle: Researchers from Letta and UC Berkeley Introduce ‘Sleep-Time Compute’ to Slash Inference Costs and Boost Accuracy Without Sacrificing Latency

    LLMs Can Think While Idle: Researchers from Letta and UC Berkeley Introduce ‘Sleep-Time Compute’ to Slash Inference Costs and Boost Accuracy Without Sacrificing Latency

    Machine Learning

    How to Create Responsive and SEO-friendly WebGL Text

    News & Updates

    Rilasciata KDE Gear 25.04: La Collezione di Applicazioni KDE si Rinnova con Tante Novità

    Linux

    CVE-2025-47290 – Containerd TOCTOU File System Manipulation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-26693 – OpenHarmony File Access Information Leak

    June 8, 2025

    CVE ID : CVE-2025-26693

    Published : June 8, 2025, 12:15 p.m. | 9 hours, 38 minutes ago

    Description : in OpenHarmony v5.0.3 and prior versions allow a local attacker cause information leak through get permission.

    Severity: 3.3 | LOW

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

    Intel’s new CEO vows to run chipmaker ‘as a startup, on day one’

    April 1, 2025

    CVE-2025-4374 – Quay Unauthorized Privilege Escalation Vulnerability

    May 6, 2025

    CVE-2025-28380 – OpenC3 COSMOS XSS

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

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