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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-05-24T15:12:52.129Z
- Modified: 2026-06-17T04:17:46.713Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from e1189d9a5fbec8153dbe03f3589bc2baa96694e2 before 5dca8eff4627315df98feec09fff9dfe3356325e; from e1189d9a5fbec8153dbe03f3589bc2baa96694e2 before 03e5203d2161a00afe4d97d206d2293e40b2f253; from e1189d9a5fbec8153dbe03f3589bc2baa96694e2 before e8d032507cb7912baf1d3e0af54516f823befefd; 5.10 (not affected: before 5.10; from 5.10.83 up to 5.10.*; from 5.15.6 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.10 before 5.10.83; from 5.11 before 5.15.6; 5.16

## References

- <https://git.kernel.org/stable/c/5dca8eff4627315df98feec09fff9dfe3356325e> (patch)
- <https://git.kernel.org/stable/c/03e5203d2161a00afe4d97d206d2293e40b2f253> (patch)
- <https://git.kernel.org/stable/c/e8d032507cb7912baf1d3e0af54516f823befefd> (patch)

## Sources

- CVE List: [CVE-2021-47564](https://www.cve.org/CVERecord?id=CVE-2021-47564), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47564](https://nvd.nist.gov/vuln/detail/CVE-2021-47564), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47564 · Whole record: https://cve.day/CVE-2021-47564.json · Rebuilt by cve.day 2026-11-25T22:58:08.918Z
