MIPS: vpe-mt: fix possible memory leak while module exiting
In the Linux kernel, the following vulnerability has been resolved: MIPS: vpe-mt: fix possible memory leak while module exiting Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.303, 4.19.270, 4.9.337, 5.10.163, 5.15.86, 5.4.229, 6.0.16, 6.1.2
- CVEs
- CVE-2022-50462
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 05:31 UTC · Revision 1
Source evidence
MIPS: vpe-mt: fix possible memory leak while module exiting
core-osv · Original sourcePublished 1 Oct 2025, 11:45 UTC
In the Linux kernel, the following vulnerability has been resolved: MIPS: vpe-mt: fix possible memory leak while module exiting Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release().
osv:CVE-2022-50462
Kernel
Fixed versions: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2
Complete source record
{
"id": "2ec30900b754b1f1806b85253bd18dc5da6e5aa5e1599f31a47d44fb8cb7ca72",
"url": "https://osv.dev/vulnerability/CVE-2022-50462",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MIPS: vpe-mt: fix possible memory leak while module exiting",
"summary": "In the Linux kernel, the following vulnerability has been resolved: MIPS: vpe-mt: fix possible memory leak while module exiting Afer commit 1fa5ae857bb1 (\"driver core: get rid of struct device's bus_id string array\"), the name of device is allocated dynamically, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release().",
"evidence": "osv:CVE-2022-50462",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.9.337",
"evidence": "/affected/1/ranges"
},
{
"value": "4.14.303",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.270",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.229",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.163",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.86",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50462",
"aliases": [
"CVE-2022-50462"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "1fa5ae857bb14f6046205171d98506d8112dd74e"
},
{
"fixed": "170e9913c2ed5cfc37c0adf0fdbd368d2d8d8168"
},
{
"fixed": "9d180e0bb21c57bd6cca2adeb672d3b522e910b5"
},
{
"fixed": "851ae5640875f06494e40002cd503b11a634c6fb"
},
{
"fixed": "b3325a443525e3b89151879b834519b21c5e3011"
},
{
"fixed": "48d42f4464d713fbdd79f334fdcd6e5be534cc67"
},
{
"fixed": "e820a8192ff68570100347855b567512aec43819"
},
{
"fixed": "b191dde84e40624d5577f64db0ec922c5c0ec57c"
},
{
"fixed": "ab3d47c1fd0202821abd473ca87580faafd47847"
},
{
"fixed": "5822e8cc84ee37338ab0bdc3124f6eec04dc232d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50462.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.30"
},
{
"fixed": "4.9.337"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.10.0"
},
{
"fixed": "4.14.303"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.270"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.229"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.163"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.86"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50462.json"
}
}
],
"modified": "2026-10-28T02:30:26.330826532Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/170e9913c2ed5cfc37c0adf0fdbd368d2d8d8168",
"https://git.kernel.org/stable/c/48d42f4464d713fbdd79f334fdcd6e5be534cc67",
"https://git.kernel.org/stable/c/5822e8cc84ee37338ab0bdc3124f6eec04dc232d",
"https://git.kernel.org/stable/c/851ae5640875f06494e40002cd503b11a634c6fb",
"https://git.kernel.org/stable/c/9d180e0bb21c57bd6cca2adeb672d3b522e910b5",
"https://git.kernel.org/stable/c/ab3d47c1fd0202821abd473ca87580faafd47847",
"https://git.kernel.org/stable/c/b191dde84e40624d5577f64db0ec922c5c0ec57c",
"https://git.kernel.org/stable/c/b3325a443525e3b89151879b834519b21c5e3011",
"https://git.kernel.org/stable/c/e820a8192ff68570100347855b567512aec43819",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50462.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50462",
"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/50xxx/CVE-2022-50462.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50462",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 492744,
"published_at": "2025-10-01T11:45:34.107+00:00"
}