All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-35985

Probability of exploitation in the next 30 days: 0.23%

FIRST EPSS · 2026-11-20

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.

A vulnerability was found in the Linux kernel's sched/eevdf code, specifically in the reweight_eevdf() function. The issue arises when the vlag variable overflows due to improper scaling in the computation, which leads to incorrect behavior in the vruntime. This causes a NULL dereference in the entity_eligible() function, potentially resulting in system crashes.