Skip to content
Memory corruption Advisory Advanced CVE-2026-11152

Object lifecycle issue in Dawn (CVE-2026-11152)

In Dawn's Vulkan backend, a closed external semaphore handle was not cleared, so if exporting a new semaphore failed, the stale file descriptor remained and was closed again during object destruction. An attacker could potentially cause file descriptor confusion in the GPU process, though no working exploit was demonstrated.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 53 days

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: In Dawn's Vulkan backend, ImportedTextureBase::OnAfterSubmit closes an external semaphore handle but does not immediately clear the member variable. If the subsequent semaphore export fails, the variable retains the stale file descriptor, which is closed again during object destruction, potentially causing file descriptor confusion in the GPU process.

Affected files:

  • third_party/dawn/src/dawn/native/vulkan/TextureVk.cpp

Estimated timestamp from git blame: 2025-02-25

Vulnerability Details

A potential stale-FD double-close vulnerability exists in Dawn's Vulkan backend within the ImportedTextureBase class. The issue arises when an external semaphore handle is closed but not nullified, followed by a failing operation that prevents the handle from being updated.

In third_party/dawn/src/dawn/native/vulkan/TextureVk.cpp, the function ImportedTextureBase::OnAfterSubmit() handles the rotation of external semaphores after a Vulkan queue submission:

C++
MaybeError ImportedTextureBase::OnAfterSubmit() {
    Device* device = ToBackend(GetDevice());

    // The submit succeeded, we can replace the previous external semaphore with the pending one.
    if (mExternalSemaphoreHandle != kNullExternalSemaphoreHandle) {
        device->GetExternalSemaphoreService()->CloseHandle(mExternalSemaphoreHandle);
    }

    DAWN_TRY_ASSIGN(mExternalSemaphoreHandle,
                    device->GetExternalSemaphoreService()->ExportSemaphore(mPendingSemaphore));
    // ...
}

At line 1854, CloseHandle(mExternalSemaphoreHandle) is called (which maps to close(fd) on POSIX platforms), but mExternalSemaphoreHandle is not reset to kNullExternalSemaphoreHandle.

At line 1857, the DAWN_TRY_ASSIGN macro is used to export a new semaphore and assign it to the handle. If ExportSemaphore returns an error, DAWN_TRY_ASSIGN returns early from the function before the assignment occurs. Consequently, mExternalSemaphoreHandle retains the integer value of the file descriptor that was just closed.

Although the error triggers a Dawn device loss, the texture object remains alive until its reference count drops to zero. When the object is eventually destroyed, the destructor ~ImportedTextureBase() executes:

C++
ImportedTextureBase::~ImportedTextureBase() {
    if (mExternalSemaphoreHandle != kNullExternalSemaphoreHandle) {
        ToBackend(GetDevice())
            ->GetExternalSemaphoreService()
            ->CloseHandle(mExternalSemaphoreHandle);
        mExternalSemaphoreHandle = kNullExternalSemaphoreHandle;
    }
}

Since mExternalSemaphoreHandle still holds the old, now-stale FD value, a second close() is performed.

Potential Attack Scenario

An attacker could potentially exploit this by deliberately exhausting the GPU process's file descriptor limit:

  1. The attacker creates a Web page that spawns multiple Web Workers to continuously allocate resources that consume file descriptors in the GPU process (e.g., WebGL textures backed by shared memory), pushing the process near its FD limit.
  2. The attacker uses the WebGPU API to import an external video frame or SharedImage, creating an ExternalVkImageTexture.
  3. The attacker submits a command buffer that uses this texture, causing mExternalSemaphoreHandle to be populated with a valid FD.
  4. The attacker submits another command buffer using the texture. In OnAfterSubmit(), the existing mExternalSemaphoreHandle is closed.
  5. During the brief window after the close, one of the attacker's background workers successfully allocates a new FD (e.g., a Mojo data pipe). The OS assigns it the exact FD number just released, exhausting the FD limit again.
  6. ExportSemaphore calls vkGetSemaphoreFdKHR. Because the FD limit is exhausted, this fails (e.g., VK_ERROR_OUT_OF_HOST_MEMORY).
  7. DAWN_TRY_ASSIGN returns early, leaving the stale FD value in mExternalSemaphoreHandle.
  8. The error causes device loss. The attacker triggers garbage collection of the texture object, invoking ~ImportedTextureBase().
  9. The destructor calls CloseHandle() on the stale FD, inadvertently closing the unrelated FD allocated by the background worker in step 5.

This leads to FD-aliasing and potential FD type-confusion, which could be exploited to disrupt the GPU process or potentially achieve a sandbox escape or remote code execution by manipulating sensitive kernel objects associated with the reused FD.

Note: These are suggested steps based on static analysis; we do not currently have a working proof of concept to demonstrate this exploit end-to-end.

Suggested Fix

Clear the handle immediately after closing it in ImportedTextureBase::OnAfterSubmit():

C++
    if (mExternalSemaphoreHandle != kNullExternalSemaphoreHandle) {
        device->GetExternalSemaphoreService()->CloseHandle(mExternalSemaphoreHandle);
        mExternalSemaphoreHandle = kNullExternalSemaphoreHandle; // ADD THIS LINE
    }

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 code closed the external semaphore handle without resetting it to the null value, and an early return on export failure left the stale handle in place.

Impact

This could lead to file descriptor aliasing and type confusion, potentially disrupting the GPU process or enabling a sandbox escape or remote code execution, but no proof of concept was demonstrated.

What the attacker needed

WebGPU access in the browser; Ability to exhaust GPU process file descriptors; No working exploit demonstrated

The fix

The handle should be cleared immediately after closing it in OnAfterSubmit.

How it was found

  1. Exhaust the GPU process's file descriptor limit using Web Workers and WebGL textures.
  2. Import an external video frame or SharedImage via WebGPU to create an ExternalVkImageTexture.
  3. Submit a command buffer using the texture to populate the semaphore handle with a valid file descriptor.
  4. Submit another command buffer; OnAfterSubmit closes the existing handle.
  5. A background worker allocates a new file descriptor that reuses the just-freed number.
  6. ExportSemaphore fails due to the exhausted limit, leaving the stale handle; later destruction closes the reused descriptor.

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 file descriptor is a small number the operating system uses to track an open file or resource. The code closed one but forgot to erase its number, so later it closed the same number again, which by then might belong to something else. This mix-up could confuse the GPU process, but the report only describes a possible attack, not a proven one.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.