Race in Geolocation (CVE-2026-11145)
A race condition in Chrome's Android geolocation service could allow a website with only approximate location permission to receive precise GPS coordinates. If an approximate request is made while a precise request is active, queued precise callbacks may be mislabeled as approximate and routed to the approximate-only client.
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: A potential race condition in Chrome's Android geolocation service could allow websites with only approximate location permissions to receive precise GPS coordinates. If an approximate location request is initiated while a precise request is active, the provider changes its accuracy state, mislabeling already-queued precise OS callbacks as approximate. These uncoarsened precise coordinates are then routed to approximate-only clients, bypassing the permission boundary.
Affected files:
services/device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderGmsCore.javaservices/device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAndroid.javaservices/device/geolocation/geolocation_provider_impl.ccservices/device/geolocation/geolocation_impl.ccservices/device/geolocation/location_api_adapter_android.cc
Estimated timestamp from git blame: 2025-10-22
Vulnerability Details
When the kApproximateGeolocationPermission feature is enabled, Chrome enforces location accuracy by routing updates based on an is_precise flag attached to the Geoposition object. In GeolocationProviderImpl::NotifyClients, if is_precise is false, the update is forwarded to clients with only approximate location permissions without any additional coarsening applied by C++.
On Android, the is_precise flag is populated based on the value of a mutable Java instance variable, mRequestedHighAccuracy, located in LocationProviderAndroid or LocationProviderGmsCore. This variable is read dynamically at the exact moment the Android OS location callback (e.g., onLocationChanged) executes on the UI thread.
A race condition occurs because mRequestedHighAccuracy can be mutated by a new incoming request while earlier OS callbacks are still pending in the UI thread's MessageQueue.
Potential Sequence of Events
- High Accuracy Active: A trusted origin (Tab A) requests a precise location. The Java provider calls
start(true), settingmRequestedHighAccuracy = trueand requesting high-accuracy updates from the Android OS. - Callback Queued: The Android OS successfully acquires a precise GPS fix and queues a location callback onto the Android UI thread's
MessageQueue. - Attacker Joins: Before the callback executes, an attacker-controlled origin (Tab B) with only Approximate Location permission calls
navigator.geolocation.getCurrentPosition(). - Accuracy Downgrade:
GeolocationProviderImpl::OnClientsChangeddetects the new approximate client. To prevent leaking precise locations, it drops the provider to low accuracy by issuing astart(false)command to the Java layer. - State Mutated: The
start(false)call executes on the UI thread, immediately settingmRequestedHighAccuracy = false. Crucially, this does not purge the previously queued OS callbacks. - Mislabeled Update: The UI thread executes the queued callback containing the precise coordinates (from Step 2). The
onLocationChangedmethod reads the current mutated value ofmRequestedHighAccuracy(nowfalse) and passes the precise coordinates to C++ over JNI withis_precise = false. - Permission Bypass:
GeolocationProviderImpl::NotifyClientsinspects the flag, concludes the location is approximate, and routes the exact GPS coordinates to Tab B.
Potential Attacker Steps
Note: Our tooling agent does not currently have the ability to run code, so these are potential steps and a working Proof of Concept has not been explicitly verified in a live environment.
- An attacker sets up a malicious page that the user grants 'Approximate Location' permissions to.
- The attacker uses JavaScript to rapidly toggle
navigator.geolocation.watchPositionandclearWatchin a tight loop. - If the user simultaneously has another application, Chrome tab, or background process actively using precise location, the rapid toggling will probabilistically align the
start(false)state mutation with a queued precise OS callback. - The attacker's callback resolves with exact, uncoarsened coordinates.
Suggested Fix
To remediate this issue, the is_precise flag should not be derived from the global provider state (mRequestedHighAccuracy) at the time the callback is executed.
Instead, the requested accuracy could be bound to the LocationCallback instance itself. When start() replaces the callback, the old callback (if still in the queue) should retain its original accuracy context. Alternatively, Android's Location object may be inspected directly to determine if the provider naturally supplied a high-accuracy fix (e.g., based on the provider string or actual accuracy radius), rather than relying on the intent flag.
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.
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 is_precise flag is read from a mutable global state at callback execution time rather than being bound to the specific location request, so a later accuracy downgrade mislabels already-queued precise callbacks.
Impact
A website with only approximate location permission could receive precise GPS coordinates, but the report notes that a working proof of concept has not been verified in a live environment.
What the attacker needed
Victim grants approximate location permission; another app or tab uses precise location; attacker page toggles watchPosition rapidly
The fix
The is_precise flag should be bound to the specific location callback instance rather than read from global state at execution time, or the actual accuracy of the location should be inspected.
How it was found
- A trusted origin requests a precise location, setting high accuracy.
- The Android OS queues a precise location callback on the UI thread.
- An attacker-controlled origin with only approximate permission requests location.
- The provider downgrades to low accuracy, setting the flag to false without purging queued callbacks.
- The queued precise callback executes, reads the false flag, and passes precise coordinates as approximate.
- The precise coordinates are routed to the approximate-only client.
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.
Websites can ask for your location, and you can choose to share only an approximate area. This report describes a timing bug where, under certain conditions, a website that was only allowed approximate location might accidentally receive your exact GPS coordinates. The bug happens because the code checks a setting at the wrong moment, after a precise location has already been queued.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.