nvme: add missing SRCU grace period in error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 037e71058e8a59568db72015d4386f54e54dff77, Kernel 0d4735418512ef825176726eaaa8bd6a35f6b46d, Kernel 3868476cd39161f18720582df17a1b621e805b5d and 5 more.
In the Linux kernel, the following vulnerability has been resolved: nvme: add missing SRCU grace period in error path nvme_alloc_ns() error path at out_unlink_ns removes ns from the namespace head siblings list with list_del_rcu(&ns->siblings) but does not wait for SRCU readers before freeing the namespace struct. Multipath code iterates the head->list under srcu_read_lock() in nvme_find_path() and nvme_mpath_revalidate_paths(), so a concurrent reader can still hold a reference to ns when kfree(ns) runs. The normal removal path in nvme_ns_remove() correctly calls synchronize_srcu(&ns->head->srcu) after list_del_rcu() to wait for in-progress readers. Add the same grace period in the error path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <037e71058e8a59568db72015d4386f54e54dff77, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <0d4735418512ef825176726eaaa8bd6a35f6b46d, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <3868476cd39161f18720582df17a1b621e805b5d, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <76023560d60f10b4f808941163aa2975f1631683, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <7f180cef9f3421ece85c43bfdc326ce5875845bb, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <d663944dbad81bb0e3635d7090db4713e6300858, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <da710ec2a70a85de73afd4f7869b234fd9ede49e, >=ed754e5deeb17f4e675c84e4b6c640cc7344e498 <ef248d5de4469fb6bbaf8dbe0c4c47800080d648 | 037e71058e8a59568db72015d4386f54e54dff77, 0d4735418512ef825176726eaaa8bd6a35f6b46d, 3868476cd39161f18720582df17a1b621e805b5d, 76023560d60f10b4f808941163aa2975f1631683, 7f180cef9f3421ece85c43bfdc326ce5875845bb, d663944dbad81bb0e3635d7090db4713e6300858, da710ec2a70a85de73afd4f7869b234fd9ede49e, ef248d5de4469fb6bbaf8dbe0c4c47800080d648 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket