Vulnerabilities

With the aim of informing, warning and helping professionals with the latest security vulnerabilities in technology systems, we have made a database available for users interested in this information, which is in Spanish and includes all of the latest documented and recognised vulnerabilities.

This repository, with over 75,000 registers, is based on the information from the NVD (National Vulnerability Database) – by virtue of a partnership agreement – through which INCIBE translates the included information into Spanish.

On occasions this list will show vulnerabilities that have still not been translated, as they are added while the INCIBE team is still carrying out the translation process. The CVE  (Common Vulnerabilities and Exposures) Standard for Information Security Vulnerability Names is used with the aim to support the exchange of information between different tools and databases.

All vulnerabilities collected are linked to different information sources, as well as available patches or solutions provided by manufacturers and developers. It is possible to carry out advanced searches, as there is the option to select different criteria to narrow down the results, some examples being vulnerability types, manufacturers and impact levels, among others.

Through RSS feeds or Newsletters we can be informed daily about the latest vulnerabilities added to the repository. Below there is a list, updated daily, where you can discover the latest vulnerabilities.

CVE-2024-40914

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> mm/huge_memory: don&amp;#39;t unpoison huge_zero_folio<br /> <br /> When I did memory failure tests recently, below panic occurs:<br /> <br /> kernel BUG at include/linux/mm.h:1135!<br /> invalid opcode: 0000 [#1] PREEMPT SMP NOPTI<br /> CPU: 9 PID: 137 Comm: kswapd1 Not tainted 6.9.0-rc4-00491-gd5ce28f156fe-dirty #14<br /> RIP: 0010:shrink_huge_zero_page_scan+0x168/0x1a0<br /> RSP: 0018:ffff9933c6c57bd0 EFLAGS: 00000246<br /> RAX: 000000000000003e RBX: 0000000000000000 RCX: ffff88f61fc5c9c8<br /> RDX: 0000000000000000 RSI: 0000000000000027 RDI: ffff88f61fc5c9c0<br /> RBP: ffffcd7c446b0000 R08: ffffffff9a9405f0 R09: 0000000000005492<br /> R10: 00000000000030ea R11: ffffffff9a9405f0 R12: 0000000000000000<br /> R13: 0000000000000000 R14: 0000000000000000 R15: ffff88e703c4ac00<br /> FS: 0000000000000000(0000) GS:ffff88f61fc40000(0000) knlGS:0000000000000000<br /> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br /> CR2: 000055f4da6e9878 CR3: 0000000c71048000 CR4: 00000000000006f0<br /> Call Trace:<br /> <br /> do_shrink_slab+0x14f/0x6a0<br /> shrink_slab+0xca/0x8c0<br /> shrink_node+0x2d0/0x7d0<br /> balance_pgdat+0x33a/0x720<br /> kswapd+0x1f3/0x410<br /> kthread+0xd5/0x100<br /> ret_from_fork+0x2f/0x50<br /> ret_from_fork_asm+0x1a/0x30<br /> <br /> Modules linked in: mce_inject hwpoison_inject<br /> ---[ end trace 0000000000000000 ]---<br /> RIP: 0010:shrink_huge_zero_page_scan+0x168/0x1a0<br /> RSP: 0018:ffff9933c6c57bd0 EFLAGS: 00000246<br /> RAX: 000000000000003e RBX: 0000000000000000 RCX: ffff88f61fc5c9c8<br /> RDX: 0000000000000000 RSI: 0000000000000027 RDI: ffff88f61fc5c9c0<br /> RBP: ffffcd7c446b0000 R08: ffffffff9a9405f0 R09: 0000000000005492<br /> R10: 00000000000030ea R11: ffffffff9a9405f0 R12: 0000000000000000<br /> R13: 0000000000000000 R14: 0000000000000000 R15: ffff88e703c4ac00<br /> FS: 0000000000000000(0000) GS:ffff88f61fc40000(0000) knlGS:0000000000000000<br /> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br /> CR2: 000055f4da6e9878 CR3: 0000000c71048000 CR4: 00000000000006f0<br /> <br /> The root cause is that HWPoison flag will be set for huge_zero_folio<br /> without increasing the folio refcnt. But then unpoison_memory() will<br /> decrease the folio refcnt unexpectedly as it appears like a successfully<br /> hwpoisoned folio leading to VM_BUG_ON_PAGE(page_ref_count(page) == 0) when<br /> releasing huge_zero_folio.<br /> <br /> Skip unpoisoning huge_zero_folio in unpoison_memory() to fix this issue. <br /> We&amp;#39;re not prepared to unpoison huge_zero_folio yet.
Severity CVSS v4.0: Pending analysis
Last modification:
03/11/2025

