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 BF7C629DB64 for ; Sat, 16 Aug 2025 10:58:55 +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=1755341935; cv=none; b=IhxCZ0jSD+06f6Sf/tk5lH9WBcu6uUvRUzlXw6y1AUTDoZgzPfLXU59tXnaTB6N+tzg6TdtwUWnoIf3QETLKKi5MShOh5xBKQgD+Bmr6WsClgNpWRmc7q/oqHdqrv+zHDv+m/6rIWNIcKrsq/Jm6Aa+wJlFgfzrTwNpxwMi2hSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755341935; c=relaxed/simple; bh=Yc0MIu7C702EzfKR5sbG/b5+pld4t7ZYMZWdWKTk+wU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OlVwCb/pBVLxSwX7E5ra4mr1Q7Ea3kG9hWQ9k6Py9ez0CG8m26CJxNwHQIpBJVLUzFpVBTYFt9bvm5GNDw9KLjIzuQa1EBUEQZkwUQbfwvJOj3lgBrqfWNoqz7J53tMHFExsAyN7nNP2H4x4zKvlEO+phqHZ+HrEpOdbOzzcdbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pwcdKW/K; 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="pwcdKW/K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E70DEC4CEEF; Sat, 16 Aug 2025 10:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755341935; bh=Yc0MIu7C702EzfKR5sbG/b5+pld4t7ZYMZWdWKTk+wU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pwcdKW/KfxtWip5ydCb0SOGjl5+Rb+dRjPBCuL3K/TD17+swPoc43lWGwvK4/EVci ZXXpw8ookwci5H94PFH08g9bcG6nHXi5OwoSV6dgdQfiQio0DZQaE2cYabyGiW9r8t gCfVY0M2aIO50o/Qrng31E+VgeGEvmVdWR/TS3cI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38510: kasan: remove kasan_find_vm_area() to prevent possible deadlock Date: Sat, 16 Aug 2025 12:57:52 +0200 Message-ID: <2025081651-CVE-2025-38510-f67d@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3352; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5zOMchfpnyzhnManZhKU6ECQ9DxmzIJ8QijjMSoCb0k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLUvQV5DQts3ZltsZlaSZ//DXNz0r9R5pqbtmlqg2CA c+Vpj7oiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInMv8Mwv6rk9lbRmsuR0qVP NGwjDkkXSqTHM8wV4WVb/Ll5duH3FRoWna3Z99qsRe8AAA== 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: kasan: remove kasan_find_vm_area() to prevent possible deadlock find_vm_area() couldn't be called in atomic_context. If find_vm_area() is called to reports vm area information, kasan can trigger deadlock like: CPU0 CPU1 vmalloc(); alloc_vmap_area(); spin_lock(&vn->busy.lock) spin_lock_bh(&some_lock); spin_lock(&some_lock); kasan_report(); print_report(); print_address_description(); kasan_find_vm_area(); find_vm_area(); spin_lock(&vn->busy.lock) // deadlock! To prevent possible deadlock while kasan reports, remove kasan_find_vm_area(). The Linux kernel CVE team has assigned CVE-2025-38510 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit c056a364e9546bd513d1f5205f0ee316d8acb910 and fixed in 6.1.146 with commit 595f78d99b9051600233c0a5c4c47e1097e6ed01 Issue introduced in 5.18 with commit c056a364e9546bd513d1f5205f0ee316d8acb910 and fixed in 6.6.99 with commit 8377d7744bdce5c4b3f1b58924eebd3fdc078dfc Issue introduced in 5.18 with commit c056a364e9546bd513d1f5205f0ee316d8acb910 and fixed in 6.12.39 with commit 2d89dab1ea6086e6cbe6fe92531b496fb6808cb9 Issue introduced in 5.18 with commit c056a364e9546bd513d1f5205f0ee316d8acb910 and fixed in 6.15.7 with commit 0c3566d831def922cd56322c772a7b20d8b0e0c0 Issue introduced in 5.18 with commit c056a364e9546bd513d1f5205f0ee316d8acb910 and fixed in 6.16 with commit 6ee9b3d84775944fb8c8a447961cd01274ac671c 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-38510 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: mm/kasan/report.c 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/595f78d99b9051600233c0a5c4c47e1097e6ed01 https://git.kernel.org/stable/c/8377d7744bdce5c4b3f1b58924eebd3fdc078dfc https://git.kernel.org/stable/c/2d89dab1ea6086e6cbe6fe92531b496fb6808cb9 https://git.kernel.org/stable/c/0c3566d831def922cd56322c772a7b20d8b0e0c0 https://git.kernel.org/stable/c/6ee9b3d84775944fb8c8a447961cd01274ac671c