Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E57682BD0B for ; Sat, 31 Jan 2026 11:39:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859582; cv=none; b=NVZp+pb3KFOP9Bnoj8KgdpQrjT6Sv7MLAdC8V+Ar54vAPFtr2bWCFo4klXkpB0gOGEGpQBM6SoAVZmcu+ScK6FLtAzQc+gNZvALpC21iLXIUamItnWqJ56du4LTupkp+qfVb+Yp8IL1Dc+f0MMiy5i0mxDZToTaKryzUyhMXB/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859582; c=relaxed/simple; bh=UJAK8CQha144siokBCkeA5yc4YmbQZjj/imz+KSj24s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=to7BYaUqhEQu5msbirv7x11gjQcGsuuMK3S0IgG3Ll6eO4yOwuubGiWvoKfXdwUX3UrrVbLfY/MnXV75dVDGKxH8Qg8A+yY+qAkc1FiSuKP5bojvmKA2x/LLTWesunqK8GjTdC39uRqYSa56dMtKyEuNKGSm2rLWl2kilpjtL9c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CFkMLwJY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CFkMLwJY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3C9BC4CEF1; Sat, 31 Jan 2026 11:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769859581; bh=UJAK8CQha144siokBCkeA5yc4YmbQZjj/imz+KSj24s=; h=From:To:Cc:Subject:Date:Reply-To:From; b=CFkMLwJYomEzS5MCxT+1Ko83BLeOApC0+0M7dooQyh6avthg49gARCwWlyv7N8g3K tD/9eXYIBKS01c2hyCZSSu3IHW0jg14qrUc8OSrZyl7AeZGw28lm785/bvPTH6+l2+ qtOPM2tiNFZucDZZdpfAnukeEsarEQ3l7LzGUR5Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71181: rust_binder: remove spin_lock() in rust_shrink_free_page() Date: Sat, 31 Jan 2026 12:39:32 +0100 Message-ID: <2026013134-CVE-2025-71181-7481@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3103; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+7BLfETP9cj6sYeson6IFPrNl37YzK6Bl6/c3KUaDoI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm1L7/NK0z8lc+Z/KhYatbKIw+jpy3jX160vq63MLOmz 2/lgvtaHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRk0oMC87tkz/VOrVAP/XO pW3VrWU9gkuSfzLMT7Wt5GGyu7ZlwQvhh7FG/w5VzJrTBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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(). The Linux kernel CVE team has assigned CVE-2025-71181 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit eafedbc7c050c44744fbdf80bdf3315e860b7513 and fixed in 6.18.6 with commit 30a98c97f7874031f2e1de19c777ce011143cba4 Issue introduced in 6.18 with commit eafedbc7c050c44744fbdf80bdf3315e860b7513 and fixed in 6.19-rc5 with commit 361e0ff456a8daf9753c18030533256e4133ce7a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-71181 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/android/binder/page_range.rs Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/30a98c97f7874031f2e1de19c777ce011143cba4 https://git.kernel.org/stable/c/361e0ff456a8daf9753c18030533256e4133ce7a