Inappropriate implementation in WebXR (CVE-2026-18005)
Blink's WebXR cubemap upload passes raw renderer heap pointers to TexImage2D without unbinding a client-bound pixel unpack buffer, so the GLES2 client treats the pointer as a byte offset and truncates it to 32 bits. An attacker could potentially recover the lower 32 bits of a renderer heap address, weakening ASLR for that process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential vulnerability in Blink's WebXR implementation can allow a malicious page to leak the lower 32 bits of a renderer-process heap address. The issue occurs because XRCubeMap::updateWebGLEnvironmentCube passes raw heap pointers to TexImage2D without unbinding the active GL_PIXEL_UNPACK_BUFFER. When a PBO is bound, the client-side GLES2 implementation interprets these pointers as byte offsets, allowing an attacker to determine their values.
Affected files:
third_party/blink/renderer/modules/xr/xr_cube_map.ccthird_party/blink/renderer/modules/xr/xr_webgl_binding.cc
Estimated timestamp from git blame: 2020-01-16
Description
A potential information leak vulnerability exists in Blink's WebXR implementation where the lower 32 bits of a renderer process heap address can be disclosed.
Root Cause
When a WebGL2 page requests an environmental reflection cubemap, Blink calls XRCubeMap::updateWebGLEnvironmentCube in third_party/blink/renderer/modules/xr/xr_cube_map.cc to upload the cubemap image data to a texture.
The function instantiates ScopedUnpackParametersResetRestore to temporarily reset the WebGL unpack parameters. However, this helper only resets the pixel store state (like GL_UNPACK_ALIGNMENT and GL_UNPACK_ROW_LENGTH); it does not unbind the client-bound pixel unpack buffer (GL_PIXEL_UNPACK_BUFFER).
When a GL_PIXEL_UNPACK_BUFFER remains bound, the underlying command buffer client in GLES2Implementation::TexImage2D (gpu/command_buffer/client/gles2_implementation.cc) treats the pixels data pointer as an offset within the PBO rather than a client-side CPU pointer. It coerces the pointer using ToGLuint(pixels) which truncates the 64-bit heap address to its lower 32 bits:
inline uint32_t ToGLuint(const void* ptr) {
return static_cast<uint32_t>(reinterpret_cast<size_t>(ptr));
}
This coerced 32-bit offset is then transmitted to the GPU process via IPC.
Because both code branches in updateWebGLEnvironmentCube pass raw renderer-heap pointers—either a newly-allocated temporary conversion vector (sRGB.data()) or the persistent backing stores of the cubemap image spans (image.data())—the low 32 bits of these PartitionAlloc heap addresses are serialized and treated as a PBO offset.
Potential Attack Scenario
An attacker could potentially execute the following steps to exploit this leak:
- Initialize a WebGL2 context and bind a client-side Pixel Buffer Object (PBO) to the
GL_PIXEL_UNPACK_BUFFERtarget viagl.bindBuffer(). - Obtain an immersive-AR session with the
light-estimationfeature enabled on a supported device (e.g., Android with ARCore) and request a light probe. - Retrieve the environmental cubemap texture by calling
binding.getReflectionCubeMap(lightProbe). - Systematically binary search the offset value by varying the allocated size of the PBO and monitoring for
GL_INVALID_OPERATIONviagl.getError()(triggered whenoffset + image_size > pbo_size). Alternatively, the attacker could read back the uploaded texture data to determine the byte layout. - Recover the lower 32 bits of the heap pointer, effectively bypassing/weakening ASLR for the renderer process.
Note: Since our automated tooling lacks the capability to execute code or build functional exploits on target hardware, these steps are suggested and theoretical.
Suggested Fix
To resolve this issue, ensure that any bound GL_PIXEL_UNPACK_BUFFER is temporarily unbound before invoking TexImage2D inside XRCubeMap::updateWebGLEnvironmentCube, and restored afterward. This can be accomplished by expanding ScopedUnpackParametersResetRestore to handle the PIXEL_UNPACK_BUFFER binding or by adding an explicit unbind scope in updateWebGLEnvironmentCube:
// Temporarily unbind pixel unpack buffer if bound
if (context->ValdiateUnpackParameters(...)) {
gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
}
Evaluated with Chrome root at commit: b2fea2e31df308d0f04e4ae47def4c4f939ee141
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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.
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
Likely the unpack-parameter reset helper only restores pixel store state and does not unbind GL_PIXEL_UNPACK_BUFFER, so the raw pointer is coerced to a 32-bit PBO offset.
Impact
An attacker could potentially learn the lower 32 bits of a renderer heap address, weakening ASLR, though the report notes the steps are theoretical and were not executed.
What the attacker needed
WebGL2 page; immersive-AR session with light estimation; supported AR hardware
The fix
The bound pixel unpack buffer should be temporarily unbound before TexImage2D is called and restored afterwards, for example by extending the reset helper or adding an explicit unbind scope.
How it was found
- Create a WebGL2 context and bind a client-side pixel buffer object to the unpack buffer target.
- Get an immersive AR session with light estimation on supported hardware and request a light probe.
- Fetch the reflection cubemap through the binding.
- Probe the offset by changing the buffer size and watching for GL_INVALID_OPERATION, or read back the texture.
- Derive the lower 32 bits of the heap pointer.
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.
Web pages can use WebGL to draw 3D graphics, and a buffer object can be bound so that image data is read from it instead of from normal memory. In this code path the browser forgot to unbind that buffer, so a memory address got treated as a position inside the buffer and its top half was cut off. That leaks part of where things sit in memory, which makes some attacks easier but does not by itself let anyone run code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.