SecurityContext

CVE-2025-71181: Linux Kernel - Deadlock

  • Cve: CVE-2025-71181
  • Name: Linux Kernel - Deadlock
  • Description: In the Linux kernel, the following vulnerability has been resolved: rust_binder: remove spin_lock() in rust_shrink_free_page() When forward-porting Rust Binder to 6.18, I neglected to take commit fb56fdf8b9a2 ("mm/list_lru: split the lock to per-cgroup scope") into account, and apparently I did not end up running the shrinker callback when I sanity tested the driver before submission. This leads to crashes like the following: ============================================ WARNING: possible recursive locking detected 6.18.0-mainline-maybe-dirty #1 Tainted: G IO -------------------------------------------- kswapd0/68 is trying to acquire lock: ffff956000fa18b0 (&l->lock){+.+.}-{2:2}, at: lock_list_lru_of_memcg+0x128/0x230 but task is already holding lock: ffff956000fa18b0 (&l->lock){+.+.}-{2:2}, at: rust_helper_spin_lock+0xd/0x20 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&l->lock); lock(&l->lock); *** DEADLOCK *** May be due to missing lock nesting notation 3 locks held by kswapd0/68: #0: ffffffff90d2e260 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0x597/0x1160 #1: ffff956000fa18b0 (&l->lock){+.+.}-{2:2}, at: rust_helper_spin_lock+0xd/0x20 #2: ffffffff90cf3680 (rcu_read_lock){....}-{1:2}, at: lock_list_lru_of_memcg+0x2d/0x230 To fix this, remove the spin_lock() call from rust_shrink_free_page().
  • Impact: Kernel deadlock can cause system instability or crash, leading to denial of service.
  • Remediation: Update to the Linux kernel version that removes spin_lock() call from rust_shrink_free_page() in rust_binder.
  • Vulnerability type: race_condition
  • Vulnerability impact: denial_of_service
  • Requirements: Attacker needs kernel-level code execution to trigger deadlock
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00119
  • Epss percentile: 0.0178
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2026-01-31T12:16:03Z
  • Age in days: 297
  • Modified at: 2026-06-17T10:03:50Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-71181
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-667Improper Locking

References

UrlSourceTags
https://git.kernel.org/stable/c/30a98c97f7874031f2e1de19c777ce011143cba4nvdPatch
https://git.kernel.org/stable/c/361e0ff456a8daf9753c18030533256e4133ce7anvdPatch

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.19 rc8; = 6.19 rc7; = 6.19 rc1; = 6.19 rc2; = 6.19 rc3; = 6.19 rc4; = 6.19 rc5; = 6.19 rc6; >= 6.18.1, < 6.18.6; = 6.18nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports