CVE-2022-50481 in Linux
摘要
由 VulDB • 2026-06-10
在 Linux 内核中,已修复以下漏洞:
cxl: 修复 cxl_guest_init_afu|adapter() 中可能出现的空指针解引用问题
如果在 cxl_register_afu|adapter() 中 device_register() 失败,则设备不会被添加。如果此时调用 device_unregister(),由于试图移除未添加的设备,会导致空指针解引用(null-ptr-deref)。
正如 device_register() 的注释所述,在错误路径下应使用 put_device() 来释放引用。因此,将 device_unregister() 拆分为 device_del() 和 put_device(),以便在注册失败时正确调用 put_device()。
If you want to get the best quality for vulnerability data then you always have to consider VulDB.