CVE-2022-50244: cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
Vulnerability summary
CVE-2022-50244 is a medium (CVSS 5.5) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5.5% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 15-09-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
6%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.16% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu120 products
- linuxAll versions (No fix recorded) | < 4.15.0-208.220 | < 5.4.0-144.161 | < 5.15.0-69.76
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 4.15.0-1153.166 | < 5.4.0-1097.105 | < 5.15.0-1033.37
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 82e68432668ae75b4c814d160f6987ecb0681273 | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 82e5481428faf11c79b9c094dd24a1849bbf64ac | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < c4b2e35df919d99bbbed033c2fa0b607f9f463b5 | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 361412dae1690d4b5df6f92fc943cdc773c95cbc | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 22511eefa61db26e12c97dd7ada3071dbdfcb004 | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 139abd4c626a6f7ce02789ed5f73aa2256e0542b | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339 | ≥ f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 02cd3032b154fa02fdf90e7467abaeed889330b2 | 3.18
- linux_kernel≥ 3.18, < 4.9.337 | ≥ 4.10, < 4.14.303 | ≥ 4.15, < 4.19.270 | ≥ 4.20, < 5.4.229 | ≥ 5.5, < 5.10.163 | ≥ 5.11, < 5.15.86 | ≥ 5.16, < 6.0.16 | ≥ 6.1, < 6.1.2
Debian1 product
- linux< 6.1.4-1
3 vendors · 123 products