5.5medium
octeon_ep: fix potential memory leak in octep_device_setup()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 9% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: octeon_ep: fix potential memory leak in octep_device_setup() When occur unsupported_dev and mbox init errors, it did not free oct->conf and iounmap() oct->mmio[i].hw_addr. That would trigger memory leak problem. Add kfree() for oct->conf and iounmap() for oct->mmio[i].hw_addr under unsupported_dev and mbox init errors to fix the problem.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 862cd659a6fbac664f1fcdd7149046040a7a7e9c before 67b65a0db8a7fdad43159819f41335497a4bb04f, from 862cd659a6fbac664f1fcdd7149046040a7a7e9c before e4041be97b15302ebfffda8bbd45f3b2d096048f, 5.19 Not affected: before 5.19, from 6.0.10 up to 6.0.*, from 6.1 up to * | CVE List |
| linux linux_kernel | from 5.19 before 6.0.10, 6.1 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: octeon_ep: fix potential memory leak in octep_device_setup() When occur unsupported_dev and mbox init errors, it did not free oct->conf and iounmap() oct->mmio[i].hw_addr. That would trigger memory leak problem. Add kfree() for oct->conf and iounmap() for oct->mmio[i].hw_addr under unsupported_dev and mbox init errors to fix the problem.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: octeon_ep: se corrige una posible fuga de memoria en octep_device_setup(). Cuando se producen errores unsupported_dev e init de mbox, no se liberan oct->conf ni iounmap() de oct->mmio[i].hw_addr. Esto causaría un problema de fuga de memoria. Se añaden kfree() para oct->conf e iounmap() para oct->mmio[i].hw_addr en los errores unsupported_dev e init de mbox para solucionar el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49819 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2022-49819 changed 2026-11-05 | Public domain |