# CVE-2021-47023: net: marvell: prestera: fix port event handling on init

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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **CWE:** CWE-400
- **Published:** 2024-02-28T08:13:35.861Z
- **Modified:** 2026-06-17T04:16:13.260Z

## Who should check

- Anyone running Linux \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 0ce6052802be2cb61a57b753e41301339c88c839; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< b5bba6ede42693f50ce1c9944315cefed7491061; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 9d1ba11fabdd8f25abb24272ef1621417981320b; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 333980481b99edb24ebd5d1a53af70a15d9146de
- Anyone running Linux 5.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: marvell: prestera: fix port event handling on init

For some reason there might be a crash during ports creation if port
events are handling at the same time  because fw may send initial
port event with down state.

The crash points to cancel\_delayed\_work() which is called when port went
is down.  Currently I did not find out the real cause of the issue, so
fixed it by cancel port stats work only if previous port's state was up
& runnig.

The following is the crash which can be triggered:

\[   28.311104\] Unable to handle kernel paging request at virtual address
000071775f776600
\[   28.319097\] Mem abort info:
\[   28.321914\]   ESR = 0x96000004
\[   28.324996\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[   28.330350\]   SET = 0, FnV = 0
\[   28.333430\]   EA = 0, S1PTW = 0
\[   28.336597\] Data abort info:
\[   28.339499\]   ISV = 0, ISS = 0x00000004
\[   28.343362\]   CM = 0, WnR = 0
\[   28.346354\] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000100bf7000
\[   28.352842\] \[000071775f776600\] pgd=0000000000000000,
p4d=0000000000000000
\[   28.359695\] Internal error: Oops: 96000004 \[\#1\] PREEMPT SMP
\[   28.365310\] Modules linked in: prestera\_pci(+) prestera
uio\_pdrv\_genirq
\[   28.372005\] CPU: 0 PID: 1291 Comm: kworker/0:1H Not tainted
5.11.0-rc4 \#1
\[   28.378846\] Hardware name: DNI AmazonGo1 A7040 board (DT)
\[   28.384283\] Workqueue: prestera\_fw\_wq prestera\_fw\_evt\_work\_fn
\[prestera\_pci\]
\[   28.391413\] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
\[   28.397468\] pc : get\_work\_pool+0x48/0x60
\[   28.401442\] lr : try\_to\_grab\_pending+0x6c/0x1b0
\[   28.406018\] sp : ffff80001391bc60
\[   28.409358\] x29: ffff80001391bc60 x28: 0000000000000000
\[   28.414725\] x27: ffff000104fc8b40 x26: ffff80001127de88
\[   28.420089\] x25: 0000000000000000 x24: ffff000106119760
\[   28.425452\] x23: ffff00010775dd60 x22: ffff00010567e000
\[   28.430814\] x21: 0000000000000000 x20: ffff80001391bcb0
\[   28.436175\] x19: ffff00010775deb8 x18: 00000000000000c0
\[   28.441537\] x17: 0000000000000000 x16: 000000008d9b0e88
\[   28.446898\] x15: 0000000000000001 x14: 00000000000002ba
\[   28.452261\] x13: 80a3002c00000002 x12: 00000000000005f4
\[   28.457622\] x11: 0000000000000030 x10: 000000000000000c
\[   28.462985\] x9 : 000000000000000c x8 : 0000000000000030
\[   28.468346\] x7 : ffff800014400000 x6 : ffff000106119758
\[   28.473708\] x5 : 0000000000000003 x4 : ffff00010775dc60
\[   28.479068\] x3 : 0000000000000000 x2 : 0000000000000060
\[   28.484429\] x1 : 000071775f776600 x0 : ffff00010775deb8
\[   28.489791\] Call trace:
\[   28.492259\]  get\_work\_pool+0x48/0x60
\[   28.495874\]  cancel\_delayed\_work+0x38/0xb0
\[   28.500011\]  prestera\_port\_handle\_event+0x90/0xa0 \[prestera\]
\[   28.505743\]  prestera\_evt\_recv+0x98/0xe0 \[prestera\]
\[   28.510683\]  prestera\_fw\_evt\_work\_fn+0x180/0x228 \[prestera\_pci\]
\[   28.516660\]  process\_one\_work+0x1e8/0x360
\[   28.520710\]  worker\_thread+0x44/0x480
\[   28.524412\]  kthread+0x154/0x160
\[   28.527670\]  ret\_from\_fork+0x10/0x38
\[   28.531290\] Code: a8c17bfd d50323bf d65f03c0 9278dc21 (f9400020)
\[   28.537429\] ---\[ end trace 5eced933df3a080b \]---

## Affected and fixed versions

- Linux: \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 0ce6052802be2cb61a57b753e41301339c88c839; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< b5bba6ede42693f50ce1c9944315cefed7491061; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 9d1ba11fabdd8f25abb24272ef1621417981320b; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 333980481b99edb24ebd5d1a53af70a15d9146de (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 333980481b99edb24ebd5d1a53af70a15d9146de 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-47023. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47023.md
Affected: Linux >= 501ef3066c89d7f9045315e1be58749cf9e6814d, < 0ce6052802be2cb61a57b753e41301339c88c839; >= 501ef3066c89d7f9045315e1be58749cf9e6814d, < b5bba6ede42693f50ce1c9944315cefed7491061; >= 501ef3066c89d7f9045315e1be58749cf9e6814d, < 9d1ba11fabdd8f25abb24272ef1621417981320b; >= 501ef3066c89d7f9045315e…
Fixed in: Linux 0ce6052802be2cb61a57b753e41301339c88c839, Linux 9d1ba11fabdd8f25abb24272ef1621417981320b, Linux 333980481b99edb24ebd5d1a53af70a15d9146de

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-47023 being exploited?

There is no confirmed exploitation: CVE-2021-47023 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).

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

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 0ce6052802be2cb61a57b753e41301339c88c839; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< b5bba6ede42693f50ce1c9944315cefed7491061; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 9d1ba11fabdd8f25abb24272ef1621417981320b; \>= 501ef3066c89d7f9045315e1be58749cf9e6814d, \< 333980481b99edb24ebd5d1a53af70a15d9146de; Linux 5.10.

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

Yes. Fixed in Linux 0ce6052802be2cb61a57b753e41301339c88c839, Linux 9d1ba11fabdd8f25abb24272ef1621417981320b, Linux 333980481b99edb24ebd5d1a53af70a15d9146de. Upgrade Linux to 333980481b99edb24ebd5d1a53af70a15d9146de or later.

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

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

- patch: <https://git.kernel.org/stable/c/0ce6052802be2cb61a57b753e41301339c88c839>
- patch: <https://git.kernel.org/stable/c/b5bba6ede42693f50ce1c9944315cefed7491061>
- patch: <https://git.kernel.org/stable/c/9d1ba11fabdd8f25abb24272ef1621417981320b>
- patch: <https://git.kernel.org/stable/c/333980481b99edb24ebd5d1a53af70a15d9146de>

## 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-47023>

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