CVE-2022-49819

octeon_ep: fix potential memory leak in octep_device_setup()

State
Published
Severity
Not scored
Published
May 1, 2025
Updated
May 11, 2026
Reserved
May 1, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 862cd659a6fbac664f1fcdd7149046040a7a7e9c to before 67b65a0db8a7fdad43159819f41335497a4bb04fAffected
  • 862cd659a6fbac664f1fcdd7149046040a7a7e9c to before e4041be97b15302ebfffda8bbd45f3b2d096048fAffected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 6.0.10 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.