CVE-2024-40915

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context<br /> <br /> __kernel_map_pages() is a debug function which clears the valid bit in page<br /> table entry for deallocated pages to detect illegal memory accesses to<br /> freed pages.<br /> <br /> This function set/clear the valid bit using __set_memory(). __set_memory()<br /> acquires init_mm&amp;#39;s semaphore, and this operation may sleep. This is<br /> problematic, because __kernel_map_pages() can be called in atomic context,<br /> and thus is illegal to sleep. An example warning that this causes:<br /> <br /> BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1578<br /> in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 2, name: kthreadd<br /> preempt_count: 2, expected: 0<br /> CPU: 0 PID: 2 Comm: kthreadd Not tainted 6.9.0-g1d4c6d784ef6 #37<br /> Hardware name: riscv-virtio,qemu (DT)<br /> Call Trace:<br /> [] dump_backtrace+0x1c/0x24<br /> [] show_stack+0x2c/0x38<br /> [] dump_stack_lvl+0x5a/0x72<br /> [] dump_stack+0x14/0x1c<br /> [] __might_resched+0x104/0x10e<br /> [] __might_sleep+0x3e/0x62<br /> [] down_write+0x20/0x72<br /> [] __set_memory+0x82/0x2fa<br /> [] __kernel_map_pages+0x5a/0xd4<br /> [] __alloc_pages_bulk+0x3b2/0x43a<br /> [] __vmalloc_node_range+0x196/0x6ba<br /> [] copy_process+0x72c/0x17ec<br /> [] kernel_clone+0x60/0x2fe<br /> [] kernel_thread+0x82/0xa0<br /> [] kthreadd+0x14a/0x1be<br /> [] ret_from_fork+0xe/0x1c<br /> <br /> Rewrite this function with apply_to_existing_page_range(). It is fine to<br /> not have any locking, because __kernel_map_pages() works with pages being<br /> allocated/deallocated and those pages are not changed by anyone else in the<br /> meantime.
Severity CVSS v4.0: Pending analysis
Last modification:
03/11/2025

