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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **Published:** 2025-12-30T12:15:25.776Z
- **Modified:** 2026-06-17T05:24:17.463Z

## Who should check

- Anyone running Linux \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< affe3cea6b3148fa66796a48640664822ceccd48; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 4b68caa95064ac464f1b261d08ac677e753d1088; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< a524e7fed696a4dfef671e0fda3511bfd2dca0cf; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< da64e01da40c6b71a54144126da53cc3b27201ac; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< fce9890e1be4c0460dad850cc8c00414a9d25f0f; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< a0ead7e8da84f4c3759417b8e928b65e0207c646; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 8e002b9fe831b27d4506df6fa60cb33ba0730ac3; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 78fddc0ff971f9874d53c854818cc4aafa144114; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< e63e99397b2613d50a5f4f02ed07307e67a190f1
- Anyone running Linux 2.6.29

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

## Affected and fixed versions

- Linux: \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< affe3cea6b3148fa66796a48640664822ceccd48; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 4b68caa95064ac464f1b261d08ac677e753d1088; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< a524e7fed696a4dfef671e0fda3511bfd2dca0cf; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< da64e01da40c6b71a54144126da53cc3b27201ac; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< fce9890e1be4c0460dad850cc8c00414a9d25f0f; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< a0ead7e8da84f4c3759417b8e928b65e0207c646; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 8e002b9fe831b27d4506df6fa60cb33ba0730ac3; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 78fddc0ff971f9874d53c854818cc4aafa144114; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< e63e99397b2613d50a5f4f02ed07307e67a190f1 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50848. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50848.md
Affected: Linux >= 2e4c77bea3d8b17d94f8ee382411f359b708560f, < affe3cea6b3148fa66796a48640664822ceccd48; >= 2e4c77bea3d8b17d94f8ee382411f359b708560f, < 4b68caa95064ac464f1b261d08ac677e753d1088; >= 2e4c77bea3d8b17d94f8ee382411f359b708560f, < a524e7fed696a4dfef671e0fda3511bfd2dca0cf; >= 2e4c77bea3d8b17d94f8ee3…
Fixed in: Linux 4b68caa95064ac464f1b261d08ac677e753d1088, Linux 8e002b9fe831b27d4506df6fa60cb33ba0730ac3, Linux 78fddc0ff971f9874d53c854818cc4aafa144114

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50848 being exploited?

There is no confirmed exploitation: CVE-2022-50848 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50848?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50848?

Linux \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< affe3cea6b3148fa66796a48640664822ceccd48; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 4b68caa95064ac464f1b261d08ac677e753d1088; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< a524e7fed696a4dfef671e0fda3511bfd2dca0cf; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< da64e01da40c6b71a54144126da53cc3b27201ac; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< fce9890e1be4c0460dad850cc8c00414a9d25f0f; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< a0ead7e8da84f4c3759417b8e928b65e0207c646; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 8e002b9fe831b27d4506df6fa60cb33ba0730ac3; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< 78fddc0ff971f9874d53c854818cc4aafa144114; \>= 2e4c77bea3d8b17d94f8ee382411f359b708560f, \< e63e99397b2613d50a5f4f02ed07307e67a190f1; Linux 2.6.29.

### Is there a fix for CVE-2022-50848?

Yes. Fixed in Linux 4b68caa95064ac464f1b261d08ac677e753d1088, Linux 8e002b9fe831b27d4506df6fa60cb33ba0730ac3, Linux 78fddc0ff971f9874d53c854818cc4aafa144114. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50848?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50848>

HTML: <https://flawdb.com/CVE-2022-50848> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50848>
