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 9F27E535CC for ; Fri, 15 Mar 2024 20:15:59 +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=1710533759; cv=none; b=LFCqiVYrsVs6sXhszp1lkHN+1xLU672eJCmmxPlynVbYi7QaoxSaBZLD3+cwnOkrqruwnmCYoOok9yqKlagMZHxL503qD8fpqS11wryLiLcrQmhTdnxxPo30FT1zxvw6Espxn+HcFmTQ2qIldyhk9xNtpW8IqRIzM878EtRmu3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710533759; c=relaxed/simple; bh=9MyT1/2g7ZtBGpI8AbS0W4vNubv5q1e2ooOWkO09JHs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tP7cSqU17zkNeCkzWDL//UsNC8fgWbwkSL8gpPJyJH3xo3Cn1iNS5IL4r3Qabv2yX9le+FPEY2DgIFivfGNw6fvw5aGmdwCiASwyhDjcrL4TLb72nTxcQx2mRVjtqQ1wk/B4Y1uGnrBmJnM/u3ryaKXDdl+9y+Fj1putsUQQDYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CCaJq/E1; 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="CCaJq/E1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3ECCC433F1; Fri, 15 Mar 2024 20:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1710533759; bh=9MyT1/2g7ZtBGpI8AbS0W4vNubv5q1e2ooOWkO09JHs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CCaJq/E1kHXo6QSlZeiaVEaOeIu1qIJ6IsN6pB+F35qKG983jrQLw7/ySQLG7I9UJ BiE2f03EMcc735JAhkrcUnm6yIa4/jM8vaaNNTFf3mrINKyjUIB49hDatSpS9X/eBW Hx5KMfWhWSxBZEOU7KQJpF83jtV+EZ3RQd91DLEE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47123: io_uring: fix ltout double free on completion race Date: Fri, 15 Mar 2024 21:15:13 +0100 Message-ID: <2024031511-CVE-2021-47123-8318@gregkh> X-Mailer: git-send-email 2.44.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=1882; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9MyT1/2g7ZtBGpI8AbS0W4vNubv5q1e2ooOWkO09JHs=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlf1vi77KuNawwJel8pUyUQvGm25b5P06c9uNGjGGTqb xWQHKjeEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM50cswVz6P3XLWBfcKt9+3 2BYcTxXzLPONZJjvtk7xqEetlFVuoqG7wBS/dTWHbWcAAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: io_uring: fix ltout double free on completion race Always remove linked timeout on io_link_timeout_fn() from the master request link list, otherwise we may get use-after-free when first io_link_timeout_fn() puts linked timeout in the fail path, and then will be found and put on master's free. The Linux kernel CVE team has assigned CVE-2021-47123 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 90cd7e424969d and fixed in 5.12.10 with commit 1f64f5e903b9 Issue introduced in 5.11 with commit 90cd7e424969d and fixed in 5.13 with commit 447c19f3b507 Please see https://www.kernel.org or 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-2021-47123 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: fs/io_uring.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/1f64f5e903b9d1d157875721e02adadc9d6f0a5d https://git.kernel.org/stable/c/447c19f3b5074409c794b350b10306e1da1ef4ba