# CVE-2021-47102: net: marvell: prestera: fix incorrect structure access

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-03-04T18:10:56.018Z
- **Modified:** 2026-08-05T08:45:59.235Z

## Who should check

- Anyone running Linux \>= 3d5048cc54bd250cfbb358c37fcc011135977887, \< 5c553a0cd1263e4da5f220d80fa713fc3959c1d0; \>= 3d5048cc54bd250cfbb358c37fcc011135977887, \< 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb
- Anyone running Linux 5.14

## 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.176102\]  \_\_asan\_load8+0x98/0xe0
\[   30.179682\]  prestera\_netdev\_port\_event.constprop.0+0x68/0x538 \[prestera\]
\[   30.186847\]  prestera\_netdev\_event\_handler+0x1b4/0x1c0 \[prestera\]
\[   30.193313\]  raw\_notifier\_call\_chain+0x74/0xa0
\[   30.197860\]  call\_netdevice\_notifiers\_info+0x68/0xc0
\[   30.202924\]  register\_netdevice+0x3cc/0x760
\[   30.207190\]  register\_netdev+0x24/0x50
\[   30.211015\]  prestera\_device\_register+0x8a0/0xba0 \[prestera\]

## Affected and fixed versions

- Linux: \>= 3d5048cc54bd250cfbb358c37fcc011135977887, \< 5c553a0cd1263e4da5f220d80fa713fc3959c1d0; \>= 3d5048cc54bd250cfbb358c37fcc011135977887, \< 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47102. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47102.md
Affected: Linux >= 3d5048cc54bd250cfbb358c37fcc011135977887, < 5c553a0cd1263e4da5f220d80fa713fc3959c1d0; >= 3d5048cc54bd250cfbb358c37fcc011135977887, < 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb; Linux 5.14
Fixed in: Linux 5c553a0cd1263e4da5f220d80fa713fc3959c1d0, Linux 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47102 being exploited?

There is no confirmed exploitation: CVE-2021-47102 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47102?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47102?

Linux \>= 3d5048cc54bd250cfbb358c37fcc011135977887, \< 5c553a0cd1263e4da5f220d80fa713fc3959c1d0; \>= 3d5048cc54bd250cfbb358c37fcc011135977887, \< 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb; Linux 5.14.

### Is there a fix for CVE-2021-47102?

Yes. Fixed in Linux 5c553a0cd1263e4da5f220d80fa713fc3959c1d0, Linux 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb. Upgrade Linux to 2efc2256febf214e7b2bdaa21fe6c3c3146acdcb or later.

### How do I check if I'm affected by CVE-2021-47102?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- exploit: <https://git.kernel.org/stable/c/5c553a0cd1263e4da5f220d80fa713fc3959c1d0>
- exploit: <https://git.kernel.org/stable/c/2efc2256febf214e7b2bdaa21fe6c3c3146acdcb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47102>

HTML: <https://flawdb.com/CVE-2021-47102> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47102>
