Menu

Star on GitHub · 3.4k

CVE-2021-47376

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: bpf: Add oversize check before call kvcalloc() Commit 7661809d493b ("mm: don't allow oversized kvmalloc() calls") add the overs…

Published May 21, 2024EPSS 0.25%

Overview

CVE-2021-47376 is a medium-severity vulnerability. It was published on May 21, 2024 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: Add oversize check before call kvcalloc()

Commit 7661809d493b ("mm: don't allow oversized kvmalloc() calls") add the

oversize check. When the allocation is larger than what kmalloc() supports,

the following warning triggered:

WARNING: CPU: 0 PID: 8408 at mm/util.c:597 kvmalloc_node+0x108/0x110 mm/util.c:597

Modules linked in:

CPU: 0 PID: 8408 Comm: syz-executor221 Not tainted 5.14.0-syzkaller #0

Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011

RIP: 0010:kvmalloc_node+0x108/0x110 mm/util.c:597

Call Trace:

kvmalloc include/linux/mm.h:806 [inline]

kvmalloc_array include/linux/mm.h:824 [inline]

kvcalloc include/linux/mm.h:829 [inline]

check_btf_line kernel/bpf/verifier.c:9925 [inline]

check_btf_info kernel/bpf/verifier.c:10049 [inline]

bpf_check+0xd634/0x150d0 kernel/bpf/verifier.c:13759

bpf_prog_load kernel/bpf/syscall.c:2301 [inline]

__sys_bpf+0x11181/0x126e0 kerne

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-2021-47376?

CVE-2021-47376 is a medium-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47376?

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-2021-47376?

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-2021-47376?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47376 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 2021

View all
LiveWatch live →