CVE-2024-40916

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> drm/exynos: hdmi: report safe 640x480 mode as a fallback when no EDID found<br /> <br /> When reading EDID fails and driver reports no modes available, the DRM<br /> core adds an artificial 1024x786 mode to the connector. Unfortunately<br /> some variants of the Exynos HDMI (like the one in Exynos4 SoCs) are not<br /> able to drive such mode, so report a safe 640x480 mode instead of nothing<br /> in case of the EDID reading failure.<br /> <br /> This fixes the following issue observed on Trats2 board since commit<br /> 13d5b040363c ("drm/exynos: do not return negative values from .get_modes()"):<br /> <br /> [drm] Exynos DRM: using 11c00000.fimd device for DMA mapping operations<br /> exynos-drm exynos-drm: bound 11c00000.fimd (ops fimd_component_ops)<br /> exynos-drm exynos-drm: bound 12c10000.mixer (ops mixer_component_ops)<br /> exynos-dsi 11c80000.dsi: [drm:samsung_dsim_host_attach] Attached s6e8aa0 device (lanes:4 bpp:24 mode-flags:0x10b)<br /> exynos-drm exynos-drm: bound 11c80000.dsi (ops exynos_dsi_component_ops)<br /> exynos-drm exynos-drm: bound 12d00000.hdmi (ops hdmi_component_ops)<br /> [drm] Initialized exynos 1.1.0 20180330 for exynos-drm on minor 1<br /> exynos-hdmi 12d00000.hdmi: [drm:hdmiphy_enable.part.0] *ERROR* PLL could not reach steady state<br /> panel-samsung-s6e8aa0 11c80000.dsi.0: ID: 0xa2, 0x20, 0x8c<br /> exynos-mixer 12c10000.mixer: timeout waiting for VSYNC<br /> ------------[ cut here ]------------<br /> WARNING: CPU: 1 PID: 11 at drivers/gpu/drm/drm_atomic_helper.c:1682 drm_atomic_helper_wait_for_vblanks.part.0+0x2b0/0x2b8<br /> [CRTC:70:crtc-1] vblank wait timed out<br /> Modules linked in:<br /> CPU: 1 PID: 11 Comm: kworker/u16:0 Not tainted 6.9.0-rc5-next-20240424 #14913<br /> Hardware name: Samsung Exynos (Flattened Device Tree)<br /> Workqueue: events_unbound deferred_probe_work_func<br /> Call trace:<br /> unwind_backtrace from show_stack+0x10/0x14<br /> show_stack from dump_stack_lvl+0x68/0x88<br /> dump_stack_lvl from __warn+0x7c/0x1c4<br /> __warn from warn_slowpath_fmt+0x11c/0x1a8<br /> warn_slowpath_fmt from drm_atomic_helper_wait_for_vblanks.part.0+0x2b0/0x2b8<br /> drm_atomic_helper_wait_for_vblanks.part.0 from drm_atomic_helper_commit_tail_rpm+0x7c/0x8c<br /> drm_atomic_helper_commit_tail_rpm from commit_tail+0x9c/0x184<br /> commit_tail from drm_atomic_helper_commit+0x168/0x190<br /> drm_atomic_helper_commit from drm_atomic_commit+0xb4/0xe0<br /> drm_atomic_commit from drm_client_modeset_commit_atomic+0x23c/0x27c<br /> drm_client_modeset_commit_atomic from drm_client_modeset_commit_locked+0x60/0x1cc<br /> drm_client_modeset_commit_locked from drm_client_modeset_commit+0x24/0x40<br /> drm_client_modeset_commit from __drm_fb_helper_restore_fbdev_mode_unlocked+0x9c/0xc4<br /> __drm_fb_helper_restore_fbdev_mode_unlocked from drm_fb_helper_set_par+0x2c/0x3c<br /> drm_fb_helper_set_par from fbcon_init+0x3d8/0x550<br /> fbcon_init from visual_init+0xc0/0x108<br /> visual_init from do_bind_con_driver+0x1b8/0x3a4<br /> do_bind_con_driver from do_take_over_console+0x140/0x1ec<br /> do_take_over_console from do_fbcon_takeover+0x70/0xd0<br /> do_fbcon_takeover from fbcon_fb_registered+0x19c/0x1ac<br /> fbcon_fb_registered from register_framebuffer+0x190/0x21c<br /> register_framebuffer from __drm_fb_helper_initial_config_and_unlock+0x350/0x574<br /> __drm_fb_helper_initial_config_and_unlock from exynos_drm_fbdev_client_hotplug+0x6c/0xb0<br /> exynos_drm_fbdev_client_hotplug from drm_client_register+0x58/0x94<br /> drm_client_register from exynos_drm_bind+0x160/0x190<br /> exynos_drm_bind from try_to_bring_up_aggregate_device+0x200/0x2d8<br /> try_to_bring_up_aggregate_device from __component_add+0xb0/0x170<br /> __component_add from mixer_probe+0x74/0xcc<br /> mixer_probe from platform_probe+0x5c/0xb8<br /> platform_probe from really_probe+0xe0/0x3d8<br /> really_probe from __driver_probe_device+0x9c/0x1e4<br /> __driver_probe_device from driver_probe_device+0x30/0xc0<br /> driver_probe_device from __device_attach_driver+0xa8/0x120<br /> __device_attach_driver from bus_for_each_drv+0x80/0xcc<br /> bus_for_each_drv from __device_attach+0xac/0x1fc<br /> __device_attach from bus_probe_device+0x8c/0x90<br /> bus_probe_device from deferred_probe_work_func+0<br /> ---truncated---
Severity CVSS v4.0: Pending analysis
Last modification:
15/10/2026

