{"id":"CVE-2025-40163","aliases":["CVE-2025-40163"],"related":[],"kind":"vulnerability","state":"published","title":"sched/deadline: Stop dl_server before CPU goes offline","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/deadline: Stop dl_server before CPU goes offline\n\nIBM CI tool reported kernel warning[1] when running a CPU removal\noperation through drmgr[2]. i.e \"drmgr -c cpu -r -q 1\"\n\nWARNING: CPU: 0 PID: 0 at kernel/sched/cpudeadline.c:219 cpudl_set+0x58/0x170\nNIP [c0000000002b6ed8] cpudl_set+0x58/0x170\nLR [c0000000002b7cb8] dl_server_timer+0x168/0x2a0\nCall Trace:\n[c000000002c2f8c0] init_stack+0x78c0/0x8000 (unreliable)\n[c0000000002b7cb8] dl_server_timer+0x168/0x2a0\n[c00000000034df84] __hrtimer_run_queues+0x1a4/0x390\n[c00000000034f624] hrtimer_interrupt+0x124/0x300\n[c00000000002a230] timer_interrupt+0x140/0x320\n\nGit bisects to: commit 4ae8d9aa9f9d (\"sched/deadline: Fix dl_server getting stuck\")\n\nThis happens since:\n- dl_server hrtimer gets enqueued close to cpu offline, when\n  kthread_park enqueues a fair task.\n- CPU goes offline and drmgr removes it from cpu_present_mask.\n- hrtimer fires and warning is hit.\n\nFix it by stopping the dl_server before CPU is marked dead.\n\n[1]: https://lore.kernel.org/all/8218e149-7718-4432-9312-f97297c352b9@linux.ibm.com/\n[2]: https://github.com/ibm-power-utilities/powerpc-utils/tree/next/src/drmgr\n\n[sshegde: wrote the changelog and tested it]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/deadline: Stop dl_server before CPU goes offline\n\nIBM CI tool reported kernel warning[1] when running a CPU removal\noperation through drmgr[2]. i.e \"drmgr -c cpu -r -q 1\"\n\nWARNING: CPU: 0 PID: 0 at kernel/sched/cpudeadline.c:219 cpudl_set+0x58/0x170\nNIP [c0000000002b6ed8] cpudl_set+0x58/0x170\nLR [c0000000002b7cb8] dl_server_timer+0x168/0x2a0\nCall Trace:\n[c000000002c2f8c0] init_stack+0x78c0/0x8000 (unreliable)\n[c0000000002b7cb8] dl_server_timer+0x168/0x2a0\n[c00000000034df84] __hrtimer_run_queues+0x1a4/0x390\n[c00000000034f624] hrtimer_interrupt+0x124/0x300\n[c00000000002a230] timer_interrupt+0x140/0x320\n\nGit bisects to: commit 4ae8d9aa9f9d (\"sched/deadline: Fix dl_server getting stuck\")\n\nThis happens since:\n- dl_server hrtimer gets enqueued close to cpu offline, when\n  kthread_park enqueues a fair task.\n- CPU goes offline and drmgr removes it from cpu_present_mask.\n- hrtimer fires and warning is hit.\n\nFix it by stopping the dl_server before CPU is marked dead.\n\n[1]: https://lore.kernel.org/all/8218e149-7718-4432-9312-f97297c352b9@linux.ibm.com/\n[2]: https://github.com/ibm-power-utilities/powerpc-utils/tree/next/src/drmgr\n\n[sshegde: wrote the changelog and tested it]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsched/deadline: Detener dl_server antes de que la CPU se desconecte\n\nLa herramienta de CI de IBM informó una advertencia del kernel[1] al ejecutar una operación de eliminación de CPU a través de drmgr[2]. Es decir, “drmgr -c cpu -r -q 1”\n\nADVERTENCIA: CPU: 0 PID: 0 en kernel/sched/cpudeadline.c:219 cpudl_set+0x58/0x170\nNIP [c0000000002b6ed8] cpudl_set+0x58/0x170\nLR [c0000000002b7cb8] dl_server_timer+0x168/0x2a0\nRastreo de Llamadas:\n[c000000002c2f8c0] init_stack+0x78c0/0x8000 (no fiable)\n[c0000000002b7cb8] dl_server_timer+0x168/0x2a0\n[c00000000034df84] __hrtimer_run_queues+0x1a4/0x390\n[c00000000034f624] hrtimer_interrupt+0x124/0x300\n[c00000000002a230] timer_interrupt+0x140/0x320\n\nGit bisecta a: commit 4ae8d9aa9f9d (“sched/deadline: Solucionar el bloqueo de dl_server”)\n\nEsto ocurre porque:\n- el hrtimer de dl_server se encola cerca de la desconexión de la CPU, cuando kthread_park encola una tarea justa.\n- la CPU se desconecta y drmgr la elimina de cpu_present_mask.\n- el hrtimer se activa y se produce la advertencia.\n\nSe soluciona deteniendo el dl_server antes de que la CPU sea marcada como inactiva.\n\n[1]: https://lore.kernel.org/all/8218e149-7718-4432-9312-f97297c352b9@linux.ibm.com/\n[2]: https://github.com/ibm-power-utilities/powerpc-utils/tree/next/src/drmgr\n\n[sshegde: escribió el registro de cambios y lo probó]","source":"nvd"}],"published":"2025-11-12T10:26:23.199Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"030167dcadf50a9f9dac4de6fa4c34f4f7afeed7","fixed":"d7fd56ed5e07e053a5eea6112d61fcaded653b87","status":"affected"},{"type":"git","introduced":"4ae8d9aa9f9dc7137ea5e564d79c5aa5af1bc45c","fixed":"ab6c0f158508bb16d483add70b73a73f95651c33","status":"affected"},{"type":"git","introduced":"4ae8d9aa9f9dc7137ea5e564d79c5aa5af1bc45c","fixed":"ee6e44dfe6e50b4a5df853d933a96bdff5309e6e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.17.5","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/d7fd56ed5e07e053a5eea6112d61fcaded653b87","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab6c0f158508bb16d483add70b73a73f95651c33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee6e44dfe6e50b4a5df853d933a96bdff5309e6e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40163","url":"https://www.cve.org/CVERecord?id=CVE-2025-40163","licence":"CVE Terms of Use","modified":"2026-06-01T16:05:34.972Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40163","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40163","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.561Z","epss":{"score":0.00199,"percentile":0.10167,"date":"2026-12-01T12:00:22.000Z"}}