ublk: pin module while release work is pending
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
ublk: pin module while release work is pending
ublk_ch_release() takes a device reference and queues exit_work. 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 exit_work is pending or executing. In addition to the worker callback itself, the final device put can invoke ublk_cdev_rel(), 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 exit_work during module exit is insufficient. The worker is the terminal path for the device reference taken by ublk_ch_release(), so its cancellation would strand that reference and skip the associated cleanup.
| Product | Versions |
|---|---|
| Linux Linux | c5c5eb24ed6177fc0ef4bb75fc18d07a99c1d3f0 to before 448dba9b2af31f445933a1f3026669619280f20c Affectedc5c5eb24ed6177fc0ef4bb75fc18d07a99c1d3f0 to before 20b5467b12954359dd65120cbccb63b4083b9931 Affectedc5c5eb24ed6177fc0ef4bb75fc18d07a99c1d3f0 to before afc9cde716b29ce814798d649a95f9128ba42b43 Affected |
| Linux Linux | 6.17 Affectedbefore 6.17 Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.