🛡️ CVE-2024-39510 on Ubuntu — linux

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

In the Linux kernel, the following vulnerability has been resolved: cachefiles: fix slab-use-after-free in cachefiles_ondemand_daemon_read() 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+0xb41/0xb60 Read of size 8 at addr ffff888122e84088 by task ondemand-04-dae/963 CPU: 13 PID: 963 Comm: ondemand-04-dae Not tainted 6.8.0-dirty #564 Call Trace: kasan_report+0x93/0xc0 cachefiles_ondemand_daemon_read+0xb41/0xb60 vfs_read+0x169/0xb50 ksys_read+0xf5/0x1e0 Allocated by task 116: kmem_cache_alloc+0x140/0x3a0 cachefiles_lookup_cookie+0x140/0xcd0 fscache_cookie_state_machine+0x43c/0x1230 [...] Freed by task 792: kmem_cache_free+0xfe/0x390 cachefiles_put_object+0x241/0x480 fscache_cookie_state_machine+0x5c8/0x1230 [...] ================================================================== Following is the process that triggers the issue: mount | daemon_thread1 | daemon_thread2 ------------------------------------------------------------ cachefiles_withdraw_cookie cachefiles_ondemand_clean_object(object) cachefiles_ondemand_send_req REQ_A = kzalloc(sizeof(*req) + data_len) wait_for_completion(&REQ_A->done) cachefiles_daemon_read cachefiles_ondemand_daemon_read REQ_A = cachefiles_ondemand_select_req msg->object_id = req->object->ondemand->ondemand_id ------ restore ------ cachefiles_ondemand_restore xas_for_each(&xas, req, ULONG_MAX) xas_set_mark(&xas, CACHEFILES_REQ_NEW) cachefiles_daemon_read cachefiles_ondemand_daemon_read REQ_A = cachefiles_ondemand_select_req copy_to_user(_buffer, msg, n) xa_erase(&cache->reqs, id) complete(&REQ_A->done) ------ close(fd) ------ cachefiles_ondemand_fd_release cachefiles_put_object cachefiles_put_object kmem_cache_free(cachefiles_object_jar, object) REQ_A->object->ondemand->ondemand_id // object UAF !!! When we see the request within xa_lock, req->object must not have been freed yet, so grab the reference count of object before xa_unlock to avoid the above issue.

Distribution advisory

This page covers CVE-2024-39510 as tracked by Ubuntu, for the package linux. The fix is available in version 6.8.0-44.44; earlier versions remain affected.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Affected software and timeline

Affected software: linux (fixed in 6.8.0-44.44), linux-allwinner-5.19, linux-aws (fixed in 6.8.0-1015.16), linux-aws-5.0, linux-aws-5.11, linux-aws-5.13, linux-aws-5.19, linux-aws-5.3, linux-aws-5.8, linux-aws-6.2, linux-aws-6.5, linux-aws-6.8 (fixed in 6.8.0-1015.16~22.04.1), linux-azure (fixed in 6.8.0-1014.16), linux-azure-5.11, linux-azure-5.13, linux-azure-5.19, linux-azure-5.3, linux-azure-5.8, linux-azure-6.2, linux-azure-6.5, linux-azure-6.8 (fixed in 6.8.0-1014.16~22.04.1), linux-azure-edge, linux-azure-fde, linux-azure-fde-5.19, linux-azure-fde-6.2, linux-gcp (fixed in 6.8.0-1014.16), linux-gcp-5.11, linux-gcp-5.13, linux-gcp-5.19, linux-gcp-5.3, linux-gcp-5.8, linux-gcp-6.2, linux-gcp-6.5, linux-gcp-6.8 (fixed in 6.8.0-1014.16~22.04.1), linux-gke (fixed in 6.8.0-1010.13), linux-gke-4.15, linux-gke-5.15, linux-gke-5.4, linux-gkeop-5.4, linux-hwe, linux-hwe-5.11, linux-hwe-5.13, linux-hwe-5.19, linux-hwe-5.8, linux-hwe-6.2, linux-hwe-6.5, linux-hwe-6.8 (fixed in 6.8.0-45.45~22.04.1), linux-hwe-edge, linux-ibm (fixed in 6.8.0-1012.12), linux-intel-5.13, linux-intel-iot-realtime, linux-lowlatency (fixed in 6.8.0-44.44.1), linux-lowlatency-hwe-5.19, linux-lowlatency-hwe-6.2, linux-lowlatency-hwe-6.5, linux-lowlatency-hwe-6.8 (fixed in 6.8.0-44.44.1~22.04.1), linux-nvidia (fixed in 6.8.0-1013.14), linux-nvidia-6.2, linux-nvidia-6.8 (fixed in 6.8.0-1013.14~22.04.1), linux-nvidia-lowlatency (fixed in 6.8.0-1013.14.1), linux-oem, linux-oem-5.10, linux-oem-5.13, linux-oem-5.14, linux-oem-5.17, linux-oem-5.6, linux-oem-6.0, linux-oem-6.1, linux-oem-6.5, linux-oem-6.8 (fixed in 6.8.0-1012.12), linux-oracle (fixed in 6.8.0-1012.12), linux-oracle-5.0, linux-oracle-5.11, linux-oracle-5.13, linux-oracle-5.3, linux-oracle-5.8, linux-oracle-6.5, linux-oracle-6.8 (fixed in 6.8.0-1012.12~22.04.1), linux-raspi (fixed in 6.8.0-1011.12), linux-raspi-realtime (fixed in 6.8.0-2010.10), linux-raspi2, linux-realtime (fixed in 6.8.1-1008.8), linux-riscv (fixed in 6.8.0-44.44.1), linux-riscv-5.11, linux-riscv-5.19, linux-riscv-5.8, linux-riscv-6.5, linux-riscv-6.8 (fixed in 6.8.0-44.44.1~22.04.1), linux-starfive-5.19, linux-starfive-6.2 and linux-starfive-6.5. Published on 12 July 2024 and last revised on 22 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

CVE-2024-39510 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2024-07-12
Updated 2026-08-11
Modified 2026-04-22
Fix URL N/A

Affected Packages

Software From version Fixed in
linux 6.8.0-44.44
linux-allwinner-5.19
linux-aws 6.8.0-1015.16
linux-aws-5.0
linux-aws-5.11
linux-aws-5.13
linux-aws-5.19
linux-aws-5.3
linux-aws-5.8
linux-aws-6.2
linux-aws-6.5
linux-aws-6.8 6.8.0-1015.16~22.04.1
linux-azure 6.8.0-1014.16
linux-azure-5.11
linux-azure-5.13
linux-azure-5.19
linux-azure-5.3
linux-azure-5.8
linux-azure-6.2
linux-azure-6.5
linux-azure-6.8 6.8.0-1014.16~22.04.1
linux-azure-edge
linux-azure-fde
linux-azure-fde-5.19
linux-azure-fde-6.2
linux-gcp 6.8.0-1014.16
linux-gcp-5.11
linux-gcp-5.13
linux-gcp-5.19
linux-gcp-5.3
linux-gcp-5.8
linux-gcp-6.2
linux-gcp-6.5
linux-gcp-6.8 6.8.0-1014.16~22.04.1
linux-gke 6.8.0-1010.13
linux-gke-4.15
linux-gke-5.15
linux-gke-5.4
linux-gkeop-5.4
linux-hwe
linux-hwe-5.11
linux-hwe-5.13
linux-hwe-5.19
linux-hwe-5.8
linux-hwe-6.2
linux-hwe-6.5
linux-hwe-6.8 6.8.0-45.45~22.04.1
linux-hwe-edge
linux-ibm 6.8.0-1012.12
linux-intel-5.13
linux-intel-iot-realtime
linux-lowlatency 6.8.0-44.44.1
linux-lowlatency-hwe-5.19
linux-lowlatency-hwe-6.2
linux-lowlatency-hwe-6.5
linux-lowlatency-hwe-6.8 6.8.0-44.44.1~22.04.1
linux-nvidia 6.8.0-1013.14
linux-nvidia-6.2
linux-nvidia-6.8 6.8.0-1013.14~22.04.1
linux-nvidia-lowlatency 6.8.0-1013.14.1
linux-oem
linux-oem-5.10
linux-oem-5.13
linux-oem-5.14
linux-oem-5.17
linux-oem-5.6
linux-oem-6.0
linux-oem-6.1
linux-oem-6.5
linux-oem-6.8 6.8.0-1012.12
linux-oracle 6.8.0-1012.12
linux-oracle-5.0
linux-oracle-5.11
linux-oracle-5.13
linux-oracle-5.3
linux-oracle-5.8
linux-oracle-6.5
linux-oracle-6.8 6.8.0-1012.12~22.04.1
linux-raspi 6.8.0-1011.12
linux-raspi-realtime 6.8.0-2010.10
linux-raspi2
linux-realtime 6.8.1-1008.8
linux-riscv 6.8.0-44.44.1
linux-riscv-5.11
linux-riscv-5.19
linux-riscv-5.8
linux-riscv-6.5
linux-riscv-6.8 6.8.0-44.44.1~22.04.1
linux-starfive-5.19
linux-starfive-6.2
linux-starfive-6.5

References

Similar Threats

Site Security Check

Is linux part of your stack?

UBUNTU-CVE-2024-39510 is rated CVSS 7.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

More UBUNTU CVE 2024 advisories

Part of UBUNTU CVE 2024 in the advisory index.