auxdisplay: hd44780: Fix potential memory leak in hd44780_remove()
In the Linux kernel, the following vulnerability has been resolved: auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() hd44780_probe() allocates a memory chunk for hd with kzalloc() and makes "lcd->drvdata->hd44780" point to it. When we call hd44780_remove(), we should release all relevant memory and resource. But "lcd->drvdata ->hd44780" is not released, which will lead to a memory leak. We should release the "lcd->drvdata->hd44780" in hd44780_remove() to fix the memory leak bug.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.100, 6.1.18, 6.2.5
- CVEs
- CVE-2022-50830
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:32 UTC · Revision 1
Source evidence
auxdisplay: hd44780: Fix potential memory leak in hd44780_remove()
core-osv · Original sourcePublished 30 Dec 2025, 12:10 UTC
In the Linux kernel, the following vulnerability has been resolved: auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() hd44780_probe() allocates a memory chunk for hd with kzalloc() and makes "lcd->drvdata->hd44780" point to it. When we call hd44780_remove(), we should release all relevant memory and resource. But "lcd->drvdata ->hd44780" is not released, which will lead to a memory leak. We should release the "lcd->drvdata->hd44780" in hd44780_remove() to fix the memory leak bug.
osv:CVE-2022-50830
Kernel
Fixed versions: 5.15.100, 6.1.18, 6.2.5
Complete source record
{
"id": "d67fa9549143470a77937c7d5c549dda2205ed538b24af1ad34cf904d1bc3961",
"url": "https://osv.dev/vulnerability/CVE-2022-50830",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "auxdisplay: hd44780: Fix potential memory leak in hd44780_remove()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() hd44780_probe() allocates a memory chunk for hd with kzalloc() and makes \"lcd->drvdata->hd44780\" point to it. When we call hd44780_remove(), we should release all relevant memory and resource. But \"lcd->drvdata ->hd44780\" is not released, which will lead to a memory leak. We should release the \"lcd->drvdata->hd44780\" in hd44780_remove() to fix the memory leak bug.",
"evidence": "osv:CVE-2022-50830",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.100",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.18",
"evidence": "/affected/1/ranges"
},
{
"value": "6.2.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50830",
"aliases": [
"CVE-2022-50830"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "718e05ed92ecac0d9d3954bcc8064527c3ce7565"
},
{
"fixed": "8311961a1724bfc64390c539dedc31e067a80315"
},
{
"fixed": "6cd37f8232f5e169a723e1d5fbe3b2139c2ef763"
},
{
"fixed": "5d407911e605702ffcc0e97a6db546592ab27dd0"
},
{
"fixed": "ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50830.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.100"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50830.json"
}
}
],
"modified": "2026-10-28T02:30:32.537946990Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/5d407911e605702ffcc0e97a6db546592ab27dd0",
"https://git.kernel.org/stable/c/6cd37f8232f5e169a723e1d5fbe3b2139c2ef763",
"https://git.kernel.org/stable/c/8311961a1724bfc64390c539dedc31e067a80315",
"https://git.kernel.org/stable/c/ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50830.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50830",
"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-50830.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50830",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 499702,
"published_at": "2025-12-30T12:10:52.099+00:00"
}