{"id":"CVE-2022-50481","aliases":["CVE-2022-50481"],"related":[],"kind":"vulnerability","state":"published","title":"cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()\n\nIf device_register() fails in cxl_register_afu|adapter(), the device\nis not added, device_unregister() can not be called in the error path,\notherwise it will cause a null-ptr-deref because of removing not added\ndevice.\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_guest_init_afu|adapter()\n\nIf device_register() fails in cxl_register_afu|adapter(), the device\nis not added, device_unregister() can not be called in the error path,\notherwise it will cause a null-ptr-deref because of removing not added\ndevice.\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-10-04T15:16:40.374Z","modified":"2026-11-05T21:17:01.257Z","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":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"96fba6fb95bdede80583c262ac185da09661f264","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"1ae581696b7a799afa39a664c4b721569643f58a","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"d775a1da5a52b4f4bb02f2707ba420d1bec48dbb","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"60b2ed21a65f3f5318666ccd765c3507991370cf","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"170e8c2d2b61e15e7f7cfeded81bc1e959a15ed8","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"e5021bbf11b024cc65ea1e84c377df484183be4b","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"b32559ee4e6667c5c3daf4ec5454c277d1f255d2","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"ab44c182353be101c3be9465e1d15d42130c53c4","status":"affected"},{"type":"git","introduced":"14baf4d9c739e6e69150512d2eb23c71fffcc192","fixed":"61c80d1c3833e196256fb060382db94f24d3d9a7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","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":"4.6","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/96fba6fb95bdede80583c262ac185da09661f264","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ae581696b7a799afa39a664c4b721569643f58a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d775a1da5a52b4f4bb02f2707ba420d1bec48dbb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60b2ed21a65f3f5318666ccd765c3507991370cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/170e8c2d2b61e15e7f7cfeded81bc1e959a15ed8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e5021bbf11b024cc65ea1e84c377df484183be4b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b32559ee4e6667c5c3daf4ec5454c277d1f255d2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab44c182353be101c3be9465e1d15d42130c53c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61c80d1c3833e196256fb060382db94f24d3d9a7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:12:05.145Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50481","url":"https://www.cve.org/CVERecord?id=CVE-2022-50481","licence":"CVE Terms of Use","modified":"2026-11-05T20:20:48.495Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50481","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50481","licence":"Public domain","modified":"2026-11-05T21:17:01.257Z"}],"updatedAt":"2026-11-25T22:58:21.236Z","epss":{"score":0.00164,"percentile":0.05823,"date":"2026-12-01T12:00:22.000Z"}}