SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · News

Hunting miscompilations in Solana’s LLVM fork

Original article at OtterSec (opens in a new tab)

Source
OtterSec
Published
December 2, 2026
In the briefing
since December 1, 2026

Summary

In the first of a two-part blog post, a researcher at the security firm OtterSec describes a review of Solana's fork of the LLVM compiler, which turns Rust smart contracts into programs for Solana's SBPF instruction set. The author explains that the fork dates to 2018, shares much of its code with LLVM's BPF backend, and had never been fully audited. Because a miscompilation in the backend could silently introduce flaws into deployed programs whose source is correct, the team combined manual code review with a differential fuzzer it built to compare compiled behaviour, and used AI to help with review and proofs of concept. The bugs themselves are covered in part two.

Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

Read the full story at OtterSec (opens in a new tab)