Insufficient data validation in V8 API (CVE-2024-7974)
A Chrome extension could pass a string containing invalid UTF-8 characters to a V8 API, causing a fatal check failure in the browser process. This results in a crash of the renderer, which could be used for denial of service.
- Fix shipped in 4 months
Security Bug
Important: Please do not change the component of this bug manually.
Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md
Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs
Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp
NOTE: Security bugs are normally made public once a fix has been widely deployed.
VULNERABILITY DETAILS Please provide a brief explanation of the security issue.
VERSION Chrome Version: [Chromium 126.0.6464.0 ] + [dev] Operating System:ubuntu
REPRODUCTION CASE chrome --load-extension="/home/ubuntu/dev/report" --no-sandbox
Please attach files directly, not in zip or other archive formats, and if you've created a demonstration site please also attach the files needed to reproduce the demonstration locally.
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: [extension] Crash State: [1749384:1749384:0507/205933.187938:FATAL:values.cc(195)] Check failed: IsStringUTF8AllowingNoncharacters(GetString()). #0 0x7e2907d661bc base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1043:7] #1 0x7e2907d17355 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:241:20] #2 0x7e2907d172e5 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:236:28] #3 0x7e2907a3563f logging::LogMessage::Flush() [../../base/logging.cc:715:29] #4 0x7e2907a35567 logging::LogMessage::~LogMessage() [../../base/logging.cc:703:3] #5 0x7e29079dcdd5 logging::(anonymous namespace)::DCheckLogMessage::~DCheckLogMessage() [../../base/check.cc:166:3] #6 0x7e29079dcdf9 logging::(anonymous namespace)::DCheckLogMessage::~DCheckLogMessage() [../../base/check.cc:161:32] #7 0x7e29079ddbdc std::__Cr::default_delete<>::operator()() [../../third_party/libc++/src/include/__memory/unique_ptr.h:67:5] #8 0x7e29079dd13a std::__Cr::unique_ptr<>::reset() [../../third_party/libc++/src/include/__memory/unique_ptr.h:278:7] #9 0x7e29079dc71d logging::CheckError::~CheckError() [../../base/check.cc:349:16] #10 0x7e2907cc7222 base::Value::Value() [../../base/values.cc:195:3] #11 0x7e2905397476 std::__Cr::make_unique<>() [../../third_party/libc++/src/include/__memory/unique_ptr.h:620:30] #12 0x7e2905391da2 content::V8ValueConverterImpl::FromV8ValueImpl() [../../content/renderer/v8_value_converter_impl.cc:393:12] #13 0x7e2905391238 content::V8ValueConverterImpl::FromV8Value() [../../content/renderer/v8_value_converter_impl.cc:237:10] #14 0x5e062052a6fe extensions::ArgumentSpec::ParseArgumentToAny() [../../extensions/renderer/bindings/argument_spec.cc:731:20] #15 0x5e0620526e07 extensions::ArgumentSpec::ParseArgument() [../../extensions/renderer/bindings/argument_spec.cc:323:14] #16 0x5e0620528fe5 extensions::ArgumentSpec::ParseArgumentToObject() [../../extensions/renderer/bindings/argument_spec.cc:576:25] #17 0x5e0620526895 extensions::ArgumentSpec::ParseArgument() [../../extensions/renderer/bindings/argument_spec.cc:295:14] #18 0x5e062051c456 extensions::(anonymous namespace)::ArgumentParser::ParseArgument() [../../extensions/renderer/bindings/api_signature.cc:374:13] #19 0x5e062051bb90 extensions::(anonymous namespace)::ArgumentParser::ParseArgumentsImpl() [../../extensions/renderer/bindings/api_signature.cc:269:10] #20 0x5e062051a0f7 extensions::(anonymous namespace)::BaseValueArgumentParser::ParseArguments() [../../extensions/renderer/bindings/api_signature.cc:433:8] #21 0x5e0620519fdc extensions::APISignature::ParseArgumentsToJSON() [../../extensions/renderer/bindings/api_signature.cc:585:8] #22 0x5e06204c1b01 extensions::APIBinding::HandleCall() [../../extensions/renderer/bindings/api_binding.cc:685:22] #23 0x5e06204c8aad base::internal::DecayedFunctorTraits<>::Invoke<>() [../../base/functional/bind_internal.h:738:12] #24 0x5e06204c8997 base::internal::InvokeHelper<>::MakeItSo<>() [../../base/functional/bind_internal.h:954:5] #25 0x5e06204c88c5 base::internal::Invoker<>::RunImpl<>() [../../base/functional/bind_internal.h:1067:14] #26 0x5e06204c87ef base::internal::Invoker<>::Run() [../../base/functional/bind_internal.h:987:12] #27 0x5e06204c97b8 base::RepeatingCallback<>::Run() [../../base/functional/callback.h:344:12] #28 0x5e06204c1f84 extensions::(anonymous namespace)::RunAPIBindingHandlerCallback() [../../extensions/renderer/bindings/api_binding.cc:92:13] #29 0x7e28d104d38f Builtins_CallApiCallbackGeneric Task trace: #0 0x7e28c0fad032 blink::DOMTimer::DOMTimer() [../../third_party/blink/renderer/modules/scheduler/dom_timer.cc:311:29] #1 0x7e28fafc5895 IPC::ChannelAssociatedGroupController::Accept() [../../ipc/ipc_mojo_bootstrap.cc:1137:13] Crash keys: "view-count" = "1" "loaded-origin-0" = "chrome-extension://melpoimnfajnldalfphacjkpnikmdmfo" "web-frame-count" = "1" "extension-1" = "melpoimnfajnldalfphacjkpnikmdmfo" "num-extensions" = "1" "renderer_foreground" = "true" "v8_ro_space_firstpage_address" = "0x339500000000" "v8_isolate_address" = "0x3da0001b4000" "reentry_guard_tls_slot" = "unused" "switch-16" = "--variations-seed-version" "switch-15" = "--field-trial-handle=3,i,2416572154099510137,3024019929584948269" "switch-14" = "--metrics-shmem-handle=4,i,9932640714038900285,15894981856334668" "switch-13" = "--shared-files=v8_context_snapshot_data:100" "switch-12" = "--launch-time-ticks=36526195309" "switch-11" = "--time-ticks-at-unix-epoch=-1715050238171397" "switch-10" = "--renderer-client-id=7" "switch-9" = "--enable-main-frame-before-activation" "switch-8" = "--num-raster-threads=4" "switch-7" = "--lang=en-US" "switch-6" = "--disable-gpu-compositing" "switch-5" = "--no-sandbox" "osarch" = "x86_64" "pid" = "1749384" "ptype" = "renderer" "switch-4" = "--change-stack-guard-on-fork=enable" "switch-3" = "--extension-process" "switch-2" = "--enable-crash-reporter=," "switch-1" = "--crashpad-handler-pid=1749024" "num-switches" = "17" Client ID (if relevant): [see link above]
CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: [goes here]
Context
This is a Chrome VRP report about insufficient data validation in the V8 API surface, tracked as CVE-2024-7974. The reporter is bowu (@gocrashed), the severity is medium, and the report was disclosed on 9 September 2024. The affected component is the V8 API, and the crash is triggered through a Chrome extension.
The relevant machinery is the extension bindings layer. When an extension calls a privileged API, the renderer-side binding code parses the JavaScript arguments against an argument specification (ArgumentSpec) and converts them into a JSON-serialisable form via content::V8ValueConverterImpl::FromV8Value. The converted value is produced in the renderer as part of preparing the call. The bug sits in that conversion path: a string reaches base::Value construction, where the UTF-8 check fails and the renderer aborts.
Setup
The report gives a minimal environment:
- Chrome version: Chromium 126.0.6464.0, dev channel.
- Operating system: Ubuntu.
- A local extension directory at
/home/ubuntu/dev/report. - Chrome launched with
--no-sandbox.
The crash is classified as an extension crash (Type of crash: [extension]), and the crash keys confirm the renderer is an extension process: --extension-process is among the switches, and the loaded origin is a chrome-extension:// URL.
Finding it
The reporter does not describe the discovery process in the report text. What the report does show is the resulting crash: a FATAL check failure in base/values.cc at line 195, with the message:
Check failed: [redacted](GetString()).
That check is the guard inside base::Value that rejects strings which are not valid UTF-8 even when noncharacters are permitted. The fact that this check fires during extension argument parsing means a JavaScript string produced by the extension reached the converter and was rejected at the point of base::Value construction, rather than being sanitised or rejected earlier in the binding layer.
Exploitation
Step 1: Launch Chrome with the extension loaded
The reproduction is a single command:
chrome --load-extension="/home/ubuntu/dev/report" --no-sandbox
--load-extension loads the unpacked extension from the given directory, and --no-sandbox disables the sandbox. The extension then calls an API whose argument specification eventually routes a string through ArgumentSpec::ParseArgumentToAny and into V8ValueConverterImpl::FromV8Value.
Step 2: The crash
The crash state is reported as:
[1749384:1749384:0507/205933.187938:FATAL:values.cc(195)] Check failed: [redacted](GetString()).
#0 0x7e2907d661bc base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1043:7]
#1 0x7e2907d17355 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:241:20]
#2 0x7e2907d172e5 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:236:28]
#3 0x7e2907a3563f logging::LogMessage::Flush() [../../base/logging.cc:715:29]
#4 0x7e2907a35567 logging::LogMessage::~LogMessage() [../../base/logging.cc:703:3]
#5 0x7e29079dcdd5 logging::(anonymous namespace)::DCheckLogMessage::~DCheckLogMessage() [../../base/check.cc:166:3]
#6 0x7e29079dcdf9 logging::(anonymous namespace)::DCheckLogMessage::~DCheckLogMessage() [../../base/check.cc:161:32]
#7 0x7e29079ddbdc std::__Cr::default_delete<>::operator()() [../../third_party/libc++/src/include/__memory/unique_ptr.h:67:5]
#8 0x7e29079dd13a std::__Cr::unique_ptr<>::reset() [../../third_party/libc++/src/include/__memory/unique_ptr.h:278:7]
#9 0x7e29079dc71d logging::CheckError::~CheckError() [../../base/check.cc:349:16]
#10 0x7e2907cc7222 base::Value::Value() [../../base/values.cc:195:3]
#11 0x7e2905397476 std::__Cr::make_unique<>() [../../third_party/libc++/src/include/__memory/unique_ptr.h:620:30]
#12 0x7e2905391da2 content::V8ValueConverterImpl::FromV8ValueImpl() [../../content/renderer/v8_value_converter_impl.cc:393:12]
#13 0x7e2905391238 content::V8ValueConverterImpl::FromV8Value() [../../content/renderer/v8_value_converter_impl.cc:237:10]
#14 0x5e062052a6fe extensions::ArgumentSpec::ParseArgumentToAny() [../../extensions/renderer/bindings/argument_spec.cc:731:20]
#15 0x5e0620526e07 extensions::ArgumentSpec::ParseArgument() [../../extensions/renderer/bindings/argument_spec.cc:323:14]
#16 0x5e0620528fe5 extensions::ArgumentSpec::ParseArgumentToObject() [../../extensions/renderer/bindings/argument_spec.cc:576:25]
#17 0x5e0620526895 extensions::ArgumentSpec::ParseArgument() [../../extensions/renderer/bindings/argument_spec.cc:295:14]
#18 0x5e062051c456 extensions::(anonymous namespace)::ArgumentParser::ParseArgument() [../../extensions/renderer/bindings/api_signature.cc:374:13]
#19 0x5e062051bb90 extensions::(anonymous namespace)::ArgumentParser::ParseArgumentsImpl() [../../extensions/renderer/bindings/api_signature.cc:269:10]
#20 0x5e062051a0f7 extensions::(anonymous namespace)::BaseValueArgumentParser::ParseArguments() [../../extensions/renderer/bindings/api_signature.cc:433:8]
#21 0x5e0620519fdc extensions::APISignature::ParseArgumentsToJSON() [../../extensions/renderer/bindings/api_signature.cc:585:8]
#22 0x5e06204c1b01 extensions::APIBinding::HandleCall() [../../extensions/renderer/bindings/api_binding.cc:685:22]
#23 0x5e06204c8aad base::internal::DecayedFunctorTraits<>::Invoke<>() [../../base/functional/bind_internal.h:738:12]
#24 0x5e06204c8997 base::internal::InvokeHelper<>::MakeItSo<>() [../../base/functional/bind_internal.h:954:5]
#25 0x5e06204c88c5 base::internal::Invoker<>::RunImpl<>() [../../base/functional/bind_internal.h:1067:14]
#26 0x5e06204c87ef base::internal::Invoker<>::Run() [../../base/functional/bind_internal.h:987:12]
#27 0x5e06204c97b8 base::RepeatingCallback<>::Run() [../../base/functional/callback.h:344:12]
#28 0x5e06204c1f84 extensions::(anonymous namespace)::RunAPIBindingHandlerCallback() [../../extensions/renderer/bindings/api_binding.cc:92:13]
#29 0x7e28d104d38f Builtins_CallApiCallbackGeneric
The stack reads bottom to top: Builtins_CallApiCallbackGeneric enters the extension binding handler, which calls APIBinding::HandleCall, then APISignature::ParseArgumentsToJSON, then the argument parser walks the argument specification. ParseArgumentToObject recurses into ParseArgument, which reaches ParseArgumentToAny, and that calls V8ValueConverterImpl::FromV8Value. Inside FromV8ValueImpl, make_unique constructs a base::Value, whose constructor runs the UTF-8 check and aborts.
The task trace shows the call was scheduled from a DOM timer:
#0 0x7e28c0fad032 blink::DOMTimer::DOMTimer() [../../third_party/blink/renderer/modules/scheduler/dom_timer.cc:311:29]
#1 0x7e28fafc5895 IPC::ChannelAssociatedGroupController::Accept() [../../ipc/ipc_mojo_bootstrap.cc:1137:13]
The crash keys confirm the environment: osarch is x86_64, ptype is renderer, num-extensions is 1, and the extension ID is melpoimnfajnldalfphacjkpnikmdmfo.
Root cause
The extension bindings layer converts JavaScript arguments into base::Value before sending them to the browser process. V8ValueConverterImpl::FromV8ValueImpl builds a base::Value from a V8 string, and base::Value's constructor asserts that the string is valid UTF-8 allowing noncharacters. A string that fails that check aborts the renderer.
The report does not show the exact API or the exact string that triggered the check. What the stack makes clear is that the validation gap is in the conversion path: the argument specification accepted the value far enough for it to reach base::Value construction, where the check is a fatal assertion rather than a graceful rejection. The report is filed against a dev build, where the assertion fires.
Impact
The crash is in the renderer process of an extension, triggered by the extension's own call into a privileged API. The report classifies it as a medium-severity insufficient data validation issue. The report does not describe a path by which a web page or a remote attacker could reach this code without the extension being installed and making the call, so the practical impact described here is a renderer crash caused by extension code passing a malformed string through the bindings.
Fix
Variants to test
- Pass strings that fail the UTF-8 check through other extension APIs whose argument specifications use
ParseArgumentToAny, and check whether the renderer aborts inbase::Value::Value. - Pass lone surrogates or otherwise invalid UTF-16 sequences through the same conversion path and observe whether the check fires or the value is silently replaced.
- Exercise nested object arguments, since the stack shows
ParseArgumentToObjectrecursing intoParseArgumentToAny, and place the malformed string inside a nested property. - Repeat the call from a DOM timer, as in the task trace, to confirm the crash is reachable from asynchronous extension code rather than only from a direct call.
- Test the same pattern on a release build to see how the check behaves there.
What happened, in plain words
A security researcher found a way to make Google Chrome crash by giving it a piece of text that Chrome's internal checks consider invalid. The crash happens inside a Chrome extension, which is a small add-on program you can install in the browser to add features. The researcher reported it through Google's Chrome Vulnerability Reward Program (VRP), a scheme that pays people for finding and reporting security problems. The report was given the identifier CVE-2024-7974, a public catalogue number for a specific security flaw, and was rated medium severity. The researcher is credited as bowu (@gocrashed), and the report became public on 9 September 2024. Google paid a bounty of 3,000 US dollars.
The affected area is described as the V8 API. V8 is the JavaScript engine inside Chrome: the part that reads and runs JavaScript, the programming language used by web pages and extensions. An API (Application Programming Interface) is a defined set of functions that one piece of software offers to another so they can talk to each other. Here, the API is the set of privileged functions Chrome offers to extensions.
The bug class is "insufficient data validation". In plain terms: a program accepted input it should have checked first, and that unchecked input later caused a failure. Think of a form at a front desk that is supposed to reject badly filled-in paperwork, but instead passes it through to a clerk who faints when they see it. The validation step was missing or too weak, and a later step could not cope.
Context
This section explains the machinery involved, so the crash makes sense.
When an extension calls one of Chrome's privileged functions, the call does not go straight to the browser's core. Chrome splits itself into processes, which are separate running programs with their own memory. The renderer process runs web content and extension code; the browser process is the central coordinator with more privileges. Keeping them apart is a security measure: if the renderer is compromised, the browser process is still protected.
Because of that split, arguments passed from extension code to a privileged API must be packaged up and sent across the boundary. Chrome does this by converting the JavaScript values into a neutral, serialisable form called base::Value, which can be turned into JSON (a simple text format for structured data) and sent to the browser process.
The conversion is done by a component called content::V8ValueConverterImpl::FromV8Value. Before that, the extension bindings layer, the glue code that connects JavaScript calls to Chrome's internals, checks the arguments against a specification called ArgumentSpec. The specification says what types and shapes each argument should have.
The bug sits in that conversion path. A string reaches the construction of a base::Value, and that construction contains an assertion, a check that aborts the program if its condition is false. The assertion rejects the string, and the renderer crashes.
Setup
The report gives a minimal environment for reproducing the crash:
- Chrome version: Chromium 126.0.6464.0, dev channel. The dev channel is an early, less stable build of Chrome used for testing.
- Operating system: Ubuntu, a common Linux distribution.
- A local extension directory at
/home/ubuntu/dev/report. - Chrome launched with
--no-sandbox.
The sandbox is an isolation mechanism that restricts what a process can do, for example which files it can read. --no-sandbox turns that isolation off, which is common when testing locally because it removes friction, but it is not something you would use for normal browsing.
The crash is classified as an extension crash (Type of crash: [extension]). The crash keys, which are diagnostic labels Chrome attaches to a crash report, confirm the renderer is an extension process: --extension-process is among the switches (command-line options), and the loaded origin is a chrome-extension:// URL.
Finding it
The report does not describe how the researcher discovered the bug. What it does show is the resulting crash: a FATAL check failure in base/values.cc at line 195, with the message:
Check failed: [redacted](GetString()).
This is a single line of output. Check failed means an internal assertion did not hold. [redacted] is the name of the check: it asks whether the string is valid UTF-8 even when noncharacters are permitted. Noncharacters are a small set of code points in Unicode (the standard character set) that are permanently reserved and never meant to represent a visible character. GetString() fetches the string being checked. The check failed, so the string was rejected.
That check is the guard inside base::Value that rejects strings which are not valid UTF-8 even when noncharacters are permitted. The fact that this check fires during extension argument parsing means a JavaScript string produced by the extension reached the converter and was rejected at the point of base::Value construction, rather than being sanitised or rejected earlier in the binding layer.
Exploitation
Step 1: Launch Chrome with the extension loaded
The reproduction is a single command:
chrome --load-extension="/home/ubuntu/dev/report" --no-sandbox
Line by line:
chromeis the browser executable.--load-extension="/home/ubuntu/dev/report"tells Chrome to load an unpacked extension from that folder. An unpacked extension is one loaded directly from files on disk rather than installed from the Chrome Web Store. This is how developers test extensions before publishing.--no-sandboxdisables the sandbox, as described above.
--load-extension loads the unpacked extension from the given directory, and --no-sandbox disables the sandbox. The extension then calls an API whose argument specification eventually routes a string through ArgumentSpec::ParseArgumentToAny and into V8ValueConverterImpl::FromV8Value.
Step 2: The crash
The crash state is reported as:
[1749384:1749384:0507/205933.187938:FATAL:values.cc(195)] Check failed: [redacted](GetString()).
#0 0x7e2907d661bc base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1043:7]
#1 0x7e2907d17355 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:241:20]
#2 0x7e2907d172e5 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:236:28]
#3 0x7e2907a3563f logging::LogMessage::Flush() [../../base/logging.cc:715:29]
#4 0x7e2907a35567 logging::LogMessage::~LogMessage() [../../base/logging.cc:703:3]
#5 0x7e29079dcdd5 logging::(anonymous namespace)::DCheckLogMessage::~DCheckLogMessage() [../../base/check.cc:166:3]
#6 0x7e29079dcdf9 logging::(anonymous namespace)::DCheckLogMessage::~DCheckLogMessage() [../../base/check.cc:161:32]
#7 0x7e29079ddbdc std::__Cr::default_delete<>::operator()() [../../third_party/libc++/src/include/__memory/unique_ptr.h:67:5]
#8 0x7e29079dd13a std::__Cr::unique_ptr<>::reset() [../../third_party/libc++/src/include/__memory/unique_ptr.h:278:7]
#9 0x7e29079dc71d logging::CheckError::~CheckError() [../../base/check.cc:349:16]
#10 0x7e2907cc7222 base::Value::Value() [../../base/values.cc:195:3]
#11 0x7e2905397476 std::__Cr::make_unique<>() [../../third_party/libc++/src/include/__memory/unique_ptr.h:620:30]
#12 0x7e2905391da2 content::V8ValueConverterImpl::FromV8ValueImpl() [../../content/renderer/v8_value_converter_impl.cc:393:12]
#13 0x7e2905391238 content::V8ValueConverterImpl::FromV8Value() [../../content/renderer/v8_value_converter_impl.cc:237:10]
#14 0x5e062052a6fe extensions::ArgumentSpec::ParseArgumentToAny() [../../extensions/renderer/bindings/argument_spec.cc:731:20]
#15 0x5e0620526e07 extensions::ArgumentSpec::ParseArgument() [../../extensions/renderer/bindings/argument_spec.cc:323:14]
#16 0x5e0620528fe5 extensions::ArgumentSpec::ParseArgumentToObject() [../../extensions/renderer/bindings/argument_spec.cc:576:25]
#17 0x5e0620526895 extensions::ArgumentSpec::ParseArgument() [../../extensions/renderer/bindings/argument_spec.cc:295:14]
#18 0x5e062051c456 extensions::(anonymous namespace)::ArgumentParser::ParseArgument() [../../extensions/renderer/bindings/api_signature.cc:374:13]
#19 0x5e062051bb90 extensions::(anonymous namespace)::ArgumentParser::ParseArgumentsImpl() [../../extensions/renderer/bindings/api_signature.cc:269:10]
#20 0x5e062051a0f7 extensions::(anonymous namespace)::BaseValueArgumentParser::ParseArguments() [../../extensions/renderer/bindings/api_signature.cc:433:8]
#21 0x5e0620519fdc extensions::APISignature::ParseArgumentsToJSON() [../../extensions/renderer/bindings/api_signature.cc:585:8]
#22 0x5e06204c1b01 extensions::APIBinding::HandleCall() [../../extensions/renderer/bindings/api_binding.cc:685:22]
#23 0x5e06204c8aad base::internal::DecayedFunctorTraits<>::Invoke<>() [../../base/functional/bind_internal.h:738:12]
#24 0x5e06204c8997 base::internal::InvokeHelper<>::MakeItSo<>() [../../base/functional/bind_internal.h:954:5]
#25 0x5e06204c88c5 base::internal::Invoker<>::RunImpl<>() [../../base/functional/bind_internal.h:1067:14]
#26 0x5e06204c87ef base::internal::Invoker<>::Run() [../../base/functional/bind_internal.h:987:12]
#27 0x5e06204c97b8 base::RepeatingCallback<>::Run() [../../base/functional/callback.h:344:12]
#28 0x5e06204c1f84 extensions::(anonymous namespace)::RunAPIBindingHandlerCallback() [../../extensions/renderer/bindings/api_binding.cc:92:13]
#29 0x7e28d104d38f Builtins_CallApiCallbackGeneric
This is a stack trace. A stack trace is a list of the function calls that were active at the moment of the crash, like a receipt showing every step that led to the failure. The first line is the error message: the process ID, a timestamp, FATAL (meaning the program is aborting), the file and line (values.cc(195)), and the failed check. The numbered lines below are the call frames, each showing a memory address, a function name, and the source file and line where that function lives.
The stack reads bottom to top: Builtins_CallApiCallbackGeneric enters the extension binding handler, which calls APIBinding::HandleCall, then APISignature::ParseArgumentsToJSON, then the argument parser walks the argument specification. ParseArgumentToObject recurses into ParseArgument, which reaches ParseArgumentToAny, and that calls V8ValueConverterImpl::FromV8Value. Inside FromV8ValueImpl, make_unique constructs a base::Value, whose constructor runs the UTF-8 check and aborts.
In plain words, the path is: the extension calls a function, the bindings layer starts checking the arguments, it walks into an object argument, it reaches a value of type "any" (meaning the specification does not constrain the type), it converts that value into Chrome's neutral form, and the neutral form's constructor rejects the string and aborts the process.
The task trace shows the call was scheduled from a DOM timer:
#0 0x7e28c0fad032 blink::DOMTimer::DOMTimer() [../../third_party/blink/renderer/modules/scheduler/dom_timer.cc:311:29]
#1 0x7e28fafc5895 IPC::ChannelAssociatedGroupController::Accept() [../../ipc/ipc_mojo_bootstrap.cc:1137:13]
A DOM timer is the browser's mechanism behind setTimeout and similar functions: it schedules code to run later. This trace says the crashing call was made from code that had been scheduled to run asynchronously, not from a direct top-to-bottom call. The second frame shows the message arriving through IPC, inter-process communication, the channel processes use to talk to each other.
The crash keys confirm the environment: osarch is x86_64, ptype is renderer, num-extensions is 1, and the extension ID is melpoimnfajnldalfphacjkpnikmdmfo.
Root cause
The extension bindings layer converts JavaScript arguments into base::Value before sending them to the browser process. V8ValueConverterImpl::FromV8ValueImpl builds a base::Value from a V8 string, and base::Value's constructor asserts that the string is valid UTF-8 allowing noncharacters. A string that fails that check aborts the renderer.
The report does not show the exact API or the exact string that triggered the check. What the stack makes clear is that the validation gap is in the conversion path: the argument specification accepted the value far enough for it to reach base::Value construction, where the check is a fatal assertion rather than a graceful rejection. The report is filed against a dev build, where the assertion fires.
Impact
The crash is in the renderer process of an extension, triggered by the extension's own call into a privileged API. The report classifies it as a medium-severity insufficient data validation issue.
Fix
Variants to test
- Pass strings that fail the UTF-8 check through other extension APIs whose argument specifications use
ParseArgumentToAny, and check whether the renderer aborts inbase::Value::Value. - Pass lone surrogates or otherwise invalid UTF-16 sequences through the same conversion path and observe whether the check fires or the value is silently replaced. A surrogate is a code unit in UTF-16, another text encoding, that is only meaningful in pairs; a lone one is invalid.
- Exercise nested object arguments, since the stack shows
ParseArgumentToObjectrecursing intoParseArgumentToAny, and place the malformed string inside a nested property. - Repeat the call from a DOM timer, as in the task trace, to confirm the crash is reachable from asynchronous extension code rather than only from a direct call.
- Test the same pattern on a release build to see how the check behaves there.
Glossary
- API: a defined set of functions one piece of software offers to another so they can interact.
- Argument: a value you pass into a function when you call it.
- Argument specification (
ArgumentSpec): Chrome's description of what types and shapes an API's arguments should have. - Assertion: a check inside a program that aborts it if a condition is false, used to catch bugs early.
- Asynchronous: code that runs later rather than immediately, for example after a timer fires.
base::Value: Chrome's neutral, serialisable representation of a value, used to move data between processes.- Bounty: a payment made for reporting a security problem.
- Browser process: the central Chrome process with more privileges that coordinates the others.
- Chrome VRP: Chrome Vulnerability Reward Program, Google's scheme for paying security researchers.
- Crash key: a diagnostic label Chrome attaches to a crash report.
- CVE: a public catalogue number for a specific security flaw.
- Dev channel: an early, less stable Chrome build used for testing.
- DOM timer: the browser mechanism behind
setTimeoutand similar functions that schedule code to run later. - Extension: a small add-on program installed in the browser to add features.
- Extension bindings: the glue code that connects JavaScript calls in an extension to Chrome's internal functions.
- FATAL: a log level meaning the program is aborting.
- IPC: inter-process communication, the channel processes use to talk to each other.
- JSON: a simple text format for structured data.
- Noncharacter: a code point in Unicode permanently reserved and never meant to represent a visible character.
- Renderer process: the Chrome process that runs web content and extension code, isolated from the browser process.
- Sandbox: an isolation mechanism that restricts what a process can do.
- Severity: a rating of how serious a security issue is.
- Stack trace: a list of the function calls active at the moment of a crash.
- Surrogate: a code unit in UTF-16 that is only meaningful in pairs; a lone one is invalid.
- Switch: a command-line option passed to a program.
- Unpacked extension: an extension loaded directly from files on disk rather than installed from the Chrome Web Store.
- UTF-8 / UTF-16: standard ways of encoding text as bytes or code units.
- V8: the JavaScript engine inside Chrome that reads and runs JavaScript.
- Validation: checking input before using it, to make sure it is acceptable.