CVE-2024-35905: bpf: Protect against int overflow for stack access size

Published May 19, 2024
·
Updated

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

bpf: Protect against int overflow for stack access size

The Linux kernel CVE team has assigned CVE-2024-35905 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051954-CVE-2024-35905-d079@gregkh/T

Other sources

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

bpf: Protect against int overflow for stack access size

This patch re-introduces protection against the size of access to stack memory being negative; the access size can appear negative as a result of overflowing its signed int representation. This should not actually happen, as there are other protections along the way, but we should protect against it anyway. One code path was missing such protections (fixed in the previous patch in the series), causing out-of-bounds array accesses in checkstackrangeinitialized(). This patch causes the verification of a program with such a non-sensical access size to fail.

This check used to exist in a more indirect way, but was inadvertendly removed in a833a17aeac7.

NVD

Affected Software

14 affected componentsFixes available
redhat/kernel<5.10.215
5.10.215
redhat/kernel<5.15.154
5.15.154
redhat/kernel<6.1.85
6.1.85
redhat/kernel<6.6.26
6.6.26
redhat/kernel<6.8.5
6.8.5
redhat/kernel<6.9
6.9
Linux Linux kernel>=5.10.209<5.10.215
Linux Linux kernel>=5.15.148<5.15.154
Linux Linux kernel>=6.1.75<6.1.85
Linux Linux kernel>=6.6.14<6.6.26
Linux Linux kernel>=6.7.2<6.8.5
Linux Linux kernel=6.9-rc1
Debian Debian Linux=10.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10.215
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.15.154
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1.85
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.26
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8.5
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.9

Event History

May 19, 2024
CVE Published
via MITRE·08:34 AM
Data Sourced
via MITRE·08:34 AM
DescriptionSeverity
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 20, 2024
Data Sourced
via Red Hat·10:42 AM
DescriptionSeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:46 PM
Description
Jan 3, 2025
Data Sourced
via Ubuntu·08:23 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-35905?

CVE-2024-35905 has been classified with a high severity due to the potential for integer overflow leading to stack corruption.

2

How do I fix CVE-2024-35905?

To fix CVE-2024-35905, you need to upgrade the kernel to version 5.10.215, 5.15.154, 6.1.85, 6.6.26, 6.8.5, or 6.9.

3

Which systems are affected by CVE-2024-35905?

CVE-2024-35905 affects multiple versions of the Linux kernel, specifically those below the indicated patched versions.

4

What vulnerabilities does CVE-2024-35905 address?

CVE-2024-35905 addresses an integer overflow vulnerability that can occur during stack access size operations in the Linux kernel.

5

Is there a workaround for CVE-2024-35905?

There is no official workaround for CVE-2024-35905; patching is strongly recommended to mitigate any security risks.

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