Menu

Star on GitHub · 3.4k

CVE-2022-49341

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: Clear prog->jited_len along prog->jited syzbot reported an illegal copy_to_user() attempt from bpf_prog_get_info_by…

Published Feb 26, 2025EPSS 0.28%

Overview

CVE-2022-49341 is a medium-severity vulnerability. It was published on February 26, 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:

bpf, arm64: Clear prog->jited_len along prog->jited

syzbot reported an illegal copy_to_user() attempt

from bpf_prog_get_info_by_fd() [1]

There was no repro yet on this bug, but I think

that commit 0aef499f3172 ("mm/usercopy: Detect vmalloc overruns")

is exposing a prior bug in bpf arm64.

bpf_prog_get_info_by_fd() looks at prog->jited_len

to determine if the JIT image can be copied out to user space.

My theory is that syzbot managed to get a prog where prog->jited_len

has been set to 43, while prog->bpf_func has ben cleared.

It is not clear why copy_to_user(uinsns, NULL, ulen) is triggering

this particular warning.

I thought find_vma_area(NULL) would not find a vm_struct.

As we do not hold vmap_area_lock spinlock, it might be possible

that the found vm_struct was garbage.

[1]

usercopy: Kernel memory exposure attempt detected from vmalloc (offset 792633534417210172, size 43)!

kernel BUG at mm/usercopy.c:101!

Inte

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-49341?

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

How severe is CVE-2022-49341?

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-49341?

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-49341?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49341 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
Watch the demo →