CVE-2024-35985
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
20/05/2024
Last modified:
16/01/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()<br />
<br />
It was possible to have pick_eevdf() return NULL, which then causes a<br />
NULL-deref. This turned out to be due to entity_eligible() returning<br />
falsely negative because of a s64 multiplcation overflow.<br />
<br />
Specifically, reweight_eevdf() computes the vlag without considering<br />
the limit placed upon vlag as update_entity_lag() does, and then the<br />
scaling multiplication (remember that weight is 20bit fixed point) can<br />
overflow. This then leads to the new vruntime being weird which then<br />
causes the above entity_eligible() to go side-ways and claim nothing<br />
is eligible.<br />
<br />
Thus limit the range of vlag accordingly.<br />
<br />
All this was quite rare, but fatal when it does happen.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.4 (including) | 6.6.30 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.8.9 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/06f27e6d7bf0abf54488259ef36bbf0e1fccb35c
- https://git.kernel.org/stable/c/1560d1f6eb6b398bddd80c16676776c0325fe5fe
- https://git.kernel.org/stable/c/470d347b14b0ecffa9b39cf8f644fa2351db3efb
- https://git.kernel.org/stable/c/06f27e6d7bf0abf54488259ef36bbf0e1fccb35c
- https://git.kernel.org/stable/c/1560d1f6eb6b398bddd80c16676776c0325fe5fe
- https://git.kernel.org/stable/c/470d347b14b0ecffa9b39cf8f644fa2351db3efb



