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 63ECB2FB096 for ; Fri, 5 Sep 2025 17:23:01 +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=1757092981; cv=none; b=b7J7YzxhFrL8YMtAqxWh3bGsqOrcroqbxy0qvBjnlSvmSZo/Ry7r7IzPUTVMZhueIK65vs8ZWA9jip2I68mdf9bA0lOe1Y/HhAe+/GCmNvYeJkkcfe97ONO0nF0hxm3Baf2Soyp6uzCMBHjoCunktRujUNSzUUKzS7SNWI4i1iI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757092981; c=relaxed/simple; bh=oSm0UbEDoDIhtPcROewJIVYuP9JyJCvEWLgNrMdpTS8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=idgq7rwpVI9MaRPhDmOcgMoBpc6Di4x5R0AvPUwqnTnlBA6mwvg5W/d8kgD6KiGJkEM/QV7kPuK3X0ZaUguhU2BzCxwQGUj3ETItXLd4rvI8rEceWvB3T+JuLzr/rejynz4r9LTi5kge5qNoDoI+twS0z2H7xPdGPHDjMNJMe8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yk/yTE2H; 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="Yk/yTE2H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D531AC4CEF1; Fri, 5 Sep 2025 17:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757092981; bh=oSm0UbEDoDIhtPcROewJIVYuP9JyJCvEWLgNrMdpTS8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Yk/yTE2HUG3828yCtODnRM2jFLIpft7QJDW3S5W/giOR90vOG6i08XbWf6oPtpkYS /IwU2AUD0+ZVVCOL5HtZNQf+1lvgrujDMCakPSI3Pet1l6rVV4STRP4IVYBeLxRJeW QoDkWia7AHXtrT1dSZavNrh3LbbySo7o8PZD4X7c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39698: io_uring/futex: ensure io_futex_wait() cleans up properly on failure Date: Fri, 5 Sep 2025 19:21:11 +0200 Message-ID: <2025090548-CVE-2025-39698-41e0@gregkh> X-Mailer: git-send-email 2.51.0 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=2502; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B6oFqaI5nFIqVAjnv7GxckvCUaXD8S2dVYcIeeePO1k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pT/4Znqx7sldFZxeIfbZ79c+Efd96zfxLmLYpFXGV vZjW8iyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjImbcMCxo38FXu0wp/8a9l ElfjhoT327i2vGeYn1DY+qtBY2LEmtLnqba8QQvfvvW6BwA= 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/futex: ensure io_futex_wait() cleans up properly on failure The io_futex_data is allocated upfront and assigned to the io_kiocb async_data field, but the request isn't marked with REQ_F_ASYNC_DATA at that point. Those two should always go together, as the flag tells io_uring whether the field is valid or not. Additionally, on failure cleanup, the futex handler frees the data but does not clear ->async_data. Clear the data and the flag in the error path as well. Thanks to Trend Micro Zero Day Initiative and particularly ReDress for reporting this. The Linux kernel CVE team has assigned CVE-2025-39698 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 194bb58c6090e39bd7d9b9c888a079213628e1f6 and fixed in 6.12.44 with commit d9f93172820a53ab42c4b0e5e65291f4f9d00ad2 Issue introduced in 6.7 with commit 194bb58c6090e39bd7d9b9c888a079213628e1f6 and fixed in 6.16.4 with commit d34c04152df517c59979b4bf2a47f491e06d3256 Issue introduced in 6.7 with commit 194bb58c6090e39bd7d9b9c888a079213628e1f6 and fixed in 6.17-rc3 with commit 508c1314b342b78591f51c4b5dadee31a88335df 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-39698 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/futex.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/d9f93172820a53ab42c4b0e5e65291f4f9d00ad2 https://git.kernel.org/stable/c/d34c04152df517c59979b4bf2a47f491e06d3256 https://git.kernel.org/stable/c/508c1314b342b78591f51c4b5dadee31a88335df