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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 9, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 9, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 9, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 9, 2025

      This Motorola Razr deal at Best Buy is the top offer I’ve seen on the flip phone

      May 9, 2025

      Google Maps can identify and save places in your screenshots – here’s how

      May 9, 2025

      T-Mobile is giving loyal users a free line right now – how to see if you qualify

      May 9, 2025

      CTA warns of tariff-fueled price hikes on consumer tech – but it’s not all bad news

      May 9, 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

      Big Node, VS Code, and Mantine updates

      May 9, 2025
      Recent

      Big Node, VS Code, and Mantine updates

      May 9, 2025

      Prepare for Contact Center Week with Colleen Eager

      May 9, 2025

      Preparing for the Unthinkable: Safeguarding People and Productivity During India-Pakistan Conflicts

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

      Microsoft confirms Offline Calendar for New Outlook on Windows 11

      May 9, 2025
      Recent

      Microsoft confirms Offline Calendar for New Outlook on Windows 11

      May 9, 2025

      Windows 11 Microsoft Store tests Copilot integration to increase app downloads

      May 9, 2025

      Beyond APT: Software Management with Flatpak on Ubuntu

      May 9, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Security»Common Vulnerabilities and Exposures (CVEs)»CVE-2025-37878 – Linux Kernel Perf Core Context Assignment Vulnerability

    CVE-2025-37878 – Linux Kernel Perf Core Context Assignment Vulnerability

    May 9, 2025

    CVE ID : CVE-2025-37878

    Published : May 9, 2025, 7:16 a.m. | 4 hours, 51 minutes ago

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

    perf/core: Fix WARN_ON(!ctx) in __free_event() for partial init

    Move the get_ctx(child_ctx) call and the child_event->ctx assignment to
    occur immediately after the child event is allocated. Ensure that
    child_event->ctx is non-NULL before any subsequent error path within
    inherit_event calls free_event(), satisfying the assumptions of the
    cleanup code.

    Details:

    There’s no clear Fixes tag, because this bug is a side-effect of
    multiple interacting commits over time (up to 15 years old), not
    a single regression.

    The code initially incremented refcount then assigned context
    immediately after the child_event was created. Later, an early
    validity check for child_event was added before the
    refcount/assignment. Even later, a WARN_ON_ONCE() cleanup check was
    added, assuming event->ctx is valid if the pmu_ctx is valid.
    The problem is that the WARN_ON_ONCE() could trigger after the initial
    check passed but before child_event->ctx was assigned, violating its
    precondition. The solution is to assign child_event->ctx right after
    its initial validation. This ensures the context exists for any
    subsequent checks or cleanup routines, resolving the WARN_ON_ONCE().

    To resolve it, defer the refcount update and child_event->ctx assignment
    directly after child_event->pmu_ctx is set but before checking if the
    parent event is orphaned. The cleanup routine depends on
    event->pmu_ctx being non-NULL before it verifies event->ctx is
    non-NULL. This also maintains the author’s original intent of passing
    in child_ctx to find_get_pmu_context before its refcount/assignment.

    [ mingo: Expanded the changelog from another email by Gabriel Shahrouzi. ]

    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-37879 – “Linux 9p Client Signed Integer Vulnerability”
    Next Article CVE-2025-37880 – Linux um Time-Travel Scheduling Vulnerability (Deadlock)

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 10, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4507 – Campcodes Online Food Ordering System SQL Injection Vulnerability

    May 10, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    What is EQ and why is it an important factor in improving sound?

    Development

    After brutal critiques, Microsoft Recall will get these major privacy and security changes

    Development

    5 Phases to Create Software Products that Will Be Perfect for Your Customers

    Development

    China Attack on U.S. Telecom Networks: ‘Thousands and Thousands’ of Devices Need to Be Replaced

    Development

    Highlights

    Development

    Bisheng: An Open-Source LLM DevOps Platform Revolutionizing LLM Application Development

    May 20, 2024

    Bisheng, launched under the Apache 2.0 License, is an innovative open-source platform designed to facilitate…

    Samsung’s new Galaxy Buds 3 look nearly identical to Apple AirPods – and that’s a good thing

    July 11, 2024

    Retrieval-Augmented Reasoning Enhancement (RARE): A Novel Approach to Factual Reasoning in Medical and Commonsense Domains

    December 7, 2024

    SETU Confirms Cyberattack on Waterford Campus, Classes Set to Resume with Limited Services

    November 5, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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