# CVE-2026-68186: binfmt\_misc: set have\_execfd only once the interpreter is opened

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-08-10T11:59:58.299Z
- **Modified:** 2026-11-06T17:19:21.177Z

## Who should check

- Anyone running Linux \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< a8e9e9450df44e9dd529ec5beff283f48f4f4b97; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< a261dc49d99681c9c71f38d16e31812dc3e30412; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 40c09b7a1d4e0a4866042c87c2bd911bb57566c8; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 0f19d54e2524f0bf183b82f365ae4e49b4a2f788; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 2dd0298905e97795a9c5ec30cf5b41975f821632; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 1cd4e9b7967dab48c9f79a00b06ffff7208c0993; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 5ccc99d58f94fad258c9c375715b3974e48620e8; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< bbf5f639918dc011aaf60aab8480218758ee68c5
- Anyone running Linux 5.8

## 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.

## Affected and fixed versions

- Linux: \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< a8e9e9450df44e9dd529ec5beff283f48f4f4b97; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< a261dc49d99681c9c71f38d16e31812dc3e30412; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 40c09b7a1d4e0a4866042c87c2bd911bb57566c8; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 0f19d54e2524f0bf183b82f365ae4e49b4a2f788; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 2dd0298905e97795a9c5ec30cf5b41975f821632; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 1cd4e9b7967dab48c9f79a00b06ffff7208c0993; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 5ccc99d58f94fad258c9c375715b3974e48620e8; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< bbf5f639918dc011aaf60aab8480218758ee68c5 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68186. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68186.md
Affected: Linux >= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, < a8e9e9450df44e9dd529ec5beff283f48f4f4b97; >= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, < a261dc49d99681c9c71f38d16e31812dc3e30412; >= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, < 40c09b7a1d4e0a4866042c87c2bd911bb57566c8; >= bc2bf338d54b7aadaed49bb…
Fixed in: Linux 40c09b7a1d4e0a4866042c87c2bd911bb57566c8, Linux 0f19d54e2524f0bf183b82f365ae4e49b4a2f788, Linux 2dd0298905e97795a9c5ec30cf5b41975f821632, Linux 1cd4e9b7967dab48c9f79a00b06ffff7208c0993, Linux 5ccc99d58f94fad258c9c375715b3974e48620e8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68186 being exploited?

There is no confirmed exploitation: CVE-2026-68186 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68186?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-68186?

Linux \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< a8e9e9450df44e9dd529ec5beff283f48f4f4b97; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< a261dc49d99681c9c71f38d16e31812dc3e30412; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 40c09b7a1d4e0a4866042c87c2bd911bb57566c8; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 0f19d54e2524f0bf183b82f365ae4e49b4a2f788; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 2dd0298905e97795a9c5ec30cf5b41975f821632; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 1cd4e9b7967dab48c9f79a00b06ffff7208c0993; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< 5ccc99d58f94fad258c9c375715b3974e48620e8; \>= bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, \< bbf5f639918dc011aaf60aab8480218758ee68c5; Linux 5.8.

### Is there a fix for CVE-2026-68186?

Yes. Fixed in Linux 40c09b7a1d4e0a4866042c87c2bd911bb57566c8, Linux 0f19d54e2524f0bf183b82f365ae4e49b4a2f788, Linux 2dd0298905e97795a9c5ec30cf5b41975f821632, Linux 1cd4e9b7967dab48c9f79a00b06ffff7208c0993, Linux 5ccc99d58f94fad258c9c375715b3974e48620e8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-68186?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/a8e9e9450df44e9dd529ec5beff283f48f4f4b97>
- other: <https://git.kernel.org/stable/c/a261dc49d99681c9c71f38d16e31812dc3e30412>
- other: <https://git.kernel.org/stable/c/40c09b7a1d4e0a4866042c87c2bd911bb57566c8>
- other: <https://git.kernel.org/stable/c/0f19d54e2524f0bf183b82f365ae4e49b4a2f788>
- other: <https://git.kernel.org/stable/c/2dd0298905e97795a9c5ec30cf5b41975f821632>
- other: <https://git.kernel.org/stable/c/1cd4e9b7967dab48c9f79a00b06ffff7208c0993>
- other: <https://git.kernel.org/stable/c/5ccc99d58f94fad258c9c375715b3974e48620e8>
- other: <https://git.kernel.org/stable/c/bbf5f639918dc011aaf60aab8480218758ee68c5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68186>

HTML: <https://flawdb.com/CVE-2026-68186> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68186>
