{"id":"CVE-2022-50244","published":"2025-09-15T14:02:01Z","modified":"2026-11-05T20:10:30Z","title":"cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0017,"percentile":0.0655,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/82e68432668ae75b4c814d160f6987ecb0681273","tags":[]},{"url":"https://git.kernel.org/stable/c/82e5481428faf11c79b9c094dd24a1849bbf64ac","tags":[]},{"url":"https://git.kernel.org/stable/c/c4b2e35df919d99bbbed033c2fa0b607f9f463b5","tags":[]},{"url":"https://git.kernel.org/stable/c/361412dae1690d4b5df6f92fc943cdc773c95cbc","tags":[]},{"url":"https://git.kernel.org/stable/c/0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec","tags":[]},{"url":"https://git.kernel.org/stable/c/22511eefa61db26e12c97dd7ada3071dbdfcb004","tags":[]},{"url":"https://git.kernel.org/stable/c/139abd4c626a6f7ce02789ed5f73aa2256e0542b","tags":[]},{"url":"https://git.kernel.org/stable/c/2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339","tags":[]},{"url":"https://git.kernel.org/stable/c/02cd3032b154fa02fdf90e7467abaeed889330b2","tags":[]}],"priority":{"score":1.3,"factors":[{"name":"EPSS percentile","points":1.31}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 82e68432668ae75b4c814d160f6987ecb0681273",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 82e5481428faf11c79b9c094dd24a1849bbf64ac",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < c4b2e35df919d99bbbed033c2fa0b607f9f463b5",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 361412dae1690d4b5df6f92fc943cdc773c95cbc",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 22511eefa61db26e12c97dd7ada3071dbdfcb004",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 139abd4c626a6f7ce02789ed5f73aa2256e0542b",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339",">= f204e0b8cedd7da1dfcfd05ed6b7692737e24029, < 02cd3032b154fa02fdf90e7467abaeed889330b2"]},{"vendor":"Linux","product":"Linux","versions":["3.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T20:07:39.185984Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55508","exploited":false,"provenance":"source"}}