CVE-2022-50244

cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()

No CVSS score yet EPSS 0.17%

Published 15 Sep 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2022-50244

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-50244 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:

cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()

If device_register() fails in cxl_pci_afu|adapter(), the device is not added, device_unregister() can not be called in the error path, otherwise it will cause a null-ptr-deref because of removing not added device.

As comment of device_register() says, it should use put_device() to give up the reference in the error path. So split device_unregister() into device_del() and put_device(), then goes to put dev when register fails.

Exploitation

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

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 82e68432668ae75b4c814d160f6987ecb0681273
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 82e5481428faf11c79b9c094dd24a1849bbf64ac
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before c4b2e35df919d99bbbed033c2fa0b607f9f463b5
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 361412dae1690d4b5df6f92fc943cdc773c95cbc
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 22511eefa61db26e12c97dd7ada3071dbdfcb004
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 139abd4c626a6f7ce02789ed5f73aa2256e0542b
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339
affected from f204e0b8cedd7da1dfcfd05ed6b7692737e24029, before 02cd3032b154fa02fdf90e7467abaeed889330b2
Other versions: unaffected
Linux
affected 3.18
unaffected before 3.18
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-50244 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50244

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-50244
trivy image --scanners vuln IMAGE | grep CVE-2022-50244

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-50244 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.