# CVE-2022-49819: octeon_ep: fix potential memory leak in octep_device_setup()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-05-01T14:09:41.606Z
- Modified: 2026-11-05T20:17:13.997Z
- 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:

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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.19 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/67b65a0db8a7fdad43159819f41335497a4bb04f> (patch)
- <https://git.kernel.org/stable/c/e4041be97b15302ebfffda8bbd45f3b2d096048f> (patch)

## Sources

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

---

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