CVE-2024-40917

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> memblock: make memblock_set_node() also warn about use of MAX_NUMNODES<br /> <br /> On an (old) x86 system with SRAT just covering space above 4Gb:<br /> <br /> ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0xfffffffff] hotplug<br /> <br /> the commit referenced below leads to this NUMA configuration no longer<br /> being refused by a CONFIG_NUMA=y kernel (previously<br /> <br /> NUMA: nodes only cover 6144MB of your 8185MB e820 RAM. Not used.<br /> No NUMA configuration found<br /> Faking a node at [mem 0x0000000000000000-0x000000027fffffff]<br /> <br /> was seen in the log directly after the message quoted above), because of<br /> memblock_validate_numa_coverage() checking for NUMA_NO_NODE (only). This<br /> in turn led to memblock_alloc_range_nid()&amp;#39;s warning about MAX_NUMNODES<br /> triggering, followed by a NULL deref in memmap_init() when trying to<br /> access node 64&amp;#39;s (NODE_SHIFT=6) node data.<br /> <br /> To compensate said change, make memblock_set_node() warn on and adjust<br /> a passed in value of MAX_NUMNODES, just like various other functions<br /> already do.
Severity CVSS v4.0: Pending analysis
Last modification:
03/10/2025

CVE-2024-40918

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> parisc: Try to fix random segmentation faults in package builds<br /> <br /> PA-RISC systems with PA8800 and PA8900 processors have had problems<br /> with random segmentation faults for many years. Systems with earlier<br /> processors are much more stable.<br /> <br /> Systems with PA8800 and PA8900 processors have a large L2 cache which<br /> needs per page flushing for decent performance when a large range is<br /> flushed. The combined cache in these systems is also more sensitive to<br /> non-equivalent aliases than the caches in earlier systems.<br /> <br /> The majority of random segmentation faults that I have looked at<br /> appear to be memory corruption in memory allocated using mmap and<br /> malloc.<br /> <br /> My first attempt at fixing the random faults didn&amp;#39;t work. On<br /> reviewing the cache code, I realized that there were two issues<br /> which the existing code didn&amp;#39;t handle correctly. Both relate<br /> to cache move-in. Another issue is that the present bit in PTEs<br /> is racy.<br /> <br /> 1) PA-RISC caches have a mind of their own and they can speculatively<br /> load data and instructions for a page as long as there is a entry in<br /> the TLB for the page which allows move-in. TLBs are local to each<br /> CPU. Thus, the TLB entry for a page must be purged before flushing<br /> the page. This is particularly important on SMP systems.<br /> <br /> In some of the flush routines, the flush routine would be called<br /> and then the TLB entry would be purged. This was because the flush<br /> routine needed the TLB entry to do the flush.<br /> <br /> 2) My initial approach to trying the fix the random faults was to<br /> try and use flush_cache_page_if_present for all flush operations.<br /> This actually made things worse and led to a couple of hardware<br /> lockups. It finally dawned on me that some lines weren&amp;#39;t being<br /> flushed because the pte check code was racy. This resulted in<br /> random inequivalent mappings to physical pages.<br /> <br /> The __flush_cache_page tmpalias flush sets up its own TLB entry<br /> and it doesn&amp;#39;t need the existing TLB entry. As long as we can find<br /> the pte pointer for the vm page, we can get the pfn and physical<br /> address of the page. We can also purge the TLB entry for the page<br /> before doing the flush. Further, __flush_cache_page uses a special<br /> TLB entry that inhibits cache move-in.<br /> <br /> When switching page mappings, we need to ensure that lines are<br /> removed from the cache. It is not sufficient to just flush the<br /> lines to memory as they may come back.<br /> <br /> This made it clear that we needed to implement all the required<br /> flush operations using tmpalias routines. This includes flushes<br /> for user and kernel pages.<br /> <br /> After modifying the code to use tmpalias flushes, it became clear<br /> that the random segmentation faults were not fully resolved. The<br /> frequency of faults was worse on systems with a 64 MB L2 (PA8900)<br /> and systems with more CPUs (rp4440).<br /> <br /> The warning that I added to flush_cache_page_if_present to detect<br /> pages that couldn&amp;#39;t be flushed triggered frequently on some systems.<br /> <br /> Helge and I looked at the pages that couldn&amp;#39;t be flushed and found<br /> that the PTE was either cleared or for a swap page. Ignoring pages<br /> that were swapped out seemed okay but pages with cleared PTEs seemed<br /> problematic.<br /> <br /> I looked at routines related to pte_clear and noticed ptep_clear_flush.<br /> The default implementation just flushes the TLB entry. However, it was<br /> obvious that on parisc we need to flush the cache page as well. If<br /> we don&amp;#39;t flush the cache page, stale lines will be left in the cache<br /> and cause random corruption. Once a PTE is cleared, there is no way<br /> to find the physical address associated with the PTE and flush the<br /> associated page at a later time.<br /> <br /> I implemented an updated change with a parisc specific version of<br /> ptep_clear_flush. It fixed the random data corruption on Helge&amp;#39;s rp4440<br /> and rp3440, as well as on my c8000.<br /> <br /> At this point, I realized that I could restore the code where we only<br /> flush in flush_cache_page_if_present if the page has been accessed.<br /> However, for this, we also need to flush the cache when the accessed<br /> bit is cleared in<br /> ---truncated---
Severity CVSS v4.0: Pending analysis
Last modification:
04/08/2026

