{"api_version":"1","generated_at":"2026-08-22T14:50:29+00:00","cve":"CVE-2026-68186","urls":{"html":"https://cve.report/CVE-2026-68186","api":"https://cve.report/api/cve/CVE-2026-68186.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-68186","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-68186"},"summary":{"title":"binfmt_misc: set have_execfd only once the interpreter is opened","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinfmt_misc: set have_execfd only once the interpreter is opened\n\nload_misc_binary() raises bprm->have_execfd as soon as it sees the 'O'\n(or 'C') flag. This happens well before it opens the interpreter. If\nthat open fails the flag stays set on the bprm. binfmt_misc is at the\nhead of the format list so an interpreter open failure that returns\n-ENOEXEC lets the search fall through to a later format. This means it\nruns the matched binary directly having never staged an interpreter. So\nbprm->executable is NULL while have_execfd falsely claims a descriptor\nis present.\n\nConsequently, begin_new_exec() dereferences the missing executable:\n\n  would_dump(bprm, bprm->executable);\n\nand NULL derefs. Had it not, the hand-off later in the same function\nwould have failed anyway. FD_ADD(0, bprm->executable) rejects a NULL\nfile with -ENOMEM. Both sites are past the point of no return so the\nexec cannot be unwound either way.\n\nThis can be reached by unprivileged users as binfmt_misc can be mounted\nin user namespaces. So a user can register an 'O' entry whose\ninterpreter lives on a FUSE mount, have the FUSE server fail the open\nwith -ENOEXEC and execute a native ELF file that matches the entry.\n\nhave_execfd only means anything alongside the executable it describes\nwhich is not set until the interpreter has been opened and staged.\nSo lets raise it there, next to execfd_creds, which is already set at\nthat point. An open failure now leaves it clear, so the fallback format\nderives credentials from the binary and emits no AT_EXECFD, as it would\nfor any native exec. The argv rewrite load_misc_binary() performs before\nthe open is still not undone. This means the binary sees the interpreter\npath in argv[0] and its own path in argv[1] but that predates this\nchange and only became observable once the exec stopped faulting.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-10 13:20:05","updated_at":"2026-08-19 17:20:34"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/a8e9e9450df44e9dd529ec5beff283f48f4f4b97","name":"https://git.kernel.org/stable/c/a8e9e9450df44e9dd529ec5beff283f48f4f4b97","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a261dc49d99681c9c71f38d16e31812dc3e30412","name":"https://git.kernel.org/stable/c/a261dc49d99681c9c71f38d16e31812dc3e30412","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2dd0298905e97795a9c5ec30cf5b41975f821632","name":"https://git.kernel.org/stable/c/2dd0298905e97795a9c5ec30cf5b41975f821632","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5ccc99d58f94fad258c9c375715b3974e48620e8","name":"https://git.kernel.org/stable/c/5ccc99d58f94fad258c9c375715b3974e48620e8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0f19d54e2524f0bf183b82f365ae4e49b4a2f788","name":"https://git.kernel.org/stable/c/0f19d54e2524f0bf183b82f365ae4e49b4a2f788","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/40c09b7a1d4e0a4866042c87c2bd911bb57566c8","name":"https://git.kernel.org/stable/c/40c09b7a1d4e0a4866042c87c2bd911bb57566c8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1cd4e9b7967dab48c9f79a00b06ffff7208c0993","name":"https://git.kernel.org/stable/c/1cd4e9b7967dab48c9f79a00b06ffff7208c0993","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bbf5f639918dc011aaf60aab8480218758ee68c5","name":"https://git.kernel.org/stable/c/bbf5f639918dc011aaf60aab8480218758ee68c5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-68186","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68186","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 a8e9e9450df44e9dd529ec5beff283f48f4f4b97 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 a261dc49d99681c9c71f38d16e31812dc3e30412 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 40c09b7a1d4e0a4866042c87c2bd911bb57566c8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 0f19d54e2524f0bf183b82f365ae4e49b4a2f788 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 2dd0298905e97795a9c5ec30cf5b41975f821632 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 1cd4e9b7967dab48c9f79a00b06ffff7208c0993 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 5ccc99d58f94fad258c9c375715b3974e48620e8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc2bf338d54b7aadaed49bb45b9e10d4592b2a46 bbf5f639918dc011aaf60aab8480218758ee68c5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.265 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.216 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.183 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.148 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.101 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.42 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.6 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"68186","cve":"CVE-2026-68186","epss":"0.002000000","percentile":"0.101980000","score_date":"2026-08-19","updated_at":"2026-08-20 00:13:09"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/binfmt_misc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a8e9e9450df44e9dd529ec5beff283f48f4f4b97","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"a261dc49d99681c9c71f38d16e31812dc3e30412","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"40c09b7a1d4e0a4866042c87c2bd911bb57566c8","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"0f19d54e2524f0bf183b82f365ae4e49b4a2f788","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"2dd0298905e97795a9c5ec30cf5b41975f821632","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"1cd4e9b7967dab48c9f79a00b06ffff7208c0993","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"5ccc99d58f94fad258c9c375715b3974e48620e8","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"},{"lessThan":"bbf5f639918dc011aaf60aab8480218758ee68c5","status":"affected","version":"bc2bf338d54b7aadaed49bb45b9e10d4592b2a46","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/binfmt_misc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.265","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.216","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.183","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.148","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.101","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.42","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.265","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.216","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.183","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.148","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.101","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.42","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.6","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2","versionStartIncluding":"5.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinfmt_misc: set have_execfd only once the interpreter is opened\n\nload_misc_binary() raises bprm->have_execfd as soon as it sees the 'O'\n(or 'C') flag. This happens well before it opens the interpreter. If\nthat open fails the flag stays set on the bprm. binfmt_misc is at the\nhead of the format list so an interpreter open failure that returns\n-ENOEXEC lets the search fall through to a later format. This means it\nruns the matched binary directly having never staged an interpreter. So\nbprm->executable is NULL while have_execfd falsely claims a descriptor\nis present.\n\nConsequently, begin_new_exec() dereferences the missing executable:\n\n  would_dump(bprm, bprm->executable);\n\nand NULL derefs. Had it not, the hand-off later in the same function\nwould have failed anyway. FD_ADD(0, bprm->executable) rejects a NULL\nfile with -ENOMEM. Both sites are past the point of no return so the\nexec cannot be unwound either way.\n\nThis can be reached by unprivileged users as binfmt_misc can be mounted\nin user namespaces. So a user can register an 'O' entry whose\ninterpreter lives on a FUSE mount, have the FUSE server fail the open\nwith -ENOEXEC and execute a native ELF file that matches the entry.\n\nhave_execfd only means anything alongside the executable it describes\nwhich is not set until the interpreter has been opened and staged.\nSo lets raise it there, next to execfd_creds, which is already set at\nthat point. An open failure now leaves it clear, so the fallback format\nderives credentials from the binary and emits no AT_EXECFD, as it would\nfor any native exec. The argv rewrite load_misc_binary() performs before\nthe open is still not undone. This means the binary sees the interpreter\npath in argv[0] and its own path in argv[1] but that predates this\nchange and only became observable once the exec stopped faulting."}],"providerMetadata":{"dateUpdated":"2026-08-19T16:30:54.269Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a8e9e9450df44e9dd529ec5beff283f48f4f4b97"},{"url":"https://git.kernel.org/stable/c/a261dc49d99681c9c71f38d16e31812dc3e30412"},{"url":"https://git.kernel.org/stable/c/40c09b7a1d4e0a4866042c87c2bd911bb57566c8"},{"url":"https://git.kernel.org/stable/c/0f19d54e2524f0bf183b82f365ae4e49b4a2f788"},{"url":"https://git.kernel.org/stable/c/2dd0298905e97795a9c5ec30cf5b41975f821632"},{"url":"https://git.kernel.org/stable/c/1cd4e9b7967dab48c9f79a00b06ffff7208c0993"},{"url":"https://git.kernel.org/stable/c/5ccc99d58f94fad258c9c375715b3974e48620e8"},{"url":"https://git.kernel.org/stable/c/bbf5f639918dc011aaf60aab8480218758ee68c5"}],"title":"binfmt_misc: set have_execfd only once the interpreter is opened","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-68186","datePublished":"2026-08-10T11:59:58.299Z","dateReserved":"2026-07-30T09:28:09.373Z","dateUpdated":"2026-08-19T16:30:54.269Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-10 13:20:05","lastModifiedDate":"2026-08-19 17:20:34","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"68186","Ordinal":"1","Title":"binfmt_misc: set have_execfd only once the interpreter is opened","CVE":"CVE-2026-68186","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"68186","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinfmt_misc: set have_execfd only once the interpreter is opened\n\nload_misc_binary() raises bprm->have_execfd as soon as it sees the 'O'\n(or 'C') flag. This happens well before it opens the interpreter. If\nthat open fails the flag stays set on the bprm. binfmt_misc is at the\nhead of the format list so an interpreter open failure that returns\n-ENOEXEC lets the search fall through to a later format. This means it\nruns the matched binary directly having never staged an interpreter. So\nbprm->executable is NULL while have_execfd falsely claims a descriptor\nis present.\n\nConsequently, begin_new_exec() dereferences the missing executable:\n\n  would_dump(bprm, bprm->executable);\n\nand NULL derefs. Had it not, the hand-off later in the same function\nwould have failed anyway. FD_ADD(0, bprm->executable) rejects a NULL\nfile with -ENOMEM. Both sites are past the point of no return so the\nexec cannot be unwound either way.\n\nThis can be reached by unprivileged users as binfmt_misc can be mounted\nin user namespaces. So a user can register an 'O' entry whose\ninterpreter lives on a FUSE mount, have the FUSE server fail the open\nwith -ENOEXEC and execute a native ELF file that matches the entry.\n\nhave_execfd only means anything alongside the executable it describes\nwhich is not set until the interpreter has been opened and staged.\nSo lets raise it there, next to execfd_creds, which is already set at\nthat point. An open failure now leaves it clear, so the fallback format\nderives credentials from the binary and emits no AT_EXECFD, as it would\nfor any native exec. The argv rewrite load_misc_binary() performs before\nthe open is still not undone. This means the binary sees the interpreter\npath in argv[0] and its own path in argv[1] but that predates this\nchange and only became observable once the exec stopped faulting.","Type":"Description","Title":"binfmt_misc: set have_execfd only once the interpreter is opened"}]}}}