nvmet: fix refcount leak in nvmet_sq_create()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 26355295ce21cb046546085c3a81abe68160a784, Kernel 34b9a83c50660148bde01cde16451dbe78369749, Kernel fcef60ed5f714a24104eb021d6397a67955ebeff and 2 more.
In the Linux kernel, the following vulnerability has been resolved: nvmet: fix refcount leak in nvmet_sq_create() In nvmet_sq_create(), a reference on the ctrl is taken via kref_get_unless_zero() before calling nvmet_check_sqid(). If nvmet_check_sqid() fails, the function returns the error directly without releasing the reference, leading to a leak. Fix this by jumping to the "ctrl_put" label, which already performs the necessary nvmet_ctrl_put(ctrl). This ensures the reference is properly released on this error path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.14, >=1eb380caf5275bba1d3d6182dde1fd740f331743 <26355295ce21cb046546085c3a81abe68160a784, >=1eb380caf5275bba1d3d6182dde1fd740f331743 <34b9a83c50660148bde01cde16451dbe78369749, >=1eb380caf5275bba1d3d6182dde1fd740f331743 <fcef60ed5f714a24104eb021d6397a67955ebeff | 26355295ce21cb046546085c3a81abe68160a784, 34b9a83c50660148bde01cde16451dbe78369749, fcef60ed5f714a24104eb021d6397a67955ebeff |
| linux-kernel: Kernel | >=6.14.0 <6.18.40, >=6.19.0 <7.1.5 | 6.18.40, 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket