Menu

Star on GitHub · 3.2k

CVE-2024-40899

7.8 · HIGH

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 issui…

Published Jul 12, 2024CWE-416EPSS 0.28%

Overview

CVE-2024-40899 is a high-severity vulnerability. 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, 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-40899?

CVE-2024-40899 is a high-severity vulnerability. 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, 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-40899?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-40899 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