# CVE-2022-50848: drivers: dio: fix possible memory leak in dio_init()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-02)
- Published: 2025-12-30T12:15:25.776Z
- Modified: 2026-06-17T05:24:17.463Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2e4c77bea3d8b17d94f8ee382411f359b708560f before affe3cea6b3148fa66796a48640664822ceccd48; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before 4b68caa95064ac464f1b261d08ac677e753d1088; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before a524e7fed696a4dfef671e0fda3511bfd2dca0cf; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before da64e01da40c6b71a54144126da53cc3b27201ac; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before fce9890e1be4c0460dad850cc8c00414a9d25f0f; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before a0ead7e8da84f4c3759417b8e928b65e0207c646; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before 8e002b9fe831b27d4506df6fa60cb33ba0730ac3; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before 78fddc0ff971f9874d53c854818cc4aafa144114; from 2e4c77bea3d8b17d94f8ee382411f359b708560f before e63e99397b2613d50a5f4f02ed07307e67a190f1; 2.6.29 (not affected: before 2.6.29; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/affe3cea6b3148fa66796a48640664822ceccd48>
- <https://git.kernel.org/stable/c/4b68caa95064ac464f1b261d08ac677e753d1088>
- <https://git.kernel.org/stable/c/a524e7fed696a4dfef671e0fda3511bfd2dca0cf>
- <https://git.kernel.org/stable/c/da64e01da40c6b71a54144126da53cc3b27201ac>
- <https://git.kernel.org/stable/c/fce9890e1be4c0460dad850cc8c00414a9d25f0f>
- <https://git.kernel.org/stable/c/a0ead7e8da84f4c3759417b8e928b65e0207c646>
- <https://git.kernel.org/stable/c/8e002b9fe831b27d4506df6fa60cb33ba0730ac3>
- <https://git.kernel.org/stable/c/78fddc0ff971f9874d53c854818cc4aafa144114>
- <https://git.kernel.org/stable/c/e63e99397b2613d50a5f4f02ed07307e67a190f1>

## Sources

- CVE List: [CVE-2022-50848](https://www.cve.org/CVERecord?id=CVE-2022-50848), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50848](https://nvd.nist.gov/vuln/detail/CVE-2022-50848), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50848 · Whole record: https://cve.day/CVE-2022-50848.json · Rebuilt by cve.day 2026-11-25T22:58:21.378Z
