CVE-2022-50848

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

No CVSS score yet EPSS 0.30%

Published 30 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50848

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50848 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before affe3cea6b3148fa66796a48640664822ceccd48
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before 4b68caa95064ac464f1b261d08ac677e753d1088
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before a524e7fed696a4dfef671e0fda3511bfd2dca0cf
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before da64e01da40c6b71a54144126da53cc3b27201ac
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before fce9890e1be4c0460dad850cc8c00414a9d25f0f
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before a0ead7e8da84f4c3759417b8e928b65e0207c646
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before 8e002b9fe831b27d4506df6fa60cb33ba0730ac3
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before 78fddc0ff971f9874d53c854818cc4aafa144114
affected from 2e4c77bea3d8b17d94f8ee382411f359b708560f, before e63e99397b2613d50a5f4f02ed07307e67a190f1
Other versions: unaffected
Linux
affected 2.6.29
unaffected before 2.6.29
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50848 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50848

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50848
trivy image --scanners vuln IMAGE | grep CVE-2022-50848

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50848 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.