Menu

Star on GitHub · 3.2k

CVE-2022-49797

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: tracing: kprobe: Fix potential null-ptr-deref on trace_event_file in kprobe_event_gen_test_exit() When trace_get_event_file() f…

Published May 1, 2025CWE-476EPSS 0.20%

Overview

CVE-2022-49797 is a medium-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

tracing: kprobe: Fix potential null-ptr-deref on trace_event_file in kprobe_event_gen_test_exit()

When trace_get_event_file() failed, gen_kretprobe_test will be assigned

as the error code. If module kprobe_event_gen_test is removed now, the

null pointer dereference will happen in kprobe_event_gen_test_exit().

Check if gen_kprobe_test or gen_kretprobe_test is error code or NULL

before dereference them.

BUG: kernel NULL pointer dereference, address: 0000000000000012

PGD 0 P4D 0

Oops: 0000 [#1] SMP PTI

CPU: 3 PID: 2210 Comm: modprobe Not tainted

6.1.0-rc1-00171-g2159299a3b74-dirty #217

Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS

rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014

RIP: 0010:kprobe_event_gen_test_exit+0x1c/0xb5 [kprobe_event_gen_test]

Code: Unable to access opcode bytes at 0xffffffff9ffffff2.

RSP: 0018:ffffc900015bfeb8 EFLAGS: 00010246

RAX: ffffffffffffffea RBX: ffffffffa0002080 RCX:

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49797?

CVE-2022-49797 is a medium-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-49797?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49797?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49797?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49797 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all