# CVE-2022-49857: net: marvell: prestera: fix memory leak in prestera_rxtx_switch_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-05-01T14:10:10.892Z
- Modified: 2026-06-17T05:19:19.220Z
- Weaknesses: CWE-401
- 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 memory leak in prestera_rxtx_switch_init()

When prestera_sdma_switch_init() failed, the memory pointed to by
sw->rxtx isn't released. Fix it. Only be compiled, not be tested.

(As written by CVE List.)

## Affected

- Linux Linux: from 501ef3066c89d7f9045315e1be58749cf9e6814d before 5333cf1b7f6861912aff6263978d4781f9858e47; from 501ef3066c89d7f9045315e1be58749cf9e6814d before 409731df6310a33f4d0a3ef594d2410cdcd637f2; from 501ef3066c89d7f9045315e1be58749cf9e6814d before 31e5084ac6876e52dbb0a1cc4fc18b6c79979f31; from 501ef3066c89d7f9045315e1be58749cf9e6814d before 519b58bbfa825f042fcf80261cc18e1e35f85ffd; 5.10 (not affected: before 5.10; from 5.10.155 up to 5.10.*; from 5.15.79 up to 5.15.*; from 6.0.9 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.10 before 5.10.155; from 5.11 before 5.15.79; from 5.16 before 6.0.9; 6.1

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5333cf1b7f6861912aff6263978d4781f9858e47> (patch)
- <https://git.kernel.org/stable/c/409731df6310a33f4d0a3ef594d2410cdcd637f2> (patch)
- <https://git.kernel.org/stable/c/31e5084ac6876e52dbb0a1cc4fc18b6c79979f31> (patch)
- <https://git.kernel.org/stable/c/519b58bbfa825f042fcf80261cc18e1e35f85ffd> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49857 · Whole record: https://cve.day/CVE-2022-49857.json · Rebuilt by cve.day 2026-11-25T22:58:20.903Z
