cve.bz

CVE-2025-39843 Improper Locking

5.5 mediumEPSS 0.1%Fix available

Medium (5.5). EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: mm: slub: avoid wake up kswapd in set_track_prepare set_track_prepare() can incur lock recursion. The issue is that it is called from hrtimer_start_range_ns holding the per_cpu(hrtimer_bases)[n].lock, but when enabled CONFIG_DEBUG_OBJECTS_TIMERS, may wake up kswapd in set_track_prepare, and try to hold the per_cpu(hrtimer_bases)[n].lock. Avoid deadlock caused by implicitly waking up kswapd by passing in allocation flags, which do not contain __GFP_KSWAPD_RECLAIM in the debug_objects_fill_pool() case. Inside stack depot they are processed by gfp_nested_mask(). Since ___slab_alloc() has preemption disabled, we mask out __GFP_DIRECT_RECLAIM from the flags there. The oops looks something like: BUG: spinlock recursion on CPU#3, swapper/3/0 lock: 0xffffff8a4bf29c80, .magic: dead4ead, .owner: swapper/3/0, .owner_cpu: 3 Hardware name: Qualcomm Technologies, Inc. Popsicle based on SM8850 (DT) Call trace: spin_bug+0x0 _raw_spin_lock_irqsave+0x80 hrtimer_try_to_cancel+0x94 task_contending+0x10c enqueue_dl_entity+0x2a4 dl_server_start+0x74 enqueue_task_fair+0x568 enqueue_task+0xac do_activate_task+0x14c ttwu_do_activate+0xcc try_to_wake_up+0x6c8 default_wake_function+0x20 autoremove_wake_function+0x1c __wake_up+0xac wakeup_kswapd+0x19c wake_all_kswapds+0x78 __alloc_pages_slowpath+0x1ac __alloc_pages_noprof+0x298 stack_depot_save_flags+0x6b0 stack_depot_save+0x14 set_track_prepare+0x5c ___slab_alloc+0xccc __kmalloc_cache_noprof+0x470 __set_page_owner+0x2bc post_alloc_hook[jt]+0x1b8 prep_new_page+0x28 get_page_from_freelist+0x1edc __alloc_pages_noprof+0x13c alloc_slab_page+0x244 allocate_slab+0x7c ___slab_alloc+0x8e8 kmem_cache_alloc_noprof+0x450 debug_objects_fill_pool+0x22c debug_object_activate+0x40 enqueue_hrtimer[jt]+0xdc hrtimer_start_range_ns+0x5f8 ...

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-667 Improper Locking
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-39843 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-39843?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-39843?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-39843 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.19 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.151
Linux6.66.6.105
Linux6.126.12.46
Linux6.166.16.6
Linuxlater releases6.17

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.153-1~deb11u1DLA-4328-1
Debian12linux6.1.153-1DEBIAN-CVE-2025-39843 DSA-6009-1
Debian13linux6.12.48-1DEBIAN-CVE-2025-39843 DSA-6008-1
Debian14linux6.16.6-1DEBIAN-CVE-2025-39843
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-39843
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-39843
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-39843
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1050.53~22.04.1UBUNTU-CVE-2025-39843 USN-8095-4
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1051.57~22.04.1UBUNTU-CVE-2025-39843 USN-8126-1
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1058.65~22.04.1UBUNTU-CVE-2025-39843
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1052.55~22.04.1UBUNTU-CVE-2025-39843 USN-8095-1
Ubuntu22.04:LTSlinux-hwe-6.8, linux-riscv-6.86.8.0-106.106~22.04.1UBUNTU-CVE-2025-39843 USN-8095-1
Ubuntu22.04:LTSlinux-ibm-6.86.8.0-1049.49~22.04.1UBUNTU-CVE-2025-39843 USN-8095-1
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.86.8.0-106.106.1~22.04.1UBUNTU-CVE-2025-39843 USN-8095-1
Ubuntu22.04:LTSlinux-nvidia-6.86.8.0-1049.52~22.04.1UBUNTU-CVE-2025-39843 USN-8100-1
Ubuntu22.04:LTSlinux-oracle-6.86.8.0-1047.48~22.04.1UBUNTU-CVE-2025-39843 USN-8095-1
28 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-611.9.1.el9_7RHSA-2025:21926
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-611.9.1.el9_7RHSA-2025:21926
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-611.9.1.el9_7RHSA-2025:21926
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-611.9.1.el9_7RHSA-2025:21926
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-611.9.1.el9_7RHSA-2025:21926
Red Hatenterprise_linux:10.1rv, perf, rtla and 87 more0:6.12.0-124.27.1.el10_1RHSA-2026:0453
Red Hatenterprise_linux_eus:10.0kernel, kernel-rt, kernel-64k and 80 more0:6.12.0-55.52.1.el10_0RHSA-2026:0271
Red Hatrhel_eus:9.6::appstreamrv, perf, rtla and 29 more0:5.14.0-570.76.1.el9_6RHSA-2025:23789
Red Hatrhel_eus:9.6::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.76.1.el9_6RHSA-2025:23789
Red Hatrhel_eus:9.6::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.76.1.el9_6RHSA-2025:23789
Red Hatrhel_eus:9.6::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.76.1.el9_6RHSA-2025:23789
Red Hatrhel_eus:9.6::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-570.76.1.el9_6RHSA-2025:23789
AlmaLinux9rv, perf, rtla and 22 more5.14.0-611.9.1.el9_7ALSA-2025:21926
AlmaLinux10kernel-doc, kernel-abi-stablelists6.12.0-124.27.1.el10_1ALSA-2026:0453
Rocky Linux9kernel0:5.14.0-611.9.1.el9_7RLSA-2025:21926
Rocky Linux10kernel0:6.12.0-124.27.1.el10_1RLSA-2026:0453
Alpaquita23linux-lts6.1.151-r0BELL-CVE-2025-39843
Alpaquita25linux-lts6.12.51-r0BELL-CVE-2025-39843
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-39843

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue can only occur on debug kernel builds with specific configuration options enabled (e.g. CONFIG_SLUB_DEBUG, CONFIG_STACKDEPOT, SLAB_STORE_USER). It may lead to a deadlock (spinlock recursion) under rare timing conditions but cannot be triggered on standard production kernels. The impact is limited to a local denial of service.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-124.27.1.el10_1Fixed 2026-01-12RHSA-2026:0453
Red Hat Enterprise Linux 10.0 Extended Update Supportkernel-0:6.12.0-55.52.1.el10_0Fixed 2026-01-08RHSA-2026:0271
Red Hat Enterprise Linux 9kernel-0:5.14.0-611.9.1.el9_7Fixed 2025-11-24RHSA-2025:21926
Red Hat Enterprise Linux 9.6 Extended Update Supportkernel-0:5.14.0-570.76.1.el9_6Fixed 2025-12-22RHSA-2025:23789
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-39843.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-134-10Siemens SIMATIC2026-05-12Critical ManufacturingSIMATIC CN 4100none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON