# CVE-2026-52980: sched/fair: Clear rel_deadline when initializing forked entities

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-24T16:28:56.457Z
- Modified: 2026-07-14T16:51:26.420Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

sched/fair: Clear rel_deadline when initializing forked entities

A yield-triggered crash can happen when a newly forked sched_entity
enters the fair class with se->rel_deadline unexpectedly set.

The failing sequence is:

  1. A task is forked while se->rel_deadline is still set.
  2. __sched_fork() initializes vruntime, vlag and other sched_entity
     state, but does not clear rel_deadline.
  3. On the first enqueue, enqueue_entity() calls place_entity().
  4. Because se->rel_deadline is set, place_entity() treats se->deadline
     as a relative deadline and converts it to an absolute deadline by
     adding the current vruntime.
  5. However, the forked entity's deadline is not a valid inherited
     relative deadline for this new scheduling instance, so the conversion
     produces an abnormally large deadline.
  6. If the task later calls sched_yield(), yield_task_fair() advances
     se->vruntime to se->deadline.
  7. The inflated vruntime is then used by the following enqueue path,
     where the vruntime-derived key can overflow when multiplied by the
     entity weight.
  8. This corrupts cfs_rq->sum_w_vruntime, breaks EEVDF eligibility
     calculation, and can eventually make all entities appear ineligible.
     pick_next_entity() may then return NULL unexpectedly, leading to a
     later NULL dereference.

A captured trace shows the effect clearly. Before yield, the entity's
vruntime was around:

  9834017729983308

After yield_task_fair() executed:

  se->vruntime = se->deadline

the vruntime jumped to:

  19668035460670230

and the deadline was later advanced further to:

  19668035463470230

This shows that the deadline had already become abnormally large before
yield_task_fair() copied it into vruntime.

rel_deadline is only meaningful when se->deadline really carries a
relative deadline that still needs to be placed against vruntime. A
freshly forked sched_entity should not inherit or retain this state.
Clear se->rel_deadline in __sched_fork(), together with the other
sched_entity runtime state, so that the first enqueue does not interpret
the new entity's deadline as a stale relative deadline.

(As written by CVE List.)

## Affected

- Linux Linux: from 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 before c71bf35caba12bfd9bc23e32b0bcd9e02d1cf1ac; from 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 before f3c16e1f4a314a20717ab90a41885f8111a242ab; from 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 before 8f4a16200785f49cf02c5b71bdfe7a9dab63f23a; from 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 before 3da56dc063cd77b9c0b40add930767fab4e389f3; 6.12 (not affected: before 6.12; from 6.12.91 up to 6.12.*; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.12 before 6.12.91; from 6.13 before 6.18.33; from 6.19 before 7.0.10; 7.1

## References

- <https://git.kernel.org/stable/c/c71bf35caba12bfd9bc23e32b0bcd9e02d1cf1ac> (patch)
- <https://git.kernel.org/stable/c/f3c16e1f4a314a20717ab90a41885f8111a242ab> (patch)
- <https://git.kernel.org/stable/c/8f4a16200785f49cf02c5b71bdfe7a9dab63f23a> (patch)
- <https://git.kernel.org/stable/c/3da56dc063cd77b9c0b40add930767fab4e389f3> (patch)

## Sources

- CVE List: [CVE-2026-52980](https://www.cve.org/CVERecord?id=CVE-2026-52980), CVE Terms of Use, modified 2026-06-24
- NVD: [CVE-2026-52980](https://nvd.nist.gov/vuln/detail/CVE-2026-52980), Public domain, modified 2026-07-14

---

Page: https://cve.day/CVE-2026-52980 · Whole record: https://cve.day/CVE-2026-52980.json · Rebuilt by cve.day 2026-11-25T22:59:25.639Z
