octeon_ep: fix potential memory leak in octep_device_setup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s octeon_ep driver can leak memory when device setup encounters an unsupported device or a mailbox initialization error. The input does not specify how an attacker could trigger these errors or whether access or user interaction is required.
Engineers running Linux kernels with the octeon_ep driver should check their versions; affected versions are not specified.