Artfical AI Open tAI →
← All announcements

tAI 4.2 Finds a Real Kernel Vulnerability

August 19, 2026 · Security

While reviewing Artfical tOS (our own kernel, written from scratch), tAI 4.2 caught a race condition that would crash any userspace program on its first blocking keyboard read.

Most of what we ask a model to do with code is generate it. This time we pointed tAI 4.2 at an existing, already-shipping codebase and asked it to review, not write, and it came back with a genuine, exploitable kernel bug, scored and published the same way any real CVE would be.

ASI-2026-0013
MEDIUM CVSS 5.5 Fixed Published Aug 14, 2026

What it found

In keyboard_poll() of keyboard.c, an unconditional sti at the end of the function re-enabled maskable interrupts regardless of the caller's context. That function is reachable from keyboard_getchar(), which a ring3 userspace program can block on via SYS_READ, entered through the int $0x80 gate (which clears the interrupt flag for the duration of the syscall by design).

The unconditional sti silently re-enabled interrupts in the middle of that syscall handler, letting the 100Hz PIT timer preempt mid-handler: a nested hardware interrupt firing while the CPU was already inside another interrupt's own trap-gate handler. That corrupted ring3 register and stack state on return to userspace, producing a reliable General Protection Fault the moment a program performed its first blocking keyboard read.

Any ring3 program using tos_read() / tos_readline() on stdin could trigger this deterministically: full denial of service, via the kernel's own unrecoverable panic handler.

Affected platforms
Artfical tOS < 0.9.156
Weakness type
CWE-667: Improper Locking CWE-362: Race Condition CWE-696: Incorrect Behavior Order
Detected by
ArtficalAI tAI 4.2

References

The fix was small: scope the sti to only run when interrupts were actually enabled on entry. But finding it required actually tracing interrupt-flag state across a syscall boundary, not just pattern-matching on suspicious code. That's the kind of review we built tAI 4.2 for.