arXiv:2609.02647cs.CRSep 2026

Manuscript Offprint

arXiv:2609.02647

PrimSynth: An Agentic Approach to Discover, Validate, and Synthesize Exploit Primitives for Linux Kernel Vulnerabilities

Pengfei Wang, Anying Chen, Danjun Liu, Xu Zhou, Wei Xie

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Pengfei Wang¹, Anying Chen², Danjun Liu¹, Xu Zhou¹, Wei Xie¹

  1. National University of Defense Technology, 2. Clouditera

Abstract—Linux kernel vulnerabilities are critical to downstream systems. Despite extensive research on automated kernel exploitation, a fundamental challenge remains the conceptual gap between abstract exploit strategies and concrete technical operations. To fill this gap, this paper introduces a systematic characterization that formalizes six classes of exploit primitives from logical capability to validatable effect. Then, an extended exploit strategy representation is proposed, which couples primitive upgrading strategies with primitive path code synthesis rules governing object constraints, temporal sequencing, environment prerequisites, and validation constraints. Building upon this foundation, this paper presents PRIMSYNTH, a multi-agent framework that encapsulates these representations through coordinated agents to discover, validate, and synthesize exploit primitives for memory corruption vulnerabilities in the Linux kernel. These agents operate in an iterative closed loop until valid primitives are found, leveraging validation signals as evidence of exploitable state transitions to ground primitive synthesis decisions. An automated method for extracting and validating primitives is also proposed based on vulnerability-directed execution and a rebootable validation environment. PRIMSYNTH is evaluated on 16 real-world Linux kernel CVEs spanning 5 vulnerability types. Experimental results show that PRIMSYNTH achieves reliable primitive extraction, maintaining a 100% primitive match rate. For primitive synthesis, PRIMSYNTH successfully synthesizes multi-primitive exploitation chains with 82.4% strategy synthesis rate (SSR) when the public PoC is available and a 61.3% SSR without the guidance of primitive hypotheses. For efficiency, PRIMSYNTH completes end-to-end primitive synthesis in 72.4s on average, significantly outperforming semi-automated analysis or manual analysis that require hours to days.

Index Terms—Exploit primitive, automated exploit generation, primitive extraction, primitive synthesis.

I. INTRODUCTION

The Linux kernel serves as the upstream source for all open-source or commercial distributions, and its security vulnerabilities propagate into downstream systems governing cloud infrastructure, web services, and embedded devices. Therefore, research on systematic reproduction and automated exploitability assessment of kernel vulnerabilities is proliferating [1]–[3].

Automated exploitation of the Linux kernel has been a longstanding open problem. The main challenge lies in the gap between the conceptual exploit strategies and the procedurally technical operations. Much of this diverse and nuanced knowledge resides only in the minds of human experts. To bridge the knowledge gap in Linux kernel exploitation techniques, the concept of exploit primitives has been proposed. An exploit primitive refers to a program state that violates security requirements and enables an attacker to gain capabilities beyond

those provided by the original program. By providing a unified and formal framework, exploit primitives make vulnerability exploitation analysis more systematic and comparable.

Current research on exploit primitives typically targets a single vulnerability type or a single exploitation phase. As a result, operations used to realize one primitive are difficult to transfer into reproducible primitives in subsequent chainable phases. In addition, prior research on primitive mainly emphasizes target-object discovery and heap layout manipulation, but lacks a general validation methodology that can reliably localize candidate primitives and support further identification and extraction. Existing primitive analysis tends to focus on vulnerability-triggering paths, while the broader impact and composability of reproducible primitives are rarely evaluated because such assessments are labor-intensive. Although fast-growing LLM (Large Language Model) driven agents can generate PoCs for specific vulnerabilities [4], the process is consumptive, and the results are unstable without formal guidance on primitive composition. Therefore, automated exploit generation (AEG) still faces challenges due to the lack of: (i) systematic characterization of validated and potential primitives; (ii) a general method to determine primitive availability for specific Linux kernel versions; and (iii) retrospective understanding of strategic primitive synthesis at different sophistication levels. This gap motivates three research questions: (1) How to classify and model the primitives in the general exploitation stage? (2) How to accurately and reliably extract exploit primitives for memory corruption vulnerabilities in the Linux kernel? (3) How to synthesize and chain primitives automatically?

In this paper, we reformulate the end-to-end code generation problem into a primitive path optimization problem, iteratively discovering, validating, and synthesizing known and previously unknown primitives until finding solvable path and capable program states, merging the hard-coded patterns of known exploit primitives and the unshaped code paths into agentic primitives in concrete validation environments to reach reproducible and composable confirmation in the agentic loops. To do so, we propose a tool-augmented multi-agent framework named PRIMSYNTH to automatically discover, validate, synthesize, and chain exploit primitives. The framework couples five executable units: (i) vulnerability-directed execution based on directed fuzzing; (ii) LangChain-based agent orchestration for plan → tool selection → action → critique → feedback cycles; (iii) MCP-accessible tool adapters for observation, validation, and synthesis; (iv) a knowledge base that stores structural vulnerability facts for primitive analysis based on the knowledge graph; and (v) a rebootable validation environment built from QEMU and instrumented kernel images for specific target versions.

PRIMSYNTH is extensively evaluated on 16 real-world Linux kernel CVE vulnerabilities, the results demonstrate a strategy synthesis rate (SSR) of 82.4% with public PoC guidance and 61.3% without, achieving 77.1% overall with an average runtime of 72.4 seconds. These results have three key implications for automated kernel exploitation research. First, the strong performance under incomplete information validates that PRIMSYNTH's iterative validation feedback mechanism effectively compensates for the absence of prior guidance, enabling practical zero-day analysis. Second, the interactive timescale (under 75 seconds) positions primitive synthesis as a usable tool for real-time security assessment workflows. Third, the successful synthesis of multi-step primitive chains across diverse vulnerability classes demonstrates that agentic approaches combining LLM-based reasoning with dynamic validation can achieve practical performance on vulnerability exploitability evaluation.

The main contributions of this work are as follows:

  • We propose a systematic characterization (modeling, classification, and formalization) of exploit primitives, grounded by their identical capability or strategy pattern, which facilitates agent-based automatic primitive identification and synthesis.
  • We develop an automated method for identifying and validating primitives based on vulnerability-directed execution and a rebootable validation environment, which improves candidate objects grounding and accumulated primitive reproduction by path exploration under incomplete information.
  • We design and implement PRIMSYNTH, a tool-augmented multi-agent framework with iterative feedback loops to discover, validate, and synthesize multi-primitive paths beyond single-class primitive settings. An anonymous artifact package is available at: https://anonymous.4open.science/r/PrimSynth-8B7A.
  • We evaluate PRIMSYNTH on 16 real-world Linux kernel CVE vulnerabilities across 5 types. Results show that PRIMSYNTH achieves reliable primitive extraction, maintaining 100% primitive match rate (PMR). For primitive synthesis, PRIMSYNTH successfully synthesizes multi-primitive exploitation chains with 82.4% SSR when the public PoC is available and a 61.3% SSR without public PoC guidance. As for efficiency, PRIMSYNTH completes end-to-end primitive synthesis in 72.4s on average, significantly outperforming semi-automated analysis or manual analysis that require hours to days.

References (30)