Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-48940

7.8 · HIGH
Published Aug 22, 2024 linux CWE-119 EPSS 0.21% (12th pctl)

Overview

CVE-2022-48940 is a high-severity vulnerability affecting linux linux_kernel. It was published on August 22, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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: Fix crash due to incorrect copy_map_value

When both bpf_spin_lock and bpf_timer are present in a BPF map value,

copy_map_value needs to skirt both objects when copying a value into and

out of the map. However, the current code does not set both s_off and

t_off in copy_map_value, which leads to a crash when e.g. bpf_spin_lock

is placed in map value with bpf_timer, as bpf_map_update_elem call will

be able to overwrite the other timer object.

When the issue is not fixed, an overwriting can produce the following

splat:

[root@(none) bpf]# ./test_progs -t timer_crash

[ 15.930339] bpf_testmod: loading out-of-tree module taints kernel.

[ 16.037849] ==================================================================

[ 16.038458] BUG: KASAN: user-memory-access in __pv_queued_spin_lock_slowpath+0x32b/0x520

[ 16.038944] Write of size 8 at addr 0000000000043ec0 by task test_progs/325

[ 16.039399]

[ 16.039514] CP

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.15, < 5.15.26 Affected

Frequently Asked Questions

What is CVE-2022-48940?

CVE-2022-48940 is a high-severity vulnerability affecting linux linux_kernel. It was published on August 22, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2022-48940?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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-48940?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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-48940?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-48940 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.