漏洞标题
NTB:修复ntb_register_device()中可能的名称泄露问题
漏洞描述信息
在Linux内核中,已解决以下漏洞:
NTB:修复ntb_register_device()中可能的名称泄露
如果ntb_register_device()中的device_register()失败,则由dev_set_name()分配的设备名称应被释放。根据device_register()中的注释,调用者应在错误路径上使用put_device()释放引用。因此,通过在错误路径上调用put_device()来修复这个问题,以便在kobject_cleanup()中释放名称。
由此,从ntb_register_device()错误路径中的put_device()被移除,并返回实际错误。
[mani:重写提交消息]
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
漏洞类别
在移除最后引用时对内存的释放不恰当(内存泄露)
漏洞标题
NTB: fix possible name leak in ntb_register_device()
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
NTB: fix possible name leak in ntb_register_device()
If device_register() fails in ntb_register_device(), the device name
allocated by dev_set_name() should be freed. As per the comment in
device_register(), callers should use put_device() to give up the
reference in the error path. So fix this by calling put_device() in the
error path so that the name can be freed in kobject_cleanup().
As a result of this, put_device() in the error path of
ntb_register_device() is removed and the actual error is returned.
[mani: reworded commit message]
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于名称泄漏。
CVSS信息
N/A
漏洞类别
其他