CVE-2022-50244
cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
- Published
- Updated
- Reserved
- Assigned by
- Linux
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.
Timeline
ID reserved
By Linux
Published
- 14 months later
· 14 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.16% · top 94% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 82e68432668ae75b4c814d160f6987ecb0681273
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 82e5481428faf11c79b9c094dd24a1849bbf64ac
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < c4b2e35df919d99bbbed033c2fa0b607f9f463b5
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 361412dae1690d4b5df6f92fc943cdc773c95cbc
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 22511eefa61db26e12c97dd7ada3071dbdfcb004
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 139abd4c626a6f7ce02789ed5f73aa2256e0542b
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339
- affected f204e0b8cedd7da1dfcfd05ed6b7692737e24029 – < 02cd3032b154fa02fdf90e7467abaeed889330b2
- affected 3.18
- unaffected < 3.18
- unaffected 4.9.337 – ≤ 4.9.*
- unaffected 4.14.303 – ≤ 4.14.*
- unaffected 4.19.270 – ≤ 4.19.*
- unaffected 5.4.229 – ≤ 5.4.*
- unaffected 5.10.163 – ≤ 5.10.*
- unaffected 5.15.86 – ≤ 5.15.*
- unaffected 6.0.16 – ≤ 6.0.*
- unaffected 6.1.2 – ≤ 6.1.*
- unaffected 6.2 – ≤ *
References (9)
- https://git.kernel.org/stable/c/82e68432668ae75b4c814d160f6987ecb0681273 (opens in a new tab)
- https://git.kernel.org/stable/c/82e5481428faf11c79b9c094dd24a1849bbf64ac (opens in a new tab)
- https://git.kernel.org/stable/c/c4b2e35df919d99bbbed033c2fa0b607f9f463b5 (opens in a new tab)
- https://git.kernel.org/stable/c/361412dae1690d4b5df6f92fc943cdc773c95cbc (opens in a new tab)
- https://git.kernel.org/stable/c/0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec (opens in a new tab)
- https://git.kernel.org/stable/c/22511eefa61db26e12c97dd7ada3071dbdfcb004 (opens in a new tab)
- https://git.kernel.org/stable/c/139abd4c626a6f7ce02789ed5f73aa2256e0542b (opens in a new tab)
- https://git.kernel.org/stable/c/2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339 (opens in a new tab)
- https://git.kernel.org/stable/c/02cd3032b154fa02fdf90e7467abaeed889330b2 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50244)Record last updated .