VDB

CVE-2026-68186

CVE-2026-68186 PUBLISHED

binfmt_misc: set have_execfd only once the interpreter is opened

Reported by linux · Published August 10, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-develAmazon Linux1:6.18.44-99.149.amzn2023
kernel-headersAmazon Linux1:6.1.186-228.374.amzn2023
kernel-livepatch-6.12.103-127.188Amazon Linux1:1.0-0.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.44-99.149.amzn2023
perf6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.12Amazon Linux1:6.12.103-127.188.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.186-228.374.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.44-99.149.amzn2023
perfAmazon Linux1:6.1.186-228.374.amzn2023
bpftoolAmazon Linux1:6.1.186-228.374.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.103-127.188.amzn2023

18 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinuxbc2bf338d54b7aadaed49bb45b9e10d4592b2a46, bc2bf338d54b7aadaed49bb45b9e10d4592b2a46, bc2bf338d54b7aadaed49bb45b9e10d4592b2a46
LinuxLinux5.8, 0, 5.10.265
amazon:2023kernel6.18-devel0
amazon:2023kernel-headers0
amazon:2023kernel-livepatch-6.12.103-127.1880
amazon:2023kernel6.18-tools0
amazon:2023perf6.180
amazon:2023kernel6.120
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-modules-extra0
amazon:2023perf0
amazon:2023bpftool0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.12-tools0
amazon:2023bpftool6.180
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel-tools0
amazon:2023bpftool6.120
amazon:2023kernel6.12-headers0

…and 18 more

Timeline

  • Aug 10, 2026 CVE Published
  • Aug 11, 2026 Coalition ESS Score
  • Aug 16, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score (18 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-68186
vulnetix vdb fixes CVE-2026-68186

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68186/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›