---
id: CVE-2022-49819
title: 'octeon_ep: fix potential memory leak in octep_device_setup()'
summary: |-
  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_a…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 862cd659a6fbac664f1fcdd7149046040a7a7e9c <
    67b65a0db8a7fdad43159819f41335497a4bb04f
  - >-
    Linux >= 862cd659a6fbac664f1fcdd7149046040a7a7e9c <
    e4041be97b15302ebfffda8bbd45f3b2d096048f
  - Linux 5.19
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T19:49:28.978552Z'
published: '2025-05-01'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:49:51.384Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-49819'
references:
  - url: 'https://git.kernel.org/stable/c/67b65a0db8a7fdad43159819f41335497a4bb04f'
  - url: 'https://git.kernel.org/stable/c/e4041be97b15302ebfffda8bbd45f3b2d096048f'
tags:
  - cve.org
epss: 0.0017
epssPercentile: 0.06465
ingestedAt: '2026-11-05T22:38:31.604Z'
---

## Overview

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

- `Linux >= 862cd659a6fbac664f1fcdd7149046040a7a7e9c < 67b65a0db8a7fdad43159819f41335497a4bb04f`
- `Linux >= 862cd659a6fbac664f1fcdd7149046040a7a7e9c < e4041be97b15302ebfffda8bbd45f3b2d096048f`
- `Linux 5.19`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
