{"id":"CVE-2022-50244","aliases":["CVE-2022-50244"],"related":[],"kind":"vulnerability","state":"published","title":"cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()\n\nIf device_register() fails in cxl_pci_afu|adapter(), the device\nis not added, device_unregister() can not be called in the error\npath, otherwise it will cause a null-ptr-deref because of removing\nnot added device.\n\nAs comment of device_register() says, it should use put_device() to give\nup the reference in the error path. So split device_unregister() into\ndevice_del() and put_device(), then goes to put dev when register fails.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()\n\nIf device_register() fails in cxl_pci_afu|adapter(), the device\nis not added, device_unregister() can not be called in the error\npath, otherwise it will cause a null-ptr-deref because of removing\nnot added device.\n\nAs comment of device_register() says, it should use put_device() to give\nup the reference in the error path. So split device_unregister() into\ndevice_del() and put_device(), then goes to put dev when register fails.","source":"cvelist"}],"published":"2025-09-15T14:02:01.364Z","modified":"2026-11-05T20:17:28.910Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"82e68432668ae75b4c814d160f6987ecb0681273","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"82e5481428faf11c79b9c094dd24a1849bbf64ac","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"c4b2e35df919d99bbbed033c2fa0b607f9f463b5","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"361412dae1690d4b5df6f92fc943cdc773c95cbc","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"22511eefa61db26e12c97dd7ada3071dbdfcb004","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"139abd4c626a6f7ce02789ed5f73aa2256e0542b","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339","status":"affected"},{"type":"git","introduced":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","fixed":"02cd3032b154fa02fdf90e7467abaeed889330b2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.18","fixed":"4.9.337"},{"status":"affected","introduced":"4.10","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/82e68432668ae75b4c814d160f6987ecb0681273","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82e5481428faf11c79b9c094dd24a1849bbf64ac","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4b2e35df919d99bbbed033c2fa0b607f9f463b5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/361412dae1690d4b5df6f92fc943cdc773c95cbc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22511eefa61db26e12c97dd7ada3071dbdfcb004","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/139abd4c626a6f7ce02789ed5f73aa2256e0542b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02cd3032b154fa02fdf90e7467abaeed889330b2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:07:39.185Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50244","url":"https://www.cve.org/CVERecord?id=CVE-2022-50244","licence":"CVE Terms of Use","modified":"2026-11-05T20:10:30.561Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50244","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50244","licence":"Public domain","modified":"2026-11-05T20:17:28.910Z"}],"updatedAt":"2026-11-25T22:58:21.126Z","epss":{"score":0.0017,"percentile":0.06734,"date":"2026-12-01T12:00:22.000Z"}}