Menu

Star on GitHub · 3.2k

CVE-2021-47102

7.1 · HIGH

In the Linux kernel, the following vulnerability has been resolved: net: marvell: prestera: fix incorrect structure access In line: upper = info->upper_dev; We access upper_dev field, which is r…

Published Mar 4, 2024CWE-125EPSS 0.33%

Overview

CVE-2021-47102 is a high-severity vulnerability. It was published on March 4, 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: marvell: prestera: fix incorrect structure access

In line:

upper = info->upper_dev;

We access upper_dev field, which is related only for particular events

(e.g. event == NETDEV_CHANGEUPPER). So, this line cause invalid memory

access for another events,

when ptr is not netdev_notifier_changeupper_info.

The KASAN logs are as follows:

[ 30.123165] BUG: KASAN: stack-out-of-bounds in prestera_netdev_port_event.constprop.0+0x68/0x538 [prestera]

[ 30.133336] Read of size 8 at addr ffff80000cf772b0 by task udevd/778

[ 30.139866]

[ 30.141398] CPU: 0 PID: 778 Comm: udevd Not tainted 5.16.0-rc3 #6

[ 30.147588] Hardware name: DNI AmazonGo1 A7040 board (DT)

[ 30.153056] Call trace:

[ 30.155547] dump_backtrace+0x0/0x2c0

[ 30.159320] show_stack+0x18/0x30

[ 30.162729] dump_stack_lvl+0x68/0x84

[ 30.166491] print_address_description.constprop.0+0x74/0x2b8

[ 30.172346] kasan_report+0x1e8/0x250

[ 30.

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

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

How severe is CVE-2021-47102?

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

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

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