CVE-2026-68186

binfmt_misc: set have_execfd only once the interpreter is opened

No CVSS score yet EPSS 0.22%

Published 10 Aug 2026 Updated 6 Nov 2026 CNA: Linux

Check your servers for CVE-2026-68186

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-68186 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 6 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before a8e9e9450df44e9dd529ec5beff283f48f4f4b97
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before a261dc49d99681c9c71f38d16e31812dc3e30412
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before 40c09b7a1d4e0a4866042c87c2bd911bb57566c8
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before 0f19d54e2524f0bf183b82f365ae4e49b4a2f788
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before 2dd0298905e97795a9c5ec30cf5b41975f821632
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before 1cd4e9b7967dab48c9f79a00b06ffff7208c0993
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before 5ccc99d58f94fad258c9c375715b3974e48620e8
affected from bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, before bbf5f639918dc011aaf60aab8480218758ee68c5
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.10.265 up to and including 5.10.*
unaffected from 5.15.216 up to and including 5.15.*
unaffected from 6.1.183 up to and including 6.1.*
unaffected from 6.6.148 up to and including 6.6.*
unaffected from 6.12.101 up to and including 6.12.*
unaffected from 6.18.42 up to and including 6.18.*
unaffected from 7.1.6 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-68186 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-68186

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-68186
trivy image --scanners vuln IMAGE | grep CVE-2026-68186

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-68186 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.