Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-37878— perf/core: Fix WARN_ON(!ctx) in __free_event() for partial init

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未正确初始化子事件环境,可能导致空指针取消引用。

AI Predicted 5.5 Difficulty: Hard EPSS 0.26% · P17

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 7

VendorProduct Version RangeStatus
Linux Linux 7ef5aa081f989ecfecc1df02068a80aebbd3ec31< 90dc6c1e3b200812da8d0aa030e1b7fda8226d0e affected
1209b0b29fd472e7dbd2b06544b019dd9f9b7e51< cb56cd11feabf99e08bc18960700a53322ffcea7 affected
c70ca298036c58a88686ff388d3d367e9d21acf0< 0ba3a4ab76fd3367b9cb680cad70182c896c795c affected
315a50c6b1c6ce191f19f3372935d8e2ed9b53a6 affected
6.13.12< 6.14 affected
6.12.24< 6.12.26 affected
6.14.3< 6.14.5 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-37878

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
perf/core: Fix WARN_ON(!ctx) in __free_event() for partial init
Source: CVE Program / CVE List V5
Vulnerability 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. ]
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未正确初始化子事件环境,可能导致空指针取消引用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 7ef5aa081f989ecfecc1df02068a80aebbd3ec31 ~ 90dc6c1e3b200812da8d0aa030e1b7fda8226d0e -
Linux Linux 6.12.24 ~ 6.12.26 -

II. Public POCs for CVE-2025-37878

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-37878

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-37878 (1)

Same Patch Batch · Linux · 2025-05-09 · 52 CVEs total

CVE-2025-37879 9.8 CRITICAL 9p/net: fix improper handling of bogus negative read/write replies
CVE-2025-37885 8.8 HIGH KVM: x86: Reset IRTE to host control if *new* route isn't postable
CVE-2025-37849 8.8 HIGH KVM: arm64: Tear down vGIC on failed vCPU creation
CVE-2025-37856 7.8 HIGH btrfs: harden block_group::bg_list against list_del() races
CVE-2025-37886 7.8 HIGH pds_core: make wait_context part of q_info
CVE-2025-37869 7.8 HIGH drm/xe: Use local fence in error path of xe_migrate_clear
CVE-2025-37854 7.8 HIGH drm/amdkfd: Fix mode1 reset crash issue
CVE-2025-37845 7.8 HIGH tracing: fprobe events: Fix possible UAF on modules
CVE-2025-37882 7.8 HIGH usb: xhci: Fix isochronous Ring Underrun/Overrun event handling
CVE-2025-37861 7.8 HIGH scsi: mpi3mr: Synchronous access b/w reset and tm thread for reply queue
CVE-2025-37873 7.8 HIGH eth: bnxt: fix missing ring index trim on error path
CVE-2025-37871 7.5 HIGH nfsd: decrease sc_count directly if fail to queue dl_recall
CVE-2025-37887 7.1 HIGH pds_core: handle unsupported PDS_CORE_CMD_FW_CONTROL result
CVE-2025-37876 7.0 HIGH netfs: Only create /proc/fs/netfs with CONFIG_PROC_FS
CVE-2025-37888 net/mlx5: Fix null-ptr-deref in mlx5_create_{inner_,}ttc_table()
CVE-2025-37877 iommu: Clear iommu-dma ops on cleanup
CVE-2025-37872 net: txgbe: fix memory leak in txgbe_probe() error path
CVE-2025-37870 drm/amd/display: prevent hang on link training fail
CVE-2025-37868 drm/xe/userptr: fix notifier vs folio deadlock
CVE-2025-37867 RDMA/core: Silence oversized kvmalloc() warning

Showing top 20 of 52 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-37878

No comments yet


Leave a comment