sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.6.30, 6.8.9
- CVEs
- CVE-2024-35985
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 08:07 UTC · Revision 1
Source evidence
sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()
core-osv · Original sourcePublished 20 May 2024, 09:47 UTC
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.
osv:CVE-2024-35985
Kernel
Fixed versions: 6.6.30, 6.8.9
Complete source record
{
"id": "f6eea421e887e76511e14227421ceed6f55615a558e199e96c5a5c64091d8c10",
"url": "https://osv.dev/vulnerability/CVE-2024-35985",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()",
"summary": "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.",
"evidence": "osv:CVE-2024-35985",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.30",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-35985",
"aliases": [
"CVE-2024-35985"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "14204acc09f652169baed1141c671429047b1313"
},
{
"fixed": "470d347b14b0ecffa9b39cf8f644fa2351db3efb"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "eab03c23c2a162085b13200d7942fc5a00b5ccc8"
},
{
"fixed": "06f27e6d7bf0abf54488259ef36bbf0e1fccb35c"
},
{
"fixed": "1560d1f6eb6b398bddd80c16676776c0325fe5fe"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.6.4"
},
{
"fixed": "6.6.30"
}
]
}
],
"versions": [
"v6.6.29",
"v6.6.28",
"v6.6.27",
"v6.6.26",
"v6.6.25",
"v6.6.24",
"v6.6.23",
"v6.6.22",
"v6.6.21",
"v6.6.20",
"v6.6.19",
"v6.6.18",
"v6.6.17",
"v6.6.16",
"v6.6.15",
"v6.6.14",
"v6.6.13",
"v6.6.12",
"v6.6.11",
"v6.6.10",
"v6.6.9",
"v6.6.8",
"v6.6.7",
"v6.6.6",
"v6.6.5",
"v6.6.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35985.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.6.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.8.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35985.json"
}
}
],
"modified": "2026-10-28T02:30:27.490303495Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/06f27e6d7bf0abf54488259ef36bbf0e1fccb35c",
"https://git.kernel.org/stable/c/1560d1f6eb6b398bddd80c16676776c0325fe5fe",
"https://git.kernel.org/stable/c/470d347b14b0ecffa9b39cf8f644fa2351db3efb",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35985.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-35985",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35985.json"
}
},
"related_cves": [
{
"value": "CVE-2024-35985",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 493632,
"published_at": "2024-05-20T09:47:52.389+00:00"
}