CVE-2024-40919

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send()<br /> <br /> In case of token is released due to token-&gt;state == BNXT_HWRM_DEFERRED,<br /> released token (set to NULL) is used in log messages. This issue is<br /> expected to be prevented by HWRM_ERR_CODE_PF_UNAVAILABLE error code. But<br /> this error code is returned by recent firmware. So some firmware may not<br /> return it. This may lead to NULL pointer dereference.<br /> Adjust this issue by adding token pointer check.<br /> <br /> Found by Linux Verification Center (linuxtesting.org) with SVACE.
Severity CVSS v4.0: Pending analysis
Last modification:
03/11/2025

CVE-2024-39507

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> net: hns3: fix kernel crash problem in concurrent scenario<br /> <br /> When link status change, the nic driver need to notify the roce<br /> driver to handle this event, but at this time, the roce driver<br /> may uninit, then cause kernel crash.<br /> <br /> To fix the problem, when link status change, need to check<br /> whether the roce registered, and when uninit, need to wait link<br /> update finish.
Severity CVSS v4.0: Pending analysis
Last modification:
04/08/2026

CVE-2024-39508

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> io_uring/io-wq: Use set_bit() and test_bit() at worker-&gt;flags<br /> <br /> Utilize set_bit() and test_bit() on worker-&gt;flags within io_uring/io-wq<br /> to address potential data races.<br /> <br /> The structure io_worker-&gt;flags may be accessed through various data<br /> paths, leading to concurrency issues. When KCSAN is enabled, it reveals<br /> data races occurring in io_worker_handle_work and<br /> io_wq_activate_free_worker functions.<br /> <br /> BUG: KCSAN: data-race in io_worker_handle_work / io_wq_activate_free_worker<br /> write to 0xffff8885c4246404 of 4 bytes by task 49071 on cpu 28:<br /> io_worker_handle_work (io_uring/io-wq.c:434 io_uring/io-wq.c:569)<br /> io_wq_worker (io_uring/io-wq.c:?)<br /> <br /> <br /> read to 0xffff8885c4246404 of 4 bytes by task 49024 on cpu 5:<br /> io_wq_activate_free_worker (io_uring/io-wq.c:? io_uring/io-wq.c:285)<br /> io_wq_enqueue (io_uring/io-wq.c:947)<br /> io_queue_iowq (io_uring/io_uring.c:524)<br /> io_req_task_submit (io_uring/io_uring.c:1511)<br /> io_handle_tw_list (io_uring/io_uring.c:1198)<br /> <br /> <br /> Line numbers against commit 18daea77cca6 ("Merge tag &amp;#39;for-linus&amp;#39; of<br /> git://git.kernel.org/pub/scm/virt/kvm/kvm").<br /> <br /> These races involve writes and reads to the same memory location by<br /> different tasks running on different CPUs. To mitigate this, refactor<br /> the code to use atomic operations such as set_bit(), test_bit(), and<br /> clear_bit() instead of basic "and" and "or" operations. This ensures<br /> thread-safe manipulation of worker flags.<br /> <br /> Also, move `create_index` to avoid holes in the structure.
Severity CVSS v4.0: Pending analysis
Last modification:
04/08/2026

CVE-2024-39509

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> HID: core: remove unnecessary WARN_ON() in implement()<br /> <br /> Syzkaller hit a warning [1] in a call to implement() when trying<br /> to write a value into a field of smaller size in an output report.<br /> <br /> Since implement() already has a warn message printed out with the<br /> help of hid_warn() and value in question gets trimmed with:<br /> ...<br /> value &amp;= m;<br /> ...<br /> WARN_ON may be considered superfluous. Remove it to suppress future<br /> syzkaller triggers.<br /> <br /> [1]<br /> WARNING: CPU: 0 PID: 5084 at drivers/hid/hid-core.c:1451 implement drivers/hid/hid-core.c:1451 [inline]<br /> WARNING: CPU: 0 PID: 5084 at drivers/hid/hid-core.c:1451 hid_output_report+0x548/0x760 drivers/hid/hid-core.c:1863<br /> Modules linked in:<br /> CPU: 0 PID: 5084 Comm: syz-executor424 Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46fd34d #0<br /> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024<br /> RIP: 0010:implement drivers/hid/hid-core.c:1451 [inline]<br /> RIP: 0010:hid_output_report+0x548/0x760 drivers/hid/hid-core.c:1863<br /> ...<br /> Call Trace:<br /> <br /> __usbhid_submit_report drivers/hid/usbhid/hid-core.c:591 [inline]<br /> usbhid_submit_report+0x43d/0x9e0 drivers/hid/usbhid/hid-core.c:636<br /> hiddev_ioctl+0x138b/0x1f00 drivers/hid/usbhid/hiddev.c:726<br /> vfs_ioctl fs/ioctl.c:51 [inline]<br /> __do_sys_ioctl fs/ioctl.c:904 [inline]<br /> __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890<br /> do_syscall_x64 arch/x86/entry/common.c:52 [inline]<br /> do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83<br /> entry_SYSCALL_64_after_hwframe+0x77/0x7f<br /> ...
Severity CVSS v4.0: Pending analysis
Last modification:
15/10/2026

CVE-2024-39510

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

