CVE-2022-49819

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49819
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49819.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49819
Downstream
Published
2025-05-01T14:09:41Z
Modified
2025-10-16T00:48:37.524503Z
Summary
octeon_ep: fix potential memory leak in octep_device_setup()
Details

In the Linux kernel, the following vulnerability has been resolved:

octeonep: fix potential memory leak in octepdevice_setup()

When occur unsupporteddev and mbox init errors, it did not free oct->conf and iounmap() oct->mmio[i].hwaddr. That would trigger memory leak problem. Add kfree() for oct->conf and iounmap() for oct->mmio[i].hwaddr under unsupporteddev and mbox init errors to fix the problem.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
862cd659a6fbac664f1fcdd7149046040a7a7e9c
Fixed
67b65a0db8a7fdad43159819f41335497a4bb04f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
862cd659a6fbac664f1fcdd7149046040a7a7e9c
Fixed
e4041be97b15302ebfffda8bbd45f3b2d096048f

Affected versions

v5.*

v5.18
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.9
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
6.0.10