5.5medium
sched_ext: Fix possible deadlock in the deferred_irq_workfn()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix possible deadlock in the deferred_irq_workfn() For PREEMPT_RT=y kernels, the deferred_irq_workfn() is executed in the per-cpu irq_work/* task context and not disable-irq, if the rq returned by container_of() is current CPU's rq, the following scenarios may occur: lock(&rq->__lock); <Interrupt> lock(&rq->__lock); This commit use IRQ_WORK_INIT_HARD() to replace init_irq_work() to initialize rq->scx.deferred_irq_work, make the deferred_irq_workfn() is always invoked in hard-irq context.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 before 541959b2fadb832a7d0ceb95041dc52bdcf6bff7, from 5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 before 600b4379b9a7ba41340d652211fb29699da4c629, from 5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 before a257e974210320ede524f340ffe16bf4bf0dda1e, 6.12 Not affected: before 6.12, from 6.12.68 up to 6.12.*, from 6.17.12 up to 6.17.*, from 6.18 up to * | CVE List |
| linux linux_kernel | from 6.12 before 6.12.68, from 6.13 before 6.17.12, 6.18 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix possible deadlock in the deferred_irq_workfn() For PREEMPT_RT=y kernels, the deferred_irq_workfn() is executed in the per-cpu irq_work/* task context and not disable-irq, if the rq returned by container_of() is current CPU's rq, the following scenarios may occur: lock(&rq->__lock); <Interrupt> lock(&rq->__lock); This commit use IRQ_WORK_INIT_HARD() to replace init_irq_work() to initialize rq->scx.deferred_irq_work, make the deferred_irq_workfn() is always invoked in hard-irq context.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nsched_ext: Corrige posible interbloqueo en deferred_irq_workfn()\n\nPara kernels PREEMPT_RT=y, deferred_irq_workfn() se ejecuta en el contexto de tarea per?cpu irq_work/* y no en disable?irq. Si el rq devuelto por container_of() corresponde al rq de la CPU actual, pueden producirse los siguientes escenarios:\n\nlock(&rq -> __lock);\n<Interrupt>\n lock(&rq -> __lock);\n\nEste commit utiliza IRQ_WORK_INIT_HARD() para reemplazar init_irq_work() y inicializar rq -> scx.deferred_irq_work, de modo que deferred_irq_workfn() siempre se invoque en contexto hard?irq.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68333 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68333 changed 2026-10-19 | Public domain |