Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187769; b=xvB9RxSEEzplRmy6toG7BdopNVgu5C1jJDkb0ygLdlIQge/B8/7kL1J93bcWmryrDzlK BIqGLCyAt2tGbFZ861a99cr5GE07dY2p3FRF8O1y1JnFJ0eOW5qF/jGxrjNNwTzjH8dts DvCO8rea2Yaacz8hT4AwB7PlFJFeLxTuyI2JqP0+qdmclU/78WMxwaIJHk4YyDWDOC8B/ nn+UXj8meOVFWXVD0Rr9Hy1BwOtZS1FzOmHgOIxOnfmPiYdyijnsc9g+kzT/tbqdieQe4 c4jFXhggLnfLmqRW0AvAFlgI1y5W8cyFCEI49cq+i6lU54+x/jmwMjtJGfoGezUSM0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187769; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=ljeZ54/DiwshI3PtFhnia24AhgpRBOnNrAKSZTtRmWw=; b=bNdOMe0s04T3gKinr7tdrK+ar5Bi5rry6UHSB/eolkKl08ubpsdfmhiY8wiRcTXKED4n AByqZ6pV9hAKJdGdh5ufoFn7zVs7sSKnkVYgoOcfIS98PYWpd0CfdWqckkq4jgkWHe3b+ fP/xjaoXE4xWC5kaMqARTrq6dm0H61Aojte7krY4H9t2zj+dTeAp2GfwQNTAHc/Vg9Q2G FO9pImGZ+i3HHr+lQZlmAz4as+ABBI1O5zOi58cNKEni9Q9IjrEKpfbnh84V469ioCMB6 GciUEW1VxPBZt8j/Yb8qt3zkdK4kQCS0OC9WYzeHKn95IUV9AvdYyNv+3z356JwNxcQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="BL/m5syK"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0941A606A31A for ; Wed, 28 Oct 2026 11:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BL/m5syK Received: by smtp.kernel.org (Postfix) with ESMTPSA id 507581F01825; Wed, 28 Oct 2026 11:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187768; bh=ljeZ54/DiwshI3PtFhnia24AhgpRBOnNrAKSZTtRmWw=; h=From:To:Cc:Subject:Date:Reply-To; b=BL/m5syKfSqSGxQsfoJUrX2k66nbmISntC20jZk+fS4qyJxgLJECbklAfVKIsyg1a C7HMXdRPSkSHPWYMBrE3xF1h9CccUgN63SpY+LlGfW8C3Buc0GKoqoMeKB+n4w2SaP D2wEv3lqrDUNRo/Zcvcx27jwrT2WS6OrikdCts4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99203: pipe: preserve existing fasync readers on writer setup failure Date: Wed, 28 Oct 2026 11:36:30 +0100 Message-ID: <2026102814-CVE-2026-99203-f0f7@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3042; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eFZGW1UECVhfkTtcGFqmjd21r97l4y8nb7ByauFXliI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPzz+6uP5FyuvP9zUS247E3erPlbwwX+LabNPFbwM1e OX+17xJ7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ8JgzzC9z8NdwYUi++2bL r3W7Hy4NmLempIFhfqaXp2251Zx3rjmRx1fnuMUKeGhYAQA= 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: pipe: preserve existing fasync readers on writer setup failure F_SETFL and FIOASYNC decide whether to invoke ->fasync() before pipe_fasync() takes pipe->mutex. Two enables of one O_RDWR FIFO can therefore both enter the callback. fasync_helper() allocates before checking for an existing entry. If the first enable installs both entries, a second enable can update the reader entry and then fail the allocation for the writer entry. The error path removes the pre-existing reader entry, clearing FASYNC while the writer entry remains registered. __fput() then skips ->fasync(), so a later pipe notification can dereference the freed file or its f_owner. An unprivileged memory-pressure reproducer triggers a KASAN slab-use-after-free in send_sigio() through this path. Keep the reader helper's result and undo the registration only if this call added it. The pipe mutex serializes changes to both lists, so a failed new registration still removes its reader, while a failed duplicate preserves the existing registrations and FASYNC. Successful duplicate enables continue to update fa_fd as before. The Linux kernel CVE team has assigned CVE-2026-99203 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 76398425bb06b07cc3a3b1ce169c67dc9d6874ed and fixed in 6.18.59 with commit 4c42ce499ce4b1c787e61082e3b13df4f30c4eaa Issue introduced in 2.6.30 with commit 76398425bb06b07cc3a3b1ce169c67dc9d6874ed and fixed in 7.2.13 with commit 2259809e5b7043c4ba20af7b14ba3e471cf55521 Issue introduced in 2.6.30 with commit 76398425bb06b07cc3a3b1ce169c67dc9d6874ed and fixed in 7.3 with commit 40bb03d3ea6f6a915218508819ecc4d7a7fa260d 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-2026-99203 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/pipe.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/4c42ce499ce4b1c787e61082e3b13df4f30c4eaa https://git.kernel.org/stable/c/2259809e5b7043c4ba20af7b14ba3e471cf55521 https://git.kernel.org/stable/c/40bb03d3ea6f6a915218508819ecc4d7a7fa260d