Cybersecurity Research

Obscure Linux socket feature let a Chrome renderer bug reach the kernel, Project Zero shows

Project Zero · 8 Aug 2025
Key Takeaway Keep Linux kernels and Chrome updated, and treat rarely used kernel features as attack surface worth disabling where you can.

Google Project Zero has described how a little-known Linux feature became a potential route from a compromised Chrome renderer to the kernel. While reviewing a new kernel feature in early June, a researcher learned about MSG_OOB, an option for stream-oriented UNIX domain sockets. Reviewing its implementation turned up a security bug, tracked as CVE-2025-38236, affecting Linux 6.9 and later. It was reported and fixed.

MSG_OOB lets a sender mark a single byte of "out-of-band" data that the recipient can read ahead of the rest of the queue. It was added in 2021 and is used almost nowhere apart from Oracle products. Even so, it is enabled by default whenever UNIX socket support is built into the kernel, and it could not be switched off in the kernel configuration until December 2024. Chrome does not use the feature, but its renderer sandbox allowed UNIX stream sockets and did not filter the flags passed to send() and recv(), so the feature was reachable from inside the sandbox. Chrome renderers have since been blocked from sending MSG_OOB messages.

The flaw was introduced by an earlier fix. In mid-2024, developers addressed an inconsistency where recv() could wrongly return 0, normally a sign the connection had ended, when the queue held an empty leftover message from an out-of-band read. That fix changed how the kernel tidies up these messages and led to two closely related use-after-free issues. It was backported only to Linux 6.9.8, so older long-term kernel branches did not receive the faulty change. Syzbot, Google's public kernel fuzzing system, later reported a use-after-free in this area.

The researcher says the bug is easy to trigger. The aim of the write-up was to test how hard it is to exploit from the Chrome Linux Desktop renderer sandbox on an x86-64 Debian Trixie system, going straight from native code execution in the renderer to the kernel. Exploit code has been posted on the Project Zero bug tracker.

Why it matters

Sandboxes assume that only features an application actually uses are reachable, but here an unused legacy kernel feature stayed exposed to renderer code, so a browser compromise could become a full system compromise. Organisations running Linux desktops or servers with kernels from 6.9 onward are exposed, and the bug shows that a security fix backported to some branches can itself introduce new flaws.

What to do

  • Update Linux kernels to a version containing the fix for CVE-2025-38236, especially systems running 6.9 or later.
  • Keep Chrome on Linux updated so the renderer block on MSG_OOB messages is applied.
  • Check whether your kernel build enables CONFIG_AF_UNIX_OOB and disable it if you do not need it.

Summarised by CISO AI from Project Zero, written with Claude Sonnet 5.5. We link back to every original so you can read it yourself.