漏洞标题
多媒体: davinci: vpif: 修复驱动解绑后的use-after-free漏洞
漏洞描述信息
在 Linux 内核中,已修复以下漏洞:
媒体:davinci:vpif:解决驱动解绑时的释放后使用问题
该驱动在探测过程中分配并注册了两个平台设备结构,但在驱动解绑时从未注销这些设备。
这导致了驱动解绑时的释放后使用问题,因为设备结构是通过 devres 分配的,当 remove() 返回时将由驱动核心释放。
通过在 remove() 回调中添加缺少的注销调用,并在注册错误时使探测失败来解决此问题。
注意,必须使用适当的释放回调来释放平台设备结构,以避免泄漏设备名称等相关资源。
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
漏洞类别
释放后使用
漏洞标题
media: davinci: vpif: fix use-after-free on driver unbind
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
media: davinci: vpif: fix use-after-free on driver unbind
The driver allocates and registers two platform device structures during
probe, but the devices were never deregistered on driver unbind.
This results in a use-after-free on driver unbind as the device
structures were allocated using devres and would be freed by driver
core when remove() returns.
Fix this by adding the missing deregistration calls to the remove()
callback and failing probe on registration errors.
Note that the platform device structures must be freed using a proper
release callback to avoid leaking associated resources like device
names.
CVSS信息
N/A
漏洞类别
N/A