octeon_ep: fix potential memory leak in octep_device_setup()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.0.10
- CVEs
- CVE-2022-49819
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 00:54 UTC · Revision 1
Source evidence
octeon_ep: fix potential memory leak in octep_device_setup()
core-osv · Original sourcePublished 1 May 2025, 14:09 UTC
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.
osv:CVE-2022-49819
Kernel
Fixed versions: 6.0.10
Complete source record
{
"id": "293e61842bf32b7e9ed418cb6ff633161cf6572abae02788b882eec854652b98",
"url": "https://osv.dev/vulnerability/CVE-2022-49819",
"method": "structured",
"payload": {
"kind": "advisory",
"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_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.",
"evidence": "osv:CVE-2022-49819",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.0.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49819",
"aliases": [
"CVE-2022-49819"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "862cd659a6fbac664f1fcdd7149046040a7a7e9c"
},
{
"fixed": "67b65a0db8a7fdad43159819f41335497a4bb04f"
},
{
"fixed": "e4041be97b15302ebfffda8bbd45f3b2d096048f"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49819.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "6.0.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49819.json"
}
}
],
"modified": "2026-10-28T02:30:48.709613417Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/67b65a0db8a7fdad43159819f41335497a4bb04f",
"https://git.kernel.org/stable/c/e4041be97b15302ebfffda8bbd45f3b2d096048f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49819.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49819",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49819.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49819",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 516777,
"published_at": "2025-05-01T14:09:41.606+00:00"
}