CVE-2022-50848Published Dec 30, 2025 · Dec 30Updated Oct 28
drivers: dio: fix possible memory leak in dio_init()
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2e4c77bea3d8b17d94f8ee382411f359b708560f · < a0ead7e8da84f4c3759417b8e928b65e0207c646| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's dio_init() can leak device memory and its name if device_register() fails. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their affected versions; no version range was provided.