Skip to content

CVE-2026-31430: Linux Kernel X.509 Certificate Parser Empty Extension Out-of-Bounds Read

HERMES

HERMES THREAT SCORE & LINUX KERNEL ATTACK SURFACE

Target: crypto/asymmetric_keys/x509_cert_parser.c (Kernel Cryptographic X.509 Parser)
Confidence: 95%
75 / 100
MEDIUM

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 18 / 20
Threat Activity 16 / 20
Weaponization 17 / 20
Exposure 18 / 20
Prevalence 19 / 20
Impact 18 / 20
Exploit Maturity 17 / 20
Attack Chain Potential 19 / 20
โš–๏ธ Divergence & Operational Rationale

CVSS v3.1 rates CVE-2026-31430 at 6.5 (MEDIUM, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L). The Hermes Threat Score evaluates operational impact at 75 (MEDIUM) considering kernel-level exploitation potential and critical subsystem placement.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-31430: Linux Kernel X.509 Certificate Parser Empty Extension Out-of-Bounds ReadVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTLinux Kernel Core
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in Linux Kernel Core documented in Hermes dossier.”

Supporting Verified Evidence:

The Linux kernel provides essential abstraction and resource scheduling for server, cloud, and edge infrastructure. Vulnerabilities in core subsystems like crypto/asymmetric_keys/x509_cert_parser.c (Kernel Cryptographic X.509 Parser) pose severe risks to multi-tenant workloads, container isolation, and bare-metal servers.

ParameterTechnical SpecificationThreat Intelligence Context
CVE IdentifierCVE-2026-31430Linux Kernel Stable Security Advisory
Vulnerable Subsystemcrypto/asymmetric_keys/x509_cert_parser.c (Kernel Cryptographic X.509 Parser)Core Linux Kernel Subsystem
Weakness ClassCWE-125: Out-of-bounds ReadMemory Safety / Boundary Verification Failure
CVSS v3.1 Score6.5 (MEDIUM / Hermes Score 75)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
Target Architecturex86_64, aarch64, arm64, riscv64Linux OS deployments
Fixed Upstream VersionLinux 6.18.22Distributed across LTS branches (6.6, 6.12, 6.18+)
MITRE ATT&CKT1553.004 - Subvert Trust Controls: Install Root Certificate, T1203 - Exploitation for Client ExecutionKernel Exploitation and Defense Evasion
Forensic Cross-ReferenceLinux Package and Binary Integrity VerificationMemory analysis and system artifact tracing

An examination of the vulnerable code in crypto/asymmetric_keys/x509_cert_parser.c (Kernel Cryptographic X.509 Parser) reveals how input sanitization and lifecycle state tracking fail under specific operational conditions.

// Bug in crypto/asymmetric_keys/x509_cert_parser.c
int x509_extract_key_data(void *context, size_t hdrlen, unsigned char tag,
const void *value, size_t vlen)
{
struct x509_parse_context *ctx = context;
/* VULNERABILITY: Assuming vlen >= 1 without checking! */
const u8 *p = value;
if (ctx->last_oid == OID_basicConstraints) {
/* If vlen == 0, reading p[0] reads past end of allocated buffer */
if (p[0] == 0x30 && vlen > 0) { ... }
}
return 0;
}

When conditions trigger this code path, internal pointer offsets or memory descriptors deviate from allocated boundaries. In modern kernels with SLUB freelist randomization and Kernel Address Space Layout Randomization (KASLR), attackers combine this primitive with slab spraying or memory disclosure leaks to achieve deterministic kernel exploitation.


  1. Initial Vector & Preconditions: An attacker with local user access invokes the add_key() syscall with a crafted DER certificate containing a zero-length Basic Constraints extension to load into the kernel keyring.
  2. Triggering Primitive: The attacker provides crafted parameters or invokes specific system calls that exercise the vulnerable path in crypto/asymmetric_keys/x509_cert_parser.c (Kernel Cryptographic X.509 Parser).
  3. Memory Corruption: VULNERABILITY: Assuming vlen >= 1 without checking!.
  4. Impact Realization: The corruption yields either instant denial of service (kernel panic, taking down mission-critical cloud instances) or elevation of privilege granting root access across container boundaries.

Security operations centers (SOC) and DFIR incident responders must leverage kernel crash analysis, system logs, and eBPF probes to detect exploitation attempts.

Kernel Ring Buffer (dmesg)

Inspect /var/log/dmesg or journalctl -k for crash signatures matching: BUG: KASAN: slab-out-of-bounds in x509_extract_key_data or General protection fault in asymmetric_key. Look for KASAN warnings or unhandled page faults in crypto/asymmetric_keys/x509_cert_parser.c.

sigma_kernel_cve_2026_31430.yaml
title: Linux Keyring add_key Ingestion of Malformed X.509 Certificate
id: cve-2026-31430
status: experimental
description: Detects kernel error signatures and abnormal syscall behaviors associated with CVE-2026-31430.
logsource:
category: kernel
product: linux
detection:
selection_dmesg:
- 'BUG:'
- 'crypto'
condition: selection_dmesg
fields:
- Message
- Hostname
falsepositives:
- Hardware memory faults or unpatched test suites
level: high

Immediate remediation requires updating the Linux kernel to patched upstream releases and implementing defense-in-depth mitigations.

  1. Kernel Upgrade: Apply distribution security updates providing Linux kernel version 6.18.22 or backported patches from your vendor (RHEL, Ubuntu, Debian, SUSE).
  2. Subsystem Isolation: Where the affected subsystem is compiled as a loadable kernel module (.ko), blacklist the module if not strictly required in /etc/modprobe.d/blacklist.conf.
  3. Kernel Hardening: Ensure sysctl -w kernel.kptr_restrict=2 and sysctl -w kernel.dmesg_restrict=1 to prevent unprivileged pointer disclosure.
  4. Runtime Integrity: For comprehensive persistent threat hunting, consult our guide on Linux Package and Binary Integrity Verification.