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

7.8 · HIGH
Published Jul 12, 2024 linux CWE-416 EPSS 0.28% (20th pctl)

Overview

CVE-2024-40899 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 12, 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:

cachefiles: fix slab-use-after-free in cachefiles_ondemand_get_fd()

We got the following issue in a fuzz test of randomly issuing the restore

command:

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

BUG: KASAN: slab-use-after-free in cachefiles_ondemand_daemon_read+0x609/0xab0

Write of size 4 at addr ffff888109164a80 by task ondemand-04-dae/4962

CPU: 11 PID: 4962 Comm: ondemand-04-dae Not tainted 6.8.0-rc7-dirty #542

Call Trace:

kasan_report+0x94/0xc0

cachefiles_ondemand_daemon_read+0x609/0xab0

vfs_read+0x169/0xb50

ksys_read+0xf5/0x1e0

Allocated by task 626:

__kmalloc+0x1df/0x4b0

cachefiles_ondemand_send_req+0x24d/0x690

cachefiles_create_tmpfile+0x249/0xb30

cachefiles_create_file+0x6f/0x140

cachefiles_look_up_object+0x29c/0xa60

cachefiles_lookup_cookie+0x37d/0xca0

fscache_cookie_state_machine+0x43c/0x1230

[...]

Freed by task 626:

kfree+0xf1/0x2c0

cachefiles_ondemand_send_req+0x568

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.8, < 6.9.6 Affected

Frequently Asked Questions

What is CVE-2024-40899?

CVE-2024-40899 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-40899?

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

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

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