Overview

An Ikotas Labs engineer has again gained root privileges on hardened-v1-7.2-rc5, a target in Google’s kernelCTF vulnerability reward program for the Linux kernel. Starting as an unprivileged user, the engineer captured the flag that demonstrates successful privilege escalation. This is the second time an Ikotas Labs engineer has broken the target, following our first success in October.

As in October, Google offers a $71,337 reward for the winning submission that meets the program’s eligibility requirements. Google kernelCTF rules

Our submission, 1e287d87, captured the flag in an average of 10.37 milliseconds and scored 299.98963 out of 300.

Evaluation results for run 1e287d87 showing 20 successes in 20 runs, a mean of 10.37 milliseconds, and a score of 299.98963

From an unprivileged account to root

On Linux, the kernel limits which files and processes an ordinary user can access. The account Google provides at the start of kernelCTF cannot read the flag. Our engineer retrieved it by exploiting a kernel vulnerability to cross the privilege boundary between an ordinary user and the system administrator (root).

The target was the same hardened build of Linux 7.2-rc5 we broke in October. Google changed the kernel configuration and how kernel memory is allocated. kCFI and IBT restrict where execution can be redirected. KMALLOC_PARTITION_TYPED separates allocations for different types of data. The target also disables the io_uring asynchronous I/O interface and user namespaces. Our engineer captured the flag with these protections in place.

20 successful runs, the fastest in 8.7 milliseconds

Google runs each submitted exploit 20 times on the hardened kernel and scores it on success rate and mean time to capture the flag. At least 14 runs must succeed to qualify. Our submission achieved a 100% success rate, with times ranging from 8.7 to 17.3 milliseconds. Immediately after submissions closed on December 4, our entry ranked first with 299.9896 points on the Google kernelCTF public scoreboard.

Google kernelCTF scoreboard after submissions closed. Run 1e287d87 leads with 299.9896 points, followed by the second entry at 298.5722.

In the previous slot we entered, our October 19 submission, ca386d54, scored 299.9959 points. On November 25, Google confirmed it as the winning submission for that slot. October run results and Google’s decision

Vulnerability research for Linux-based products

Two products running the same kernel can have different exposure depending on the features they enable, the drivers they ship, and the operations available to ordinary users. Ikotas Labs investigates bugs under the configuration a product actually ships. We assess whether a bug can interrupt service or lead to root access, and which existing defenses limit its impact. Vulnerability research and technical assessments

For help investigating a kernel or driver vulnerability, or assessing a bug reported against your product, tell us which product is involved and what behavior you want to investigate. Contact Ikotas Labs