Linux kernel task preemption during exit causes stack corruption
CVE-2026-46173High
When a task oopses during exit, the Linux kernel calls do_task_dead() with preemption enabled, which violates the scheduler's requirement that preemption must be disabled. If the oopsing task is preempted between becoming TASK_DEAD and entering the scheduler, the scheduler incorrectly assumes the dead task's stack is no longer needed and repeatedly drops references to it. This can cause use-after-free or double-free of the task stack, allowing two tasks to run on the same stack and causing memory corruption. An attacker needs only to trigger an oops during task exit, such as in a file_operations::release handler.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Detail
Affected versions
- linux linux kernel: from 5.17, before 6.1.175
- linux linux kernel: from 6.2, before 6.6.140
- linux linux kernel: from 6.7, before 6.12.88
- linux linux kernel: from 6.13, before 6.18.30
- linux linux kernel: from 6.19, before 7.0.7
- linux linux kernel: 7.1
Reports naming this CVE2 in total
· All CISA Advisories
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (opens in a new tab)· All CISA Advisories
Siemens SIMATIC S7-1500 TM MFP (opens in a new tab)