CVE-2025-71181
publishedrust_binder: remove spin_lock() in rust_shrink_free_page()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxeafedbc7c050c44744fbdf80bdf3315e860b7513 to < 30a98c97f7874031f2e1de19c777ce011143cba4 · eafedbc7c050c44744fbdf80bdf3315e860b7513 to < 361e0ff456a8daf9753c18030533256e4133ce7a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.6 through 6.18.* (unaffected · semver) · 6.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | eafedbc7c050c44744fbdf80bdf3315e860b7513 to < 30a98c97f7874031f2e1de19c777ce011143cba4 (affected · git)eafedbc7c050c44744fbdf80bdf3315e860b7513 to < 361e0ff456a8daf9753c18030533256e4133ce7a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.6 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
rust_binder: remove spin_lock() in rust_shrink_free_page()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 06f33f980278570b279972a4430a19df5dd9520ef2e7967bd0a333aa8281c9dd
- Ingested
- 23 Sep 2026, 08:58:12 UTC
- Source record
- Official CVE record