CVE-2025-38241 Vulnerability Analysis & Exploit Details

CVE-2025-38241
Vulnerability Scoring

5.5
/10
Significant Risk

Security assessments indicate that CVE-2025-38241 presents a notable risk, potentially requiring prompt mitigation.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2025-38241 Details

Status: Analyzed

Last updated: 🕞 19 Nov 2025, 15:51 UTC
Originally published on: 🕚 09 Jul 2025, 11:15 UTC

Time between publication and last update: 133 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2025-38241 Vulnerability Summary

CVE-2025-38241: In the Linux kernel, the following vulnerability has been resolved: mm/shmem, swap: fix softlockup with mTHP swapin Following softlockup can be easily reproduced on my test machine with: echo always > /sys/kernel/mm/transparent_hugepage/hugepages-64kB/enabled swapon /dev/zram0 # zram0 is a 48G swap device mkdir -p /sys/fs/cgroup/memory/test echo 1G > /sys/fs/cgroup/test/memory.max echo $BASHPID > /sys/fs/cgroup/test/cgroup.procs while true; do dd if=/dev/zero of=/tmp/test.img bs=1M count=5120 cat /tmp/test.img > /dev/null rm /tmp/test.img done Then after a while: watchdog: BUG: soft lockup - CPU#0 stuck for 763s! [cat:5787] Modules linked in: zram virtiofs CPU: 0 UID: 0 PID: 5787 Comm: cat Kdump: loaded Tainted: G L 6.15.0.orig-gf3021d9246bc-dirty #118 PREEMPT(voluntary)· Tainted: [L]=SOFTLOCKUP Hardware name: Red Hat KVM/RHEL-AV, BIOS 0.0.0 02/06/2015 RIP: 0010:mpol_shared_policy_lookup+0xd/0x70 Code: e9 b8 b4 ff ff 31 c0 c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 0f 1f 44 00 00 41 54 55 53 <48> 8b 1f 48 85 db 74 41 4c 8d 67 08 48 89 fb 48 89 f5 4c 89 e7 e8 RSP: 0018:ffffc90002b1fc28 EFLAGS: 00000202 RAX: 00000000001c20ca RBX: 0000000000724e1e RCX: 0000000000000001 RDX: ffff888118e214c8 RSI: 0000000000057d42 RDI: ffff888118e21518 RBP: 000000000002bec8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000bf4 R11: 0000000000000000 R12: 0000000000000001 R13: 00000000001c20ca R14: 00000000001c20ca R15: 0000000000000000 FS: 00007f03f995c740(0000) GS:ffff88a07ad9a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f03f98f1000 CR3: 0000000144626004 CR4: 0000000000770eb0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> shmem_alloc_folio+0x31/0xc0 shmem_swapin_folio+0x309/0xcf0 ? filemap_get_entry+0x117/0x1e0 ? xas_load+0xd/0xb0 ? filemap_get_entry+0x101/0x1e0 shmem_get_folio_gfp+0x2ed/0x5b0 shmem_file_read_iter+0x7f/0x2e0 vfs_read+0x252/0x330 ksys_read+0x68/0xf0 do_syscall_64+0x4c/0x1c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f03f9a46991 Code: 00 48 8b 15 81 14 10 00 f7 d8 64 89 02 b8 ff ff ff ff eb bd e8 20 ad 01 00 f3 0f 1e fa 80 3d 35 97 10 00 00 74 13 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 4f c3 66 0f 1f 44 00 00 55 48 89 e5 48 83 ec RSP: 002b:00007fff3c52bd28 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000040000 RCX: 00007f03f9a46991 RDX: 0000000000040000 RSI: 00007f03f98ba000 RDI: 0000000000000003 RBP: 00007fff3c52bd50 R08: 0000000000000000 R09: 00007f03f9b9a380 R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000040000 R13: 00007f03f98ba000 R14: 0000000000000003 R15: 0000000000000000 </TASK> The reason is simple, readahead brought some order 0 folio in swap cache, and the swapin mTHP folio being allocated is in conflict with it, so swapcache_prepare fails and causes shmem_swap_alloc_folio to return -EEXIST, and shmem simply retries again and again causing this loop. Fix it by applying a similar fix for anon mTHP swapin. The performance change is very slight, time of swapin 10g zero folios with shmem (test for 12 times): Before: 2.47s After: 2.48s [kasong@tencent.com: add comment]

Assessing the Risk of CVE-2025-38241

Access Complexity Graph

The exploitability of CVE-2025-38241 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2025-38241

CVE-2025-38241 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2025-38241, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2025-38241, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2025-38241 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2025-38241 poses no threat to data integrity.
  • Availability: High
    CVE-2025-38241 can disrupt system operations, potentially causing complete denial of service (DoS).

CVE-2025-38241 References

External References

CWE Common Weakness Enumeration

CWE-667

CAPEC Common Attack Pattern Enumeration and Classification

  • Forced Deadlock CAPEC-25 The adversary triggers and exploits a deadlock condition in the target software to cause a denial of service. A deadlock can occur when two or more competing actions are waiting for each other to finish, and thus neither ever does. Deadlock conditions can be difficult to detect.
  • Leveraging Race Conditions CAPEC-26 The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with their version and cause the system to read the malicious file.
  • Leveraging Race Conditions via Symbolic Links CAPEC-27 This attack leverages the use of symbolic links (Symlinks) in order to write to sensitive files. An attacker can create a Symlink link to a target file not otherwise accessible to them. When the privileged program tries to create a temporary file with the same name as the Symlink link, it will actually write to the target file pointed to by the attackers' Symlink link. If the attacker can insert malicious content in the temporary file they will be writing to the sensitive file by using the Symlink. The race occurs because the system checks if the temporary file exists, then creates the file. The attacker would typically create the Symlink during the interval between the check and the creation of the temporary file.

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:6.14:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2025-38241: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-9558 – There is a potential OOB Write vulnerability in the gen_prov_start function in pb_adv.c. The full length of the received data is copied into the li...
  • CVE-2025-9557 – ‭An out-of-bound write can lead to an arbitrary code execution. Even on devices with some form of memory protection, this can still lead to‬ ‭a cra...
  • CVE-2025-59820 – In KDE Krita before 5.2.13, loading a manipulated TGA file could result in a heap-based buffer overflow in plugins/impex/tga/kis_tga_import.cpp (ak...
  • CVE-2025-55174 – In KDE Skanpage before 25.08.0, an attempt at file overwrite can result in the contents of the new file at the beginning followed by the partial co...
  • CVE-2025-12061 – The TAX SERVICE Electronic HDM WordPress plugin before 1.2.1 does not authorization and CSRF checks in an AJAX action, allowing unauthenticated use...