net: shaper: rework the VALID marking (again)
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2417df5e7bb4184b9d3a2988036bf2c46e594545, Kernel 96ea960dd40fd55302e0fd755176f26a95e6a50c, Kernel b8d7519352ba8c6df83259295d4a3bad093cae90 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: net: shaper: rework the VALID marking (again) Recent commit changed the semantics from NOT_VALID to VALID. I didn't realize that the flags are not stored atomically with the entry in XArray. There's still a race of reader observing a VALID mark for a slot, getting interrupted, writer replacing the entry with a different one, reader continuing, fetching the entry which is now a different pointer than the pointer for which VALID was meant. The biggest consequence of this is that we may see a UAF since net_shaper_rollback() assumed that entries without VALID can be freed without observing RCU. Looks like the XArray marks are buying us nothing at this point. Let's convert the code to an explicit valid field. The smp_load_acquire() / smp_store_release() barriers are marginally cleaner.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.13, >=93954b40f6a4fc43226c01a15b02732f884500f1 <2417df5e7bb4184b9d3a2988036bf2c46e594545, >=93954b40f6a4fc43226c01a15b02732f884500f1 <96ea960dd40fd55302e0fd755176f26a95e6a50c, >=93954b40f6a4fc43226c01a15b02732f884500f1 <b8d7519352ba8c6df83259295d4a3bad093cae90 | 2417df5e7bb4184b9d3a2988036bf2c46e594545, 96ea960dd40fd55302e0fd755176f26a95e6a50c, b8d7519352ba8c6df83259295d4a3bad093cae90 |
| linux-kernel: Kernel | >=6.13.0 <6.18.34, >=6.19.0 <7.0.11 | 6.18.34, 7.0.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket