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 86912296BD6 for ; Sat, 6 Dec 2025 21:52:26 +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=1765057946; cv=none; b=j/Dk+qJKW6atvBKT2u91qww9U3IMF2m2G0U2l5NVhx9zGk/W/62/ZUrlhCOQVBLfW/7NHxX4CKSvybfIosGfVfEZoj5O2gMHNDe3uXUNNS4pHPDyfR/IwTpICiiolapDx59xf4zFAEIb8AZ75JSvcu5KUzdr+E4Iqlptj8KKv9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057946; c=relaxed/simple; bh=mXi8kgNZPVZOszVyoneixYfV2zlu6hIQf9bIdbwzJY4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tUS0eO7KpatlVIer35eRe2HpFU4kDGdgluscONQZUW4RCSSCnfoDusrbsZuXBW+qDG22Py0xLR38kVkhva/G1tnAcwSxsbg3A96Ungi1R+g7OsyqKZEKcCqFIwCiKzFHm7aJu65wPCfbnS6RIG+ZktkFhLR/5tuR8F63o5HZrLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aMS0Mhh9; 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="aMS0Mhh9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D253FC4CEF5; Sat, 6 Dec 2025 21:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765057946; bh=mXi8kgNZPVZOszVyoneixYfV2zlu6hIQf9bIdbwzJY4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=aMS0Mhh9T4fL0iAIslDfC9L3YNwHBKDimJVttFkavWr0f8NxRmAbBfiN0ozfZNJy8 OoSe+zCBsDAO7i9OylaaJPaWSt5FzmEd+0bAEMJetEOZIH3Qlfl0kK9itirrlxeAYU sW6ambdYVKKuBjs0J2hNvvbRpYg9ZoQUggptx/qk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40267: io_uring/rw: ensure allocated iovec gets cleared for early failure Date: Sun, 7 Dec 2025 06:52:14 +0900 Message-ID: <2025120714-CVE-2025-40267-4904@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=2082; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SJsflUiWbqzQzpjvk8PeTfOB3EJS6JT74GaRuBf96iM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkmS/tipTr/nz0kODPppsTSlLcnsz5Izf1b4H/miaj7a 7GGvL/rOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizp8Y5odu77xs+7SsZKdm V6x1Z/iSnd+q5jPM4Yux0zom/D2vJl+Op9B6udeVn6y8AA== 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/rw: ensure allocated iovec gets cleared for early failure A previous commit reused the recyling infrastructure for early cleanup, but this is not enough for the case where our internal caches have overflowed. If this happens, then the allocated iovec can get leaked if the request is also aborted early. Reinstate the previous forced free of the iovec for that situation. The Linux kernel CVE team has assigned CVE-2025-40267 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 9ac273ae3dc296905b4d61e4c8e7a25592f6d183 and fixed in 6.17.9 with commit 094c6467fe05e0de618c5a7fcff4d3ee20aeaef8 Issue introduced in 6.14 with commit 9ac273ae3dc296905b4d61e4c8e7a25592f6d183 and fixed in 6.18 with commit d3c9c213c0b86ac5dd8fe2c53c24db20f1f510bc 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-40267 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/rw.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/094c6467fe05e0de618c5a7fcff4d3ee20aeaef8 https://git.kernel.org/stable/c/d3c9c213c0b86ac5dd8fe2c53c24db20f1f510bc