Linux
sched_ext: Avoid UAF in scx_root_enable_workfn() init failure path
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Avoid UAF in scx_root_enable_workfn() init failure path In scx_root_enable_workfn(), put_task_struct(p) is called before scx_error() dereferences p->comm and p->pid. If the iterator's reference is the last drop, the task is freed synchronously and the deref becomes a UAF. Move put_task_struct() past scx_error().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < cf396941901858b0de426cdcd3974eea6a02c98c
- >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 45c7c4e3db8b700307313c035ea08be829a7f21b
- >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 57e19ba3f58a67eb924022a5a60b67fd08e5cbbd
- >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 9a415cc53711f2238e0f0ca8a6bcc796c003b127
Fixed in cf396941901858b0de426cdcd3974eea6a02c98c, 45c7c4e3db8b700307313c035ea08be829a7f21b, 57e19ba3f58a67eb924022a5a60b67fd08e5cbbd, 9a415cc53711f2238e0f0ca8a6bcc796c003b127
- 6.12
Fixed in 0, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to cf396941901858b0de426cdcd3974eea6a02c98c or 45c7c4e3db8b700307313c035ea08be829a7f21b or 57e19ba3f58a67eb924022a5a60b67fd08e5cbbd or 9a415cc53711f2238e0f0ca8a6bcc796c003b127 or later.
Upgrade Linux to 0 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.