CVE-2024-40899

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> cachefiles: fix slab-use-after-free in cachefiles_ondemand_get_fd()<br /> <br /> We got the following issue in a fuzz test of randomly issuing the restore<br /> command:<br /> <br /> ==================================================================<br /> BUG: KASAN: slab-use-after-free in cachefiles_ondemand_daemon_read+0x609/0xab0<br /> Write of size 4 at addr ffff888109164a80 by task ondemand-04-dae/4962<br /> <br /> CPU: 11 PID: 4962 Comm: ondemand-04-dae Not tainted 6.8.0-rc7-dirty #542<br /> Call Trace:<br /> kasan_report+0x94/0xc0<br /> cachefiles_ondemand_daemon_read+0x609/0xab0<br /> vfs_read+0x169/0xb50<br /> ksys_read+0xf5/0x1e0<br /> <br /> Allocated by task 626:<br /> __kmalloc+0x1df/0x4b0<br /> cachefiles_ondemand_send_req+0x24d/0x690<br /> cachefiles_create_tmpfile+0x249/0xb30<br /> cachefiles_create_file+0x6f/0x140<br /> cachefiles_look_up_object+0x29c/0xa60<br /> cachefiles_lookup_cookie+0x37d/0xca0<br /> fscache_cookie_state_machine+0x43c/0x1230<br /> [...]<br /> <br /> Freed by task 626:<br /> kfree+0xf1/0x2c0<br /> cachefiles_ondemand_send_req+0x568/0x690<br /> cachefiles_create_tmpfile+0x249/0xb30<br /> cachefiles_create_file+0x6f/0x140<br /> cachefiles_look_up_object+0x29c/0xa60<br /> cachefiles_lookup_cookie+0x37d/0xca0<br /> fscache_cookie_state_machine+0x43c/0x1230<br /> [...]<br /> ==================================================================<br /> <br /> Following is the process that triggers the issue:<br /> <br /> mount | daemon_thread1 | daemon_thread2<br /> ------------------------------------------------------------<br /> cachefiles_ondemand_init_object<br /> cachefiles_ondemand_send_req<br /> REQ_A = kzalloc(sizeof(*req) + data_len)<br /> wait_for_completion(&amp;REQ_A-&gt;done)<br /> <br /> cachefiles_daemon_read<br /> cachefiles_ondemand_daemon_read<br /> REQ_A = cachefiles_ondemand_select_req<br /> cachefiles_ondemand_get_fd<br /> copy_to_user(_buffer, msg, n)<br /> process_open_req(REQ_A)<br /> ------ restore ------<br /> cachefiles_ondemand_restore<br /> xas_for_each(&amp;xas, req, ULONG_MAX)<br /> xas_set_mark(&amp;xas, CACHEFILES_REQ_NEW);<br /> <br /> cachefiles_daemon_read<br /> cachefiles_ondemand_daemon_read<br /> REQ_A = cachefiles_ondemand_select_req<br /> <br /> write(devfd, ("copen %u,%llu", msg-&gt;msg_id, size));<br /> cachefiles_ondemand_copen<br /> xa_erase(&amp;cache-&gt;reqs, id)<br /> complete(&amp;REQ_A-&gt;done)<br /> kfree(REQ_A)<br /> cachefiles_ondemand_get_fd(REQ_A)<br /> fd = get_unused_fd_flags<br /> file = anon_inode_getfile<br /> fd_install(fd, file)<br /> load = (void *)REQ_A-&gt;msg.data;<br /> load-&gt;fd = fd;<br /> // load UAF !!!<br /> <br /> This issue is caused by issuing a restore command when the daemon is still<br /> alive, which results in a request being processed multiple times thus<br /> triggering a UAF. So to avoid this problem, add an additional reference<br /> count to cachefiles_req, which is held while waiting and reading, and then<br /> released when the waiting and reading is over.<br /> <br /> Note that since there is only one reference count for waiting, we need to<br /> avoid the same request being completed multiple times, so we can only<br /> complete the request if it is successfully removed from the xarray.
Severity CVSS v4.0: Pending analysis
Last modification:
03/11/2025

CVE-2024-40900

Publication date:
12/07/2024
In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> cachefiles: remove requests from xarray during flushing requests<br /> <br /> Even with CACHEFILES_DEAD set, we can still read the requests, so in the<br /> following concurrency the request may be used after it has been freed:<br /> <br /> mount | daemon_thread1 | daemon_thread2<br /> ------------------------------------------------------------<br /> cachefiles_ondemand_init_object<br /> cachefiles_ondemand_send_req<br /> REQ_A = kzalloc(sizeof(*req) + data_len)<br /> wait_for_completion(&amp;REQ_A-&gt;done)<br /> cachefiles_daemon_read<br /> cachefiles_ondemand_daemon_read<br /> // close dev fd<br /> cachefiles_flush_reqs<br /> complete(&amp;REQ_A-&gt;done)<br /> kfree(REQ_A)<br /> xa_lock(&amp;cache-&gt;reqs);<br /> cachefiles_ondemand_select_req<br /> req-&gt;msg.opcode != CACHEFILES_OP_READ<br /> // req use-after-free !!!<br /> xa_unlock(&amp;cache-&gt;reqs);<br /> xa_destroy(&amp;cache-&gt;reqs)<br /> <br /> Hence remove requests from cache-&gt;reqs when flushing them to avoid<br /> accessing freed requests.
Severity CVSS v4.0: Pending analysis
Last modification:
04/08/2026