Skip to content
Access control Advisory Advanced CVE-2026-113343

Incorrect authorization in Sandbox (CVE-2026-113343)

The Chromium seccomp-BPF sandbox policy checked the wrong CPU register when filtering the legacy i386 mmap syscall, which actually reads its arguments from a memory structure. A compromised renderer could therefore pass restricted mmap flags such as MAP_HUGETLB and reach the hugetlbfs kernel subsystem that the sandbox intends to block.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team.

Overview: The __NR_mmap syscall (90) on i386 Linux uses a legacy ABI that takes a pointer to an argument struct, but the Chromium seccomp policy incorrectly filters it using register-based checks. This allows a compromised renderer to bypass mmap flag restrictions by providing safe flags in the checked register while hiding restricted flags like MAP_HUGETLB in the memory struct.

Affected files:

  • sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
  • sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc

Estimated timestamp from git blame: 2014-09-23

Background

On i386 Linux, the __NR_mmap syscall (syscall number 90) invokes the legacy sys_old_mmap kernel handler. Unlike modern system calls that pass arguments directly in CPU registers, sys_old_mmap takes a single argument in the %ebx register: a user-space pointer to a struct mmap_arg_struct. The kernel copies this structure from user memory to extract the actual mmap parameters (addr, len, prot, flags, fd, offset).

The Vulnerability

Chromium's Linux seccomp-BPF policy attempts to restrict the flags passed to mmap to reduce the kernel attack surface exposed to sandboxed processes. In sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc, the policy for __NR_mmap on i386 calls RestrictMmapFlags().

C++
// sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \
    defined(__aarch64__)
  if (sysno == __NR_mmap)
    return RestrictMmapFlags();
#endif

However, RestrictMmapFlags() (defined in sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc) incorrectly assumes the standard 6-register calling convention used by the newer mmap2 syscall:

C++
// sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
const Arg<int> flags(3);
return If((flags & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS());

On i386, Arg<int>(3) instructs the BPF filter to inspect the 4th argument register, which is %esi. Because the kernel's sys_old_mmap handler ignores %esi and instead reads the flags from the memory structure pointed to by %ebx, the seccomp filter checks the wrong location.

Impact

This ABI mismatch allows a compromised sandboxed process to bypass intended restrictions on mmap flags. Specifically, an attacker can access flags like MAP_HUGETLB, which exposes the hugetlbfs kernel subsystem. This subsystem has historically been a source of kernel vulnerabilities (e.g., Use-After-Free or race conditions) and is explicitly blocked by the sandbox policy to prevent privilege escalation.

Potential Exploitation Steps

An attacker with arbitrary code execution in the renderer process on an i386 system could exploit this bypass by following these steps:

  1. Allocate a buffer in memory to hold a crafted mmap_arg_struct.
  2. Populate the struct, setting the flags field to include restricted flags, such as MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB.
  3. Execute assembly to trigger the system call:
    • Set %eax = 90 (__NR_mmap).
    • Set %ebx to the address of the crafted struct.
    • Set %esi = 0x22 (MAP_PRIVATE | MAP_ANONYMOUS), which satisfies the sandbox's kAllowedMask.
    • Execute int 0x80.
  4. The seccomp filter inspects %esi, finds the allowed flags, and permits the system call.
  5. The kernel executes sys_old_mmap, reads the struct from memory, and applies the restricted MAP_HUGETLB flag, bypassing the sandbox.

Recommended Fix

Remove __i386__ from the #if block applying RestrictMmapFlags() to __NR_mmap in baseline_policy.cc.

Modern glibc-based systems use __NR_mmap2 (192) for memory mapping, which uses the standard register-based ABI and is correctly filtered by the existing policy. The legacy __NR_mmap (90) syscall should ideally be blocked outright on i386 (or explicitly fall through to a default deny) to prevent such structural bypasses.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The policy applied register-based argument checks written for the newer mmap2 syscall to the legacy i386 mmap syscall, which takes a pointer to an argument struct in a different register.

Impact

A process that already has code execution inside the renderer sandbox on i386 could reach the hugetlbfs subsystem, which has historically contained kernel vulnerabilities, potentially enabling privilege escalation.

What the attacker needed

Code execution in the renderer; i386 Linux build; seccomp-BPF sandbox enabled

The fix

The legacy i386 mmap syscall should be blocked outright or fall through to a default deny, and the register-based flag restriction should no longer be applied to it.

How it was found

  1. Allocate a buffer to hold a crafted mmap argument struct.
  2. Fill the struct with restricted flags such as MAP_HUGETLB.
  3. Trigger the legacy mmap syscall with the struct address in the register the kernel reads, while placing allowed flags in the register the filter inspects.
  4. The filter sees only allowed flags and permits the call.
  5. The kernel reads the struct and applies the restricted flags, bypassing the sandbox.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A sandbox is a set of rules that limits what a program can do if it gets taken over. On older 32-bit Intel Linux, one system call (a request to the operating system kernel) takes its settings from a block of memory rather than from the usual processor slots, but the sandbox rule looked at a processor slot instead. So a program could put harmless values where the rule looks and hidden, more dangerous values in the memory block, and the kernel would act on the hidden ones.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.