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 6195730EF81 for ; Tue, 28 Oct 2025 11:51:12 +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=1761652273; cv=none; b=GPF+r3RgtSJdtEn80d5pYPUMhNddVE8PtwF8FyRolG6wis6KMQ0DGQkZUnmxh/VzFZ8/FYPjBIevw3z057FpjIeEjs9yVEhaFTtTo/fUCV/zCe9giX709hiYent7/UNZHwOCjHU3hI+KqD6bAIecN2V2XrR++PKkZc2hbeZs6gU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652273; c=relaxed/simple; bh=IkExti1Y0r/Rv1gP/Mpg8LQDptDiqSqoGkeFdG05qnM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=re46WGQQNSv4uKbt12Kd2ZY6lTxbAvjk9vyBEa3q8ytFB/yLlNcuTiMD0jSPewk5qJ0pakIxqD/iYU7RtcqzO5fi2Ie/jokV5ohQvap9BOk/Q4EgFlUe8wXbxHZLa8wUY1oFsVavp/gd87/D44MJ94UjrXOoPFjtAAEVWWUQ+s4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sgI/xjT6; 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="sgI/xjT6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C3EAC4CEE7; Tue, 28 Oct 2025 11:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652271; bh=IkExti1Y0r/Rv1gP/Mpg8LQDptDiqSqoGkeFdG05qnM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sgI/xjT6EP1/8+p18m2m7Y2SUAepXNXG7NEAjPqxGh1vM3Swt+KVRa66jl3zGKfY0 gTdA7nUA2YfYxd8AucsVWAgPUzH9lG0nKq2mcp4cIp5G1aiRZudNP2PvK2nn/1bJbC dAo9ZZAk1qCkM0hBn5qPz5FacjiU3ORrGFvDIYOE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40047: io_uring/waitid: always prune wait queue entry in io_waitid_wait() Date: Tue, 28 Oct 2025 12:48:24 +0100 Message-ID: <2025102813-CVE-2025-40047-b952@gregkh> X-Mailer: git-send-email 2.51.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=2218; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mnYxzWZfpkOjibl/tTt+g+PaQaxxHYlhjMD15spuK54=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa2tX/z70u/rmp7bb81hUnz9+f+kS033lmT/MhHoFL saufHDwWEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5Kw1w3wH/p45U/9pXr+W uMZtm9+EoyZJewQY5qfsVW1Zo7na696DgBOr16b5iZxQXAoA 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: io_uring/waitid: always prune wait queue entry in io_waitid_wait() For a successful return, always remove our entry from the wait queue entry list. Previously this was skipped if a cancelation was in progress, but this can race with another invocation of the wait queue entry callback. The Linux kernel CVE team has assigned CVE-2025-40047 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 6.12.53 with commit 696ba6032081e617564a8113a001b8d7943cb928 Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 6.17.3 with commit 3e2205db2f0608898d535da1964e1b376aacfdaa Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 6.18-rc1 with commit 2f8229d53d984c6a05b71ac9e9583d4354e3b91f 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-40047 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: io_uring/waitid.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/696ba6032081e617564a8113a001b8d7943cb928 https://git.kernel.org/stable/c/3e2205db2f0608898d535da1964e1b376aacfdaa https://git.kernel.org/stable/c/2f8229d53d984c6a05b71ac9e9583d4354e3b91f