Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1E2505187CD for ; Wed, 14 Oct 2026 13:26:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984416; cv=none; b=ljNTsx2xWNSVi7Egtj/UhQ3NB6zWNlBQxdI8Ysdfx1L9SQX3PES5NLVEl8V8dvD6t6/zdAfOt+4gS4pS7E4yFNT0ZgOQSqSBPf4DfqmlV8qIDWKZlRGiHokYOslYxv3aieDIHy1cVL3kznnMKXJ94PcvMTk+F2BGiZd1cyDWVMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984416; c=relaxed/simple; bh=MjCm7n2815Jz8T+tIxfwzB0BxR3lA5L0lLU+PKGj4fM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EBbfZAq/nsjo5fTIgghcXhyab4GMPIwMhfyhqUvU9FyLGN9moqtGIwh4Br1LY7EX3nNwquZSCizNjIYge7MPwMsB9cbZhldZKteAIBWtP4C9zLnvnKodVsLDYjqjjfzHQOLMZSorfRwB2LPHW57rSQEeZLyEW7F97dJXWhu7+vA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aAsJ2/xL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aAsJ2/xL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EB681F000FF; Wed, 14 Oct 2026 13:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791984413; bh=I/xZKKWftd0CGoBYunhi4R7H55pjKvoF13H4dDSHeBE=; h=From:To:Cc:Subject:Date:Reply-To; b=aAsJ2/xLHAjC+0oboaydwKeIu/u6HGfifTJh+1epO/oJNRa1sR90KzIkCAi/IRzYW 84rmLYOS900kUeuuLCOb0K9o+iar43a43LlUrSkSHU0QRgqS8TrXyKJ/itU26XOJHL iDZiqGtvcgbXuWmNbpx0zognUHPUAlknRObLABW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98388: exec: do_close_on_exec() before taking exec_update_lock Date: Wed, 14 Oct 2026 15:26:18 +0200 Message-ID: <2026101419-CVE-2026-98388-ec5c@gregkh> X-Mailer: git-send-email 2.56.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=4031; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3psigj/A9rDLvTrpr8uxiop+1WldGMkst59nco/YFxw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnnm37HzHY5ZbXO4/DP0Phcv964ayf42ffMjYt43bFh5 3Vr3urlHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR9UcYFlxPOH7xSn/ni4qO zLs7JHd8KAyLzmNYMPfFtaqNBdNsd7g+a7xWfX/21N3xygA= 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: exec: do_close_on_exec() before taking exec_update_lock do_close_on_exec() currently happens while holding the exec_update_lock, which is used in a lot of places that access process state to synchronize access checks. I recently added another such use of exec_update_lock, causing a regression. do_close_on_exec() can block waiting for a reply from a filesystem. That means a hung filesystem can block codepaths that use exec_update_lock; and it also means that a FUSE filesystem which attempts to inspect the calling process can deadlock. To avoid such problems, move do_close_on_exec() before the exec_update_lock is taken, but after the FD table has been copied if necessary. I have looked through all the calls between the old and new position of the do_close_on_exec() call; there seems to be no file descriptor table access in between. The Linux kernel CVE team has assigned CVE-2026-98388 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.261 with commit ae1e630bcaac739f625822078edbaea98366930d and fixed in 5.10.271 with commit 955973fff4a36d39a848b00cac1706863f568fe1 Issue introduced in 5.15.212 with commit d54f14655fd7d7b293698a8b6918563c4c0465e7 and fixed in 5.15.222 with commit 550feab5b01000ab314868b62211fb3ddfd600e8 Issue introduced in 6.1.178 with commit bb43679356f1f2a4c6b1c88aec4f021e5b5c74e9 and fixed in 6.1.189 with commit 5aacc19ba2b1faf84c4a2f2cf9a1784e03d1ff38 Issue introduced in 6.6.145 with commit 7456ae990a9738962b33146916fabca62ae3d4e0 and fixed in 6.6.158 with commit 3feb4020bfb7ccf0d347f27051639d25e19cd65d Issue introduced in 6.12.97 with commit 4bfe8c481846cee52473a2f7d7b30ee8e6749fc4 and fixed in 6.12.111 with commit 0d86cd6b709c39216e6ee5ea8f0fc4242bbb2b53 Issue introduced in 6.18.40 with commit f9b4b03ccc9c69bf7f7298d4559906ebea7143b3 and fixed in 6.18.53 with commit 19ddef61ee0a49782a60f8f497e50597ad5de2da Issue introduced in 7.2 with commit 6650527444dadc63d84aa939d14ecba4fadb2f69 and fixed in 7.2.7 with commit 63be3d8511bdafa095cd14a393cbf3c58dbbb928 Issue introduced in 7.2 with commit 6650527444dadc63d84aa939d14ecba4fadb2f69 and fixed in 7.3-rc3 with commit e780259b54e618ceb4763fbc21314acf3565e813 Issue introduced in 7.1.4 with commit c1cfd63326f5d09999134e9052c353faf738286e 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-98388 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/exec.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/955973fff4a36d39a848b00cac1706863f568fe1 https://git.kernel.org/stable/c/550feab5b01000ab314868b62211fb3ddfd600e8 https://git.kernel.org/stable/c/5aacc19ba2b1faf84c4a2f2cf9a1784e03d1ff38 https://git.kernel.org/stable/c/3feb4020bfb7ccf0d347f27051639d25e19cd65d https://git.kernel.org/stable/c/0d86cd6b709c39216e6ee5ea8f0fc4242bbb2b53 https://git.kernel.org/stable/c/19ddef61ee0a49782a60f8f497e50597ad5de2da https://git.kernel.org/stable/c/63be3d8511bdafa095cd14a393cbf3c58dbbb928 https://git.kernel.org/stable/c/e780259b54e618ceb4763fbc21314acf3565e813