net: sched: fix use-after-free in taprio_change()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a3d43c0d56f1b94e74963a2fbadfb70126d92213 · < 2240f9376f20f8b6463232b4ca7292569217237f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sched: fix use-after-free in taprio_change()
In 'taprio_change()', 'admin' pointer may become dangling due to sched switch / removal caused by 'advance_sched()', and critical section protected by 'q->current_entry_lock' is too small to prevent from such a scenario (which causes use-after-free detected by KASAN). Fix this by prefer 'rcu_replace_pointer()' over 'rcu_assign_pointer()' to update 'admin' immediately before an attempt to schedule freeing.
From the CVE record · Linux
The Linux kernel has a use-after-free vulnerability in net scheduling's taprio_change(). A schedule switch or removal during advance_sched() can leave the admin pointer dangling. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.