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-40955

5.5 · MEDIUM
Published Jul 12, 2024 linux CWE-787 EPSS 0.24% (15th pctl)

Overview

CVE-2024-40955 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

ext4: fix slab-out-of-bounds in ext4_mb_find_good_group_avg_frag_lists()

We can trigger a slab-out-of-bounds with the following commands:

mkfs.ext4 -F /dev/$disk 10G

mount /dev/$disk /tmp/test

echo 2147483647 > /sys/fs/ext4/$disk/mb_group_prealloc

echo test > /tmp/test/file && sync

==================================================================

BUG: KASAN: slab-out-of-bounds in ext4_mb_find_good_group_avg_frag_lists+0x8a/0x200 [ext4]

Read of size 8 at addr ffff888121b9d0f0 by task kworker/u2:0/11

CPU: 0 PID: 11 Comm: kworker/u2:0 Tainted: GL 6.7.0-next-20240118 #521

Call Trace:

dump_stack_lvl+0x2c/0x50

kasan_report+0xb6/0xf0

ext4_mb_find_good_group_avg_frag_lists+0x8a/0x200 [ext4]

ext4_mb_regular_allocator+0x19e9/0x2370 [ext4]

ext4_mb_new_blocks+0x88a/0x1370 [ext4]

ext4_ext_map_blocks+0x14f7/0x2390 [ext4]

ext4_map_blocks+0x569/0xea0 [ext4]

ext4_do_writepages+0x10f6/0x1bc0 [ext4]

[...]

===

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 >= 6.5, < 6.6.36 Affected

Frequently Asked Questions

What is CVE-2024-40955?

CVE-2024-40955 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-40955?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-40955?

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-40955?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-40955 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.