Menu

Star on GitHub · 3.2k

CVE-2021-46954

7.1 · HIGH

In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_frag: fix stack OOB read while fragmenting IPv4 packets when 'act_mirred' tries to fragment IPv4 packets that ha…

Published Feb 27, 2024CWE-125EPSS 0.23%

Overview

CVE-2021-46954 is a high-severity vulnerability. It was published on February 27, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, 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:

net/sched: sch_frag: fix stack OOB read while fragmenting IPv4 packets

when 'act_mirred' tries to fragment IPv4 packets that had been previously

re-assembled using 'act_ct', splats like the following can be observed on

kernels built with KASAN:

BUG: KASAN: stack-out-of-bounds in ip_do_fragment+0x1b03/0x1f60

Read of size 1 at addr ffff888147009574 by task ping/947

CPU: 0 PID: 947 Comm: ping Not tainted 5.12.0-rc6+ #418

Hardware name: Red Hat KVM, BIOS 1.11.1-4.module+el8.1.0+4066+0f1aadab 04/01/2014

Call Trace:

<IRQ>

dump_stack+0x92/0xc1

print_address_description.constprop.7+0x1a/0x150

kasan_report.cold.13+0x7f/0x111

ip_do_fragment+0x1b03/0x1f60

sch_fragment+0x4bf/0xe40

tcf_mirred_act+0xc3d/0x11a0 [act_mirred]

tcf_action_exec+0x104/0x3e0

fl_classify+0x49a/0x5e0 [cls_flower]

tcf_classify_ingress+0x18a/0x820

__netif_receive_skb_core+0xae7/0x3340

__netif_receive_skb_one_core+0xb6/0x1b0

pr

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

CVE-2021-46954 is a high-severity vulnerability. It was published on February 27, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2021-46954?

This vulnerability has a CVSS 3.1 base score of 7.1, 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-2021-46954?

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

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

View all