{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50244","id":"CVE-2022-50244","title":"cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()","description":"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 ","descriptionLong":"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.","published":"2025-09-15T14:02:01.364Z","updated":"2026-11-07T02:30:24.213323729Z","reserved":"2025-09-15T13:58:00.971Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"82e68432668ae75b4c814d160f6987ecb0681273","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"82e5481428faf11c79b9c094dd24a1849bbf64ac","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"c4b2e35df919d99bbbed033c2fa0b607f9f463b5","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"361412dae1690d4b5df6f92fc943cdc773c95cbc","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"22511eefa61db26e12c97dd7ada3071dbdfcb004","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"139abd4c626a6f7ce02789ed5f73aa2256e0542b","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339","status":"affected","versionType":"git"},{"version":"f204e0b8cedd7da1dfcfd05ed6b7692737e24029","lessThan":"02cd3032b154fa02fdf90e7467abaeed889330b2","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","lessThan":"3.18","status":"unaffected","versionType":"semver"},{"version":"4.9.337","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.303","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/82e68432668ae75b4c814d160f6987ecb0681273","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/82e5481428faf11c79b9c094dd24a1849bbf64ac","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c4b2e35df919d99bbbed033c2fa0b607f9f463b5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/361412dae1690d4b5df6f92fc943cdc773c95cbc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/22511eefa61db26e12c97dd7ada3071dbdfcb004","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/139abd4c626a6f7ce02789ed5f73aa2256e0542b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/02cd3032b154fa02fdf90e7467abaeed889330b2","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50244.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50244","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0017,"epssPercentile":0.06449,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50244","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50244","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50244","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50244","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}