CVE-2022-49781 Vulnerability Analysis & Exploit Details

CVE-2022-49781
Vulnerability Scoring

4.7
/10
Medium Risk

The vulnerability CVE-2022-49781 could compromise system integrity but typically requires user interaction to be exploited.

Attack Complexity Details

  • Attack Complexity: High
    Exploits require significant effort and special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2022-49781 Details

Status: Analyzed

Last updated: 🕠 07 Nov 2025, 17:47 UTC
Originally published on: 🕒 01 May 2025, 15:16 UTC

Time between publication and last update: 190 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2022-49781 Vulnerability Summary

CVE-2022-49781: In the Linux kernel, the following vulnerability has been resolved: perf/x86/amd: Fix crash due to race between amd_pmu_enable_all, perf NMI and throttling amd_pmu_enable_all() does: if (!test_bit(idx, cpuc->active_mask)) continue; amd_pmu_enable_event(cpuc->events[idx]); A perf NMI of another event can come between these two steps. Perf NMI handler internally disables and enables _all_ events, including the one which nmi-intercepted amd_pmu_enable_all() was in process of enabling. If that unintentionally enabled event has very low sampling period and causes immediate successive NMI, causing the event to be throttled, cpuc->events[idx] and cpuc->active_mask gets cleared by x86_pmu_stop(). This will result in amd_pmu_enable_event() getting called with event=NULL when amd_pmu_enable_all() resumes after handling the NMIs. This causes a kernel crash: BUG: kernel NULL pointer dereference, address: 0000000000000198 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page [...] Call Trace: <TASK> amd_pmu_enable_all+0x68/0xb0 ctx_resched+0xd9/0x150 event_function+0xb8/0x130 ? hrtimer_start_range_ns+0x141/0x4a0 ? perf_duration_warn+0x30/0x30 remote_function+0x4d/0x60 __flush_smp_call_function_queue+0xc4/0x500 flush_smp_call_function_queue+0x11d/0x1b0 do_idle+0x18f/0x2d0 cpu_startup_entry+0x19/0x20 start_secondary+0x121/0x160 secondary_startup_64_no_verify+0xe5/0xeb </TASK> amd_pmu_disable_all()/amd_pmu_enable_all() calls inside perf NMI handler were recently added as part of BRS enablement but I'm not sure whether we really need them. We can just disable BRS in the beginning and enable it back while returning from NMI. This will solve the issue by not enabling those events whose active_masks are set but are not yet enabled in hw pmu.

Assessing the Risk of CVE-2022-49781

Access Complexity Graph

The exploitability of CVE-2022-49781 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2022-49781

This vulnerability, CVE-2022-49781, requires a high level of attack complexity and low privileges, making it difficult but not impossible to exploit. Organizations should ensure robust security configurations to mitigate risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2022-49781, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2022-49781, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2022-49781 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2022-49781 poses no threat to data integrity.
  • Availability: High
    CVE-2022-49781 can disrupt system operations, potentially causing complete denial of service (DoS).

CVE-2022-49781 References

External References

CWE Common Weakness Enumeration

CWE-362

CAPEC Common Attack Pattern Enumeration and Classification

  • Leveraging Race Conditions CAPEC-26 The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with their version and cause the system to read the malicious file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions CAPEC-29 This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:5.19:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.19:rc8:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.19:rc8:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.0.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.0.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2022-49781: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-66269 – The RupsMon and USBMate services in UPSilon 2000 run with SYSTEM privileges and contain unquoted service paths. This allows a local attacker to per...
  • CVE-2025-66266 – The RupsMon.exe service executable in UPSilon 2000 has insecure permissions, allowing the 'Everyone' group Full Control. A local attacker can repla...
  • CVE-2025-66021 – OWASP Java HTML Sanitizer is a configureable HTML Sanitizer written in Java, allowing inclusion of HTML authored by third-parties in web applicatio...
  • CVE-2025-66020 – Valibot helps validate data using a schema. In versions from 0.31.0 to 1.1.0, the EMOJI_REGEX used in the emoji action is vulnerable to a Regular E...
  • CVE-2025-12848 – Webform Multiple File Upload module for Drupal 7.x contains a cross-site scripting (XSS) vulnerability in the file name renderer. An unauthenticate...