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

Published May 20, 2024
·
Updated

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

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

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

Specifically, reweighteevdf() computes the vlag without considering the limit placed upon vlag as updateentitylag() 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 entityeligible() 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.

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=6.6.4<6.6.30
Linux Linux kernel>=6.7<6.8.9
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4
Linux Linux kernel=6.9-rc5
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

May 20, 2024
CVE Published
via MITRE·09:47 AM
Data Sourced
via MITRE·09:47 AM
Description
Jul 11, 2024
Data Sourced
via Launchpad·07:49 PM
Description
Jan 23, 2025
Data Sourced
via Ubuntu·08:48 PM
RemedyDescriptionSeverityAffected Software
Apr 27, 2025
Data Sourced
via Debian·12:26 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-35985?

CVE-2024-35985 has a medium severity rating due to the potential for a NULL dereference leading to denial of service.

2

How do I fix CVE-2024-35985?

To fix CVE-2024-35985, update the kernel to a patched version such as 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.

3

Which Linux kernel versions are affected by CVE-2024-35985?

CVE-2024-35985 affects Linux kernel versions from 6.6.4 up to 6.6.30, as well as versions prior to 6.9-rc1.

4

What is the nature of the vulnerability in CVE-2024-35985?

CVE-2024-35985 is a vulnerability that allows for a NULL dereference when pick_eevdf() returns NULL due to an out-of-bounds access.

5

Is there a workaround for CVE-2024-35985 while waiting for a patch?

There is no documented workaround for CVE-2024-35985, so it is recommended to apply the patch as soon as possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203