{"id":"CVE-2022-50830","state":"PUBLISHED","title":"auxdisplay: hd44780: Fix potential memory leak in hd44780_remove()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nauxdisplay: hd44780: Fix potential memory leak in hd44780_remove()\n\nhd44780_probe() allocates a memory chunk for hd with kzalloc() and\nmakes \"lcd->drvdata->hd44780\" point to it. When we call hd44780_remove(),\nwe should release all relevant memory and resource. But \"lcd->drvdata\n->hd44780\" is not released, which will lead to a memory leak.\n\nWe should release the \"lcd->drvdata->hd44780\" in hd44780_remove() to fix\nthe memory leak bug.","publishedAt":"2025-12-30T12:10:52.099Z","updatedAt":"2026-05-11T19:25:56.572Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"8311961a1724bfc64390c539dedc31e067a80315","versionType":"git"},{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"6cd37f8232f5e169a723e1d5fbe3b2139c2ef763","versionType":"git"},{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"5d407911e605702ffcc0e97a6db546592ab27dd0","versionType":"git"},{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/auxdisplay/hd44780.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.100","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.18","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.5","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/auxdisplay/hd44780.c"]}],"references":["https://git.kernel.org/stable/c/8311961a1724bfc64390c539dedc31e067a80315","https://git.kernel.org/stable/c/6cd37f8232f5e169a723e1d5fbe3b2139c2ef763","https://git.kernel.org/stable/c/5d407911e605702ffcc0e97a6db546592ab27dd0","https://git.kernel.org/stable/c/ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50830.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50830","state":"PUBLISHED","datePublished":"2025-12-30T12:10:52.099Z","dateUpdated":"2026-05-11T19:25:56.572Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:07.132Z"},"containers":{"cna":{"title":"auxdisplay: hd44780: Fix potential memory leak in hd44780_remove()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nauxdisplay: hd44780: Fix potential memory leak in hd44780_remove()\n\nhd44780_probe() allocates a memory chunk for hd with kzalloc() and\nmakes \"lcd->drvdata->hd44780\" point to it. When we call hd44780_remove(),\nwe should release all relevant memory and resource. But \"lcd->drvdata\n->hd44780\" is not released, which will lead to a memory leak.\n\nWe should release the \"lcd->drvdata->hd44780\" in hd44780_remove() to fix\nthe memory leak bug."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"8311961a1724bfc64390c539dedc31e067a80315","versionType":"git"},{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"6cd37f8232f5e169a723e1d5fbe3b2139c2ef763","versionType":"git"},{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"5d407911e605702ffcc0e97a6db546592ab27dd0","versionType":"git"},{"version":"718e05ed92ecac0d9d3954bcc8064527c3ce7565","status":"affected","lessThan":"ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/auxdisplay/hd44780.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.100","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.18","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.5","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/auxdisplay/hd44780.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8311961a1724bfc64390c539dedc31e067a80315"},{"url":"https://git.kernel.org/stable/c/6cd37f8232f5e169a723e1d5fbe3b2139c2ef763"},{"url":"https://git.kernel.org/stable/c/5d407911e605702ffcc0e97a6db546592ab27dd0"},{"url":"https://git.kernel.org/stable/c/ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:25:56.572Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.100"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}