Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2022-49819

octeon_ep: fix potential memory leak in octep_device_setup()

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 862cd659a6fbac664f1fcdd7149046040a7a7e9c to < 67b65a0db8a7fdad43159819f41335497a4bb04faffected
  • 862cd659a6fbac664f1fcdd7149046040a7a7e9c to < e4041be97b15302ebfffda8bbd45f3b2d096048faffected

Linux Linux

Default version status: affected

  • 5.19affected
  • 0 to < 5.19unaffected
  • 6.0.10 to ≤ 6.0.*unaffected
  • 6.1 to ≤ *unaffected

References