A vulnerability in the Linux kernel's ublk subsystem was fixed by ensuring that a new device is published by its ID only after it is fully set up. Previously, the device could be found by control commands before its character device was properly added, leading to potential use-after-free conditions if initialization failed and the device was removed concurrently.