CVE-2022-50848
Description
In the Linux kernel, the following vulnerability has been resolved:
drivers: dio: fix possible memory leak in dio_init()
If device_register() returns error, the 'dev' and name needs be freed. Add a release function, and then call put_device() in the error path, so the name is freed in kobject_cleanup() and to the 'dev' is freed in release function.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Memory leak in Linux kernel's dio_init() when device_register() fails, fixed by adding proper cleanup.
Root
Cause In dio_init(), if device_register() returns an error, the allocated dev and its name are not freed, resulting in a memory leak. The fix adds a release function and calls put_device() in the error path to properly release resources.
Exploitation
This vulnerability is local in nature and exploitable only if a device registration failure occurs during DIO bus initialization. An attacker with local access or ability to influence hardware configuration could potentially trigger the failure condition, causing repeated leaks.
Impact
The memory leak gradually exhausts kernel memory, which can lead to system instability, denial of service, or resource exhaustion. No privilege escalation or code execution is reported.
Mitigation
The issue has been patched in stable kernel releases, as seen in commit [1]. Users should update their kernels to include the fix.
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
9affe3cea6b314b68caa95064a524e7fed696da64e01da40cfce9890e1be4a0ead7e8da848e002b9fe83178fddc0ff971e63e99397b26Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- git.kernel.org/stable/c/4b68caa95064ac464f1b261d08ac677e753d1088nvd
- git.kernel.org/stable/c/78fddc0ff971f9874d53c854818cc4aafa144114nvd
- git.kernel.org/stable/c/8e002b9fe831b27d4506df6fa60cb33ba0730ac3nvd
- git.kernel.org/stable/c/a0ead7e8da84f4c3759417b8e928b65e0207c646nvd
- git.kernel.org/stable/c/a524e7fed696a4dfef671e0fda3511bfd2dca0cfnvd
- git.kernel.org/stable/c/affe3cea6b3148fa66796a48640664822ceccd48nvd
- git.kernel.org/stable/c/da64e01da40c6b71a54144126da53cc3b27201acnvd
- git.kernel.org/stable/c/e63e99397b2613d50a5f4f02ed07307e67a190f1nvd
- git.kernel.org/stable/c/fce9890e1be4c0460dad850cc8c00414a9d25f0fnvd
News mentions
0No linked articles in our index yet.