0.0
NA
CVE-2026-68186
binfmt_misc: set have_execfd only once the interpreter is opened
Description

In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: set have_execfd only once the interpreter is opened load_misc_binary() raises bprm->have_execfd as soon as it sees the 'O' (or 'C') flag. This happens well before it opens the interpreter. If that open fails the flag stays set on the bprm. binfmt_misc is at the head of the format list so an interpreter open failure that returns -ENOEXEC lets the search fall through to a later format. This means it runs the matched binary directly having never staged an interpreter. So bprm->executable is NULL while have_execfd falsely claims a descriptor is present. Consequently, begin_new_exec() dereferences the missing executable: would_dump(bprm, bprm->executable); and NULL derefs. Had it not, the hand-off later in the same function would have failed anyway. FD_ADD(0, bprm->executable) rejects a NULL file with -ENOMEM. Both sites are past the point of no return so the exec cannot be unwound either way. This can be reached by unprivileged users as binfmt_misc can be mounted in user namespaces. So a user can register an 'O' entry whose interpreter lives on a FUSE mount, have the FUSE server fail the open with -ENOEXEC and execute a native ELF file that matches the entry. have_execfd only means anything alongside the executable it describes which is not set until the interpreter has been opened and staged. So lets raise it there, next to execfd_creds, which is already set at that point. An open failure now leaves it clear, so the fallback format derives credentials from the binary and emits no AT_EXECFD, as it would for any native exec. The argv rewrite load_misc_binary() performs before the open is still not undone. This means the binary sees the interpreter path in argv[0] and its own path in argv[1] but that predates this change and only became observable once the exec stopped faulting.

INFO

Published Date :

Aug. 10, 2026, 1:20 p.m.

Last Modified :

Aug. 17, 2026, 5:18 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-68186 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Fix Linux kernel binfmt_misc to set have_execfd correctly, preventing null dereferences.
  • Update the Linux kernel.
  • Apply the fix to binfmt_misc handling.
  • Ensure interpreter open succeeds before setting have_execfd.
  • Test exec flow with modified binfmt_misc logic.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-68186 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-68186 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-68186 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-68186 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 17, 2026

    Action Type Old Value New Value
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '0f19d54e2524f0bf183b82f365ae4e49b4a2f788', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '2dd0298905e97795a9c5ec30cf5b41975f821632', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '1cd4e9b7967dab48c9f79a00b06ffff7208c0993', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '5ccc99d58f94fad258c9c375715b3974e48620e8', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': 'bbf5f639918dc011aaf60aab8480218758ee68c5', 'versionType': 'git'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '0f19d54e2524f0bf183b82f365ae4e49b4a2f788', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '2dd0298905e97795a9c5ec30cf5b41975f821632', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '1cd4e9b7967dab48c9f79a00b06ffff7208c0993', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '5ccc99d58f94fad258c9c375715b3974e48620e8', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': 'bbf5f639918dc011aaf60aab8480218758ee68c5', 'versionType': 'git'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}]
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 10, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '0f19d54e2524f0bf183b82f365ae4e49b4a2f788', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '2dd0298905e97795a9c5ec30cf5b41975f821632', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '1cd4e9b7967dab48c9f79a00b06ffff7208c0993', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': '5ccc99d58f94fad258c9c375715b3974e48620e8', 'versionType': 'git'}, {'status': 'affected', 'version': 'bc2bf338d54b7aadaed49bb45b9e10d4592b2a46', 'lessThan': 'bbf5f639918dc011aaf60aab8480218758ee68c5', 'versionType': 'git'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}]
    Added Description In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: set have_execfd only once the interpreter is opened load_misc_binary() raises bprm->have_execfd as soon as it sees the 'O' (or 'C') flag. This happens well before it opens the interpreter. If that open fails the flag stays set on the bprm. binfmt_misc is at the head of the format list so an interpreter open failure that returns -ENOEXEC lets the search fall through to a later format. This means it runs the matched binary directly having never staged an interpreter. So bprm->executable is NULL while have_execfd falsely claims a descriptor is present. Consequently, begin_new_exec() dereferences the missing executable: would_dump(bprm, bprm->executable); and NULL derefs. Had it not, the hand-off later in the same function would have failed anyway. FD_ADD(0, bprm->executable) rejects a NULL file with -ENOMEM. Both sites are past the point of no return so the exec cannot be unwound either way. This can be reached by unprivileged users as binfmt_misc can be mounted in user namespaces. So a user can register an 'O' entry whose interpreter lives on a FUSE mount, have the FUSE server fail the open with -ENOEXEC and execute a native ELF file that matches the entry. have_execfd only means anything alongside the executable it describes which is not set until the interpreter has been opened and staged. So lets raise it there, next to execfd_creds, which is already set at that point. An open failure now leaves it clear, so the fallback format derives credentials from the binary and emits no AT_EXECFD, as it would for any native exec. The argv rewrite load_misc_binary() performs before the open is still not undone. This means the binary sees the interpreter path in argv[0] and its own path in argv[1] but that predates this change and only became observable once the exec stopped faulting.
    Added Reference https://git.kernel.org/stable/c/0f19d54e2524f0bf183b82f365ae4e49b4a2f788
    Added Reference https://git.kernel.org/stable/c/1cd4e9b7967dab48c9f79a00b06ffff7208c0993
    Added Reference https://git.kernel.org/stable/c/2dd0298905e97795a9c5ec30cf5b41975f821632
    Added Reference https://git.kernel.org/stable/c/5ccc99d58f94fad258c9c375715b3974e48620e8
    Added Reference https://git.kernel.org/stable/c/bbf5f639918dc011aaf60aab8480218758ee68c5
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.