Menu

Star on GitHub · 3.2k

CVE-2024-26885

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix DEVMAP_HASH overflow check on 32-bit arches The devmap code allocates a number hash buckets equal to the next power of…

Published Apr 17, 2024CWE-119EPSS 0.25%

Overview

CVE-2024-26885 is a high-severity vulnerability. It was published on April 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

bpf: Fix DEVMAP_HASH overflow check on 32-bit arches

The devmap code allocates a number hash buckets equal to the next power

of two of the max_entries value provided when creating the map. When

rounding up to the next power of two, the 32-bit variable storing the

number of buckets can overflow, and the code checks for overflow by

checking if the truncated 32-bit value is equal to 0. However, on 32-bit

arches the rounding up itself can overflow mid-way through, because it

ends up doing a left-shift of 32 bits on an unsigned long value. If the

size of an unsigned long is four bytes, this is undefined behaviour, so

there is no guarantee that we'll end up with a nice and tidy 0-value at

the end.

Syzbot managed to turn this into a crash on arm32 by creating a

DEVMAP_HASH with max_entries > 0x80000000 and then trying to update it.

Fix this by moving the overflow check to before the rounding up

operation.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-26885?

CVE-2024-26885 is a high-severity vulnerability. It was published on April 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-26885?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26885?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26885?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26885 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all