diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2025-08-28 15:00:51 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-09-10 14:24:16 +0200 |
commit | 7ebf70cf181651fe3f2e44e95e7e5073d594c9c0 (patch) | |
tree | 1e0bdceaf6ff30358fb1e81ea29337a9b4e79f3a /rust/helpers/workqueue.c | |
parent | c45601306aa5831c3e59158f95b8e34f27e9ea09 (diff) |
um: virtio_uml: Fix use-after-free after put_device in probe
When register_virtio_device() fails in virtio_uml_probe(),
the code sets vu_dev->registered = 1 even though
the device was not successfully registered.
This can lead to use-after-free or other issues.
Fixes: 04e5b1fb0183 ("um: virtio: Remove device on disconnect")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions