Detect Linux Kernel Incorrect Resource Transfer Between Spheres (CVE-2026-31431) in Elastic Security
CVE-2026-31431 is a Linux Kernel vulnerability classified as CWE-669 (Incorrect Resource Transfer Between Spheres). The flaw allows improper transfer of resources across security boundaries within the kernel, potentially enabling privilege escalation or unauthorized memory access. This vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild. Attackers with local access may exploit this to escalate privileges to root or escape container boundaries.
MITRE ATT&CK
Elastic Detection Query
sequence by host.name with maxspan=5m
[process where event.type == "start"
and process.name in ("bash", "sh", "python", "python3", "perl")
and process.parent.name in ("sshd", "apache2", "nginx", "httpd", "java")]
[file where event.type in ("creation", "change")
and file.path like~ "/proc/*/mem" or file.path like~ "/dev/mem"
or file.path like~ "/sys/kernel/*"]
[process where event.type == "start"
and user.name == "root"
and process.parent.user.name != "root"] EQL sequence detection for CVE-2026-31431 exploitation pattern: shell spawned from service process, followed by kernel memory interface access, culminating in privilege escalation to root from a non-root parent process.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate administrative scripts that access /proc filesystem for monitoring purposes
- Container runtime processes that legitimately interact with kernel interfaces
- Security scanning tools that probe /dev/mem or /proc/*/mem as part of authorized vulnerability assessments
Other platforms for CVE-2026-31431
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Simulate kernel copy boundary fault via /proc/kcore read attempt
Expected signal: Kernel message in dmesg showing access denial or fault; audit log SYSCALL record for 'open' or 'read' on /proc/kcore by non-root UID; possible kernel warning message about unauthorized memory access attempt
- Test 2Privilege escalation simulation via SUID binary abuse on unpatched kernel
Expected signal: Audit log SYSCALL record showing execve of test_suid with uid!=0 but euid=0; EDR process event showing SUID execution; possible AppArmor/SELinux denial log if MAC policy is enforced
- Test 3Container escape boundary test via /proc/sysrq-trigger probe
Expected signal: Host kernel log entries showing container namespace probe attempts; Docker daemon log entries for the test container; audit log entries showing file access attempts to /dev/mem or /proc/1/ from container process
Unlock Pro Content
Get the full detection package for CVE-2026-31431 including response playbook, investigation guide, and atomic red team tests.