CVE-2022-50848

drivers: dio: fix possible memory leak in dio_init()

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before affe3cea6b3148fa66796a48640664822ceccd48Affected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before 4b68caa95064ac464f1b261d08ac677e753d1088Affected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before a524e7fed696a4dfef671e0fda3511bfd2dca0cfAffected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before da64e01da40c6b71a54144126da53cc3b27201acAffected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before fce9890e1be4c0460dad850cc8c00414a9d25f0fAffected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before a0ead7e8da84f4c3759417b8e928b65e0207c646Affected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before 8e002b9fe831b27d4506df6fa60cb33ba0730ac3Affected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before 78fddc0ff971f9874d53c854818cc4aafa144114Affected
  • 2e4c77bea3d8b17d94f8ee382411f359b708560f to before e63e99397b2613d50a5f4f02ed07307e67a190f1Affected
LinuxLinux
  • 2.6.29Affected
  • before 2.6.29Not affected
  • 4.9.337 through 4.9.*Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.