# CVE-2024-35985: sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-20T09:47:52.389Z
- Modified: 2026-06-17T07:35:53.007Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()

It was possible to have pick_eevdf() return NULL, which then causes a
NULL-deref. This turned out to be due to entity_eligible() returning
falsely negative because of a s64 multiplcation overflow.

Specifically, reweight_eevdf() computes the vlag without considering
the limit placed upon vlag as update_entity_lag() does, and then the
scaling multiplication (remember that weight is 20bit fixed point) can
overflow. This then leads to the new vruntime being weird which then
causes the above entity_eligible() to go side-ways and claim nothing
is eligible.

Thus limit the range of vlag accordingly.

All this was quite rare, but fatal when it does happen.

(As written by CVE List.)

## Affected

- Linux Linux: from 14204acc09f652169baed1141c671429047b1313 before 470d347b14b0ecffa9b39cf8f644fa2351db3efb; from eab03c23c2a162085b13200d7942fc5a00b5ccc8 before 06f27e6d7bf0abf54488259ef36bbf0e1fccb35c; from eab03c23c2a162085b13200d7942fc5a00b5ccc8 before 1560d1f6eb6b398bddd80c16676776c0325fe5fe; from 6.6.4 before 6.6.30; 6.7 (not affected: before 6.7; from 6.6.30 up to 6.6.*; from 6.8.9 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.6.4 before 6.6.30; from 6.7 before 6.8.9; 6.9

## References

- <https://git.kernel.org/stable/c/470d347b14b0ecffa9b39cf8f644fa2351db3efb> (patch)
- <https://git.kernel.org/stable/c/06f27e6d7bf0abf54488259ef36bbf0e1fccb35c> (patch)
- <https://git.kernel.org/stable/c/1560d1f6eb6b398bddd80c16676776c0325fe5fe> (patch)

## Sources

- CVE List: [CVE-2024-35985](https://www.cve.org/CVERecord?id=CVE-2024-35985), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-35985](https://nvd.nist.gov/vuln/detail/CVE-2024-35985), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35985 · Whole record: https://cve.day/CVE-2024-35985.json · Rebuilt by cve.day 2026-11-25T22:58:40.653Z
