# CVE-2021-47564: net: marvell: prestera: fix double free issue on err path

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-05-24T15:12:52.129Z
- **Modified:** 2026-06-17T04:17:46.713Z

## Who should check

- Anyone running Linux \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< 5dca8eff4627315df98feec09fff9dfe3356325e; \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< 03e5203d2161a00afe4d97d206d2293e40b2f253; \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< e8d032507cb7912baf1d3e0af54516f823befefd
- Anyone running Linux 5.10

## Description

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

net: marvell: prestera: fix double free issue on err path

fix error path handling in prestera\_bridge\_port\_join() that
cases prestera driver to crash (see below).

 Trace:
   Internal error: Oops: 96000044 \[\#1\] SMP
   Modules linked in: prestera\_pci prestera uio\_pdrv\_genirq
   CPU: 1 PID: 881 Comm: ip Not tainted 5.15.0 \#1
   pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
   pc : prestera\_bridge\_destroy+0x2c/0xb0 \[prestera\]
   lr : prestera\_bridge\_port\_join+0x2cc/0x350 \[prestera\]
   sp : ffff800011a1b0f0
   ...
   x2 : ffff000109ca6c80 x1 : dead000000000100 x0 : dead000000000122
    Call trace:
   prestera\_bridge\_destroy+0x2c/0xb0 \[prestera\]
   prestera\_bridge\_port\_join+0x2cc/0x350 \[prestera\]
   prestera\_netdev\_port\_event.constprop.0+0x3c4/0x450 \[prestera\]
   prestera\_netdev\_event\_handler+0xf4/0x110 \[prestera\]
   raw\_notifier\_call\_chain+0x54/0x80
   call\_netdevice\_notifiers\_info+0x54/0xa0
   \_\_netdev\_upper\_dev\_link+0x19c/0x380

## Affected and fixed versions

- Linux: \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< 5dca8eff4627315df98feec09fff9dfe3356325e; \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< 03e5203d2161a00afe4d97d206d2293e40b2f253; \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< e8d032507cb7912baf1d3e0af54516f823befefd (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47564.md
Affected: Linux >= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, < 5dca8eff4627315df98feec09fff9dfe3356325e; >= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, < 03e5203d2161a00afe4d97d206d2293e40b2f253; >= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, < e8d032507cb7912baf1d3e0af54516f823befefd; Linux 5.10
Fixed in: Linux 5dca8eff4627315df98feec09fff9dfe3356325e, Linux 03e5203d2161a00afe4d97d206d2293e40b2f253

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

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

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

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

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

Linux \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< 5dca8eff4627315df98feec09fff9dfe3356325e; \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< 03e5203d2161a00afe4d97d206d2293e40b2f253; \>= e1189d9a5fbec8153dbe03f3589bc2baa96694e2, \< e8d032507cb7912baf1d3e0af54516f823befefd; Linux 5.10.

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

Yes. Fixed in Linux 5dca8eff4627315df98feec09fff9dfe3356325e, Linux 03e5203d2161a00afe4d97d206d2293e40b2f253. No fix listed yet: follow the vendor advisory.

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

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/5dca8eff4627315df98feec09fff9dfe3356325e>
- patch: <https://git.kernel.org/stable/c/03e5203d2161a00afe4d97d206d2293e40b2f253>
- patch: <https://git.kernel.org/stable/c/e8d032507cb7912baf1d3e0af54516f823befefd>

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

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