Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-26885

7.8 · HIGH
Published Apr 17, 2024 linux CWE-119 EPSS 0.25% (16th pctl)

Overview

CVE-2024-26885 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.4, < 5.10.214 Affected

Frequently Asked Questions

What is CVE-2024-26885?

CVE-2024-26885 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-26885 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.