CVE-2026-68186
Received Received - Intake

NULL Pointer Dereference in Linux Kernel binfmt_misc

Vulnerability report for CVE-2026-68186, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-19

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-19
Generated
2026-08-30
AI Q&A
2026-08-10
EPSS Evaluated
2026-08-29
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux_kernel linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a Linux kernel vulnerability where a flag called have_execfd is set too early in the binary execution process. When the interpreter fails to open, the flag remains incorrectly set, leading to a NULL pointer dereference in begin_new_exec(). This causes a crash when the kernel tries to access a non-existent executable file.

Detection Guidance

This vulnerability is specific to the Linux kernel's binfmt_misc module and requires kernel-level inspection. Detection involves checking kernel logs for NULL pointer dereference errors during executable processing or verifying if binfmt_misc is enabled with user namespace support. Commands like 'dmesg | grep -i 'NULL pointer' or 'grep binfmt /proc/filesystems' may help identify exposure.

Impact Analysis

An unprivileged user could exploit this to crash the system by registering a malicious binfmt_misc entry with a FUSE mount interpreter that fails to open. This could lead to denial-of-service or potentially unauthorized code execution if combined with other vulnerabilities.

Compliance Impact

This vulnerability does not directly affect compliance with standards like GDPR or HIPAA as it is a Linux kernel issue related to binary execution and memory management. Compliance impacts would depend on system configuration and usage rather than the vulnerability itself.

Mitigation Strategies

Apply the latest Linux kernel security patches to address the NULL dereference flaw in binfmt_misc. Disable binfmt_misc if not needed or restrict its use to trusted users via mount namespace policies. Monitor kernel logs for exec-related crashes as a potential indicator of exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68186. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart