CVE-2026-100044: ublk: pin module while release work is pending
In the Linux kernel, the following vulnerability has been resolved:
ublk: pin module while release work is pending
ublkchrelease() takes a device reference and queues exitwork. The VFS module reference held through the file operations is dropped after ->release() returns. A queued work item does not acquire its own module reference for the callback.
Consequently, normal module removal can start while exitwork is pending or executing. In addition to the worker callback itself, the final device put can invoke ublkcdevrel(), which is also module code.
Take a module reference while ->release() is still covered by the file operations reference and drop it only after the worker has completed its final device put. A rearming worker retains the same reference.
Merely canceling exitwork during module exit is insufficient. The worker is the terminal path for the device reference taken by ublkchrelease(), so its cancellation would strand that reference and skip the associated cleanup.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ublk_ch_release(), take a module reference while the file-operations reference still covers ->release(), and drop it only after exit_work has completed executing.