CVE-2026-98388

exec: do_close_on_exec() before taking exec_update_lock

Published Oct 14, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability arises because the Linux kernel performs the close‑on‑exec operation while it holds the exec_update_lock. The close operation can block while waiting for a reply from the filesystem. A hung or malicious filesystem, such as a FUSE driver that inspects the calling process, can therefore cause the holder of exec_update_lock to stall indefinitely, leading to a deadlock. The resulting denial of service can manifest as stalled processes or a full kernel hang, preventing new system calls that acquire exec_update_lock from completing.

Affected Systems

All implementations of the Linux kernel that contain the legacy ordering of do_close_on_exec() before the exec_update_lock are affected. The vulnerability exists in kernel versions built prior to the change that moved do_close_on_exec() outside the lock. Administrators should inspect the running kernel version and apply the patch in a newer kernel release that includes the reordering fix. The Linux kernel is the sole vendor implicated. No specific product sub‑versions are listed.

Risk and Exploitability

The EPSS score of < 1 % suggests a very low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, indicating no publicly documented exploits. However, the potential impact could still be very high because a stalled process can propagate to a system‑wide hang. The likely attack vector is local or remote privilege escalation that can mount a malicious or hung filesystem, such as a FUSE file system that performs process inspection. Based on the description, an attacker who can induce a blocking filesystem can trigger the deadlock; this inference is drawn from the stated behavior of do_close_on_exec() blocking on filesystem replies. The CVSS score of 5.5 assigns a medium severity rating, reflecting the described denial‑of‑service impact.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the fix that relocates do_close_on_exec() outside the exec_update_lock.
  • If an immediate kernel update is not possible, avoid mounting or using FUSE filesystems that inspect the calling process until the patch is applied; consider unmounting them or disabling relevant options.
  • Continuously monitor kernel logs for messages about deadlocks or blocked exec_update_lock operations and review processes that appear hung or stuck on close operations.

Generated by OpenCVE AI on October 16, 2026 at 23:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4841-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-613
Type Values Removed Values Added
Weaknesses CWE-833
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-613
Type Values Removed Values Added
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.
Title exec: do_close_on_exec() before taking exec_update_lock
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:18 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 14, 2026, 2:17 PM
Modified
Oct 19, 2026, 10:18 AM
Severity
Low
Public date
Oct 14, 2026, 12:00 AM