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

Insufficient data validation in Animation (CVE-2026-10992)

A heap-buffer-overflow occurs in Blink's animation timing code when a crafted page supplies malformed linear() timing-function data, causing an out-of-bounds read during range evaluation. An attacker could crash the renderer process by opening a malicious HTML file.

heapracer Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 3 months

Security Bug

VULNERABILITY DETAILS

This issue is a heap-buffer-overflow in Blink’s animation timing code, with the crashing callsite at blink::LinearTimingFunction::Range. A crafted page can feed malformed timing-function data into the animation / paint pipeline, causing Blink to compute or read past the valid bounds of the underlying linear easing point array during range evaluation. The most likely root cause is insufficient bounds validation when a linear() timing function is parsed and later consumed by animation or paint code, leaving an internal point list in a shape that Range() does not safely handle.

=================================================================
==102068==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7b932a480e08 at pc 0x7f134e33a239 bp 0x7ffc94b1e640 sp 0x7ffc94b1e638
READ of size 8 at 0x7b932a480e08 thread T0 (chrome)
    #0 0x7f134e33a238 in blink::LinearTimingFunction::Range(double*, double*) const third_party/blink/renderer/platform/animation/timing_function.cc:72:51
    #1 0x7f134085ef1f in blink::ClipPathPaintDefinition::GetAnimationBoundingRect(blink::LayoutObject const&) third_party/blink/renderer/modules/csspaint/nativepaint/clip_path_paint_definition.cc:705:12
    #2 0x7f13590ae707 in blink::PaintPropertyTreeBuilder::UpdateForSelf() third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:2468:39
    #3 0x7f13590e2411 in blink::PrePaintTreeWalk::WalkInternal(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:632:28
    #4 0x7f13590debd9 in blink::PrePaintTreeWalk::Walk(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1406:3
    #5 0x7f13590e9ce4 in blink::PrePaintTreeWalk::WalkLayoutObjectChildren(blink::LayoutObject const&, blink::PhysicalBoxFragment const*, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1068:7
    #6 0x7f13590e9461 in blink::PrePaintTreeWalk::WalkChildren(blink::LayoutObject const&, blink::PhysicalBoxFragment const*, blink::PrePaintTreeWalk::PrePaintTreeWalkContext&, bool) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1356:5
    #7 0x7f13590decd2 in blink::PrePaintTreeWalk::Walk(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1429:5
    #8 0x7f13590e9ce4 in blink::PrePaintTreeWalk::WalkLayoutObjectChildren(blink::LayoutObject const&, blink::PhysicalBoxFragment const*, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1068:7
    #9 0x7f13590decd2 in blink::PrePaintTreeWalk::Walk(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1429:5
    #10 0x7f13590e9ce4 in blink::PrePaintTreeWalk::WalkLayoutObjectChildren(blink::LayoutObject const&, blink::PhysicalBoxFragment const*, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1068:7
    #11 0x7f13590decd2 in blink::PrePaintTreeWalk::Walk(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1429:5
    #12 0x7f13590e9ce4 in blink::PrePaintTreeWalk::WalkLayoutObjectChildren(blink::LayoutObject const&, blink::PhysicalBoxFragment const*, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1068:7
    #13 0x7f13590e9461 in blink::PrePaintTreeWalk::WalkChildren(blink::LayoutObject const&, blink::PhysicalBoxFragment const*, blink::PrePaintTreeWalk::PrePaintTreeWalkContext&, bool) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1356:5
    #14 0x7f13590decd2 in blink::PrePaintTreeWalk::Walk(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:1429:5
    #15 0x7f13590de1b0 in blink::PrePaintTreeWalk::Walk(blink::LocalFrameView&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext const&) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:169:5
    #16 0x7f13590ddbce in blink::PrePaintTreeWalk::WalkTree(blink::LocalFrameView&) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:90:3
    #17 0x7f13573ad59f in blink::LocalFrameView::RunPrePaintLifecyclePhase(blink::DocumentLifecycle::LifecycleState) third_party/blink/renderer/core/frame/local_frame_view.cc:2824:24
    #18 0x7f13573ab79c in blink::LocalFrameView::UpdateLifecyclePhasesInternal(blink::DocumentLifecycle::LifecycleState) third_party/blink/renderer/core/frame/local_frame_view.cc:2453:35
    #19 0x7f13573a797f in blink::LocalFrameView::UpdateLifecyclePhases(blink::DocumentLifecycle::LifecycleState, blink::DocumentUpdateReason) third_party/blink/renderer/core/frame/local_frame_view.cc:2315:3
    #20 0x7f13573a71da in blink::LocalFrameView::UpdateAllLifecyclePhases(blink::DocumentUpdateReason) third_party/blink/renderer/core/frame/local_frame_view.cc:2030:54
    #21 0x7f1358e591d7 in blink::PageAnimator::UpdateAllLifecyclePhases(blink::LocalFrame&, blink::DocumentUpdateReason) third_party/blink/renderer/core/page/page_animator.cc:394:9
    #22 0x7f13575188d3 in blink::WebFrameWidgetImpl::UpdateLifecycle(blink::WebLifecycleUpdate, blink::DocumentUpdateReason) third_party/blink/renderer/core/frame/web_frame_widget_impl.cc:1697:14
    #23 0x7f134edb5d25 in non-virtual thunk to blink::WidgetBase::UpdateVisualState() third_party/blink/renderer/platform/widget/widget_base.cc:1055:12
    #24 0x7f139693cec6 in cc::LayerTreeHost::RequestMainFrameUpdate(bool) cc/trees/layer_tree_host.cc:411:12
    #25 0x7f1396a9688a in cc::ProxyMain::BeginMainFrame(std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>) cc/trees/proxy_main.cc:337:21
    #26 0x7f1396a8d992 in base::internal::Invoker<base::internal::FunctorTraits<void (cc::ProxyMain::*&&)(std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>), base::WeakPtr<cc::ProxyMain>&&, std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>&&>, base::internal::BindState<true, true, false, void (cc::ProxyMain::*)(std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>), base::WeakPtr<cc::ProxyMain>, std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>>, void ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12
    #27 0x7f13a8c86ed2 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) base/functional/callback.h:155:12
    #28 0x7f13a8d083ce in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*) base/task/common/task_annotator.h:112:5
    #29 0x7f13a8d073a6 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:346:40
    #30 0x7f13a8b28ea1 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:42:55
    #31 0x7f13a8d09a48 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:650:12
    #32 0x7f13a8bf1512 in base::RunLoop::Run(base::Location const&) base/run_loop.cc:135:14
    #33 0x7f139e8d0bfe in content::RendererMain(content::MainFunctionParams) content/renderer/renderer_main.cc:364:16
    #34 0x7f139ed030b7 in content::RunZygote(content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:664:14
    #35 0x7f139ed0421f in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:771:12
    #36 0x7f139ed0680a in content::ContentMainRunnerImpl::Run() content/app/content_main_runner_impl.cc:1152:10
    #37 0x7f139ed00f53 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) content/app/content_main.cc:358:36
    #38 0x7f139ed012ea in content::ContentMain(content::ContentMainParams) content/app/content_main.cc:371:10
    #39 0x55d9e4b27345 in ChromeMain chrome/app/chrome_main.cc:191:12
    #40 0x7f1338fa2d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

0x7b932a480e08 is located 8 bytes after 96-byte region [0x7b932a480da0,0x7b932a480e00)
allocated by thread T0 (chrome) here:
    #0 0x55d9e4b258fd in operator new(unsigned long) (/mnt/lvm_data/chromium/src/out/asan_nodcheck/chrome+0x686e8fd) (BuildId: f667536c8ff65a4b)
    #1 0x7f13566121de in void std::__Cr::vector<gfx::LinearEasingPoint, std::__Cr::allocator<gfx::LinearEasingPoint>>::__init_with_size<blink::UncheckedIterator<gfx::LinearEasingPoint>, blink::UncheckedIterator<gfx::LinearEasingPoint>>(blink::UncheckedIterator<gfx::LinearEasingPoint>, blink::UncheckedIterator<gfx::LinearEasingPoint>, unsigned long) gen/third_party/libc++/src/include/__new/allocate.h:43:28
    #2 0x7f135660a9b3 in blink::CSSToStyleMap::MapAnimationTimingFunction(blink::CSSLengthResolver const&, blink::CSSValue const&) gen/third_party/libc++/src/include/__vector/vector.h:211:5
    #3 0x7f135ab3304c in blink::AnimationInputHelpers::ParseTimingFunction(blink::String const&, blink::Document*, blink::ExceptionState&) third_party/blink/renderer/core/animation/animation_input_helpers.cc:97:10
    #4 0x7f135ad4d453 in blink::EffectInput::ParseKeyframesArgument(blink::Element*, blink::ScriptValue const&, blink::ScriptState*, blink::ExceptionState&) third_party/blink/renderer/core/animation/effect_input.cc:510:9
    #5 0x7f135ad4a848 in blink::EffectInput::Convert(blink::Element*, blink::ScriptValue const&, blink::EffectModel::CompositeOperation, blink::ScriptState*, blink::ExceptionState&) third_party/blink/renderer/core/animation/effect_input.cc:787:7
    #6 0x7f135ade2efb in blink::KeyframeEffect::Create(blink::ScriptState*, blink::Element*, blink::ScriptValue const&, blink::V8UnionKeyframeEffectOptionsOrUnrestrictedDouble const*, blink::ExceptionState&) third_party/blink/renderer/core/animation/keyframe_effect.cc:208:36
    #7 0x7f1359ccadd8 in blink::Element::animate(blink::ScriptState*, blink::ScriptValue const&, blink::V8UnionKeyframeAnimationOptionsOrUnrestrictedDouble const*, blink::ExceptionState&) third_party/blink/renderer/core/dom/element.cc:680:7
    #8 0x7f135a6ace90 in blink::(anonymous namespace)::v8_element::AnimateOperationCallback(v8::FunctionCallbackInfo<v8::Value> const&) gen/third_party/blink/renderer/bindings/core/v8/v8_element.cc:3235:32
    #9 0x7b12fc6506a3  (<unknown module>)
    #10 0x7b12fc64e83b  (<unknown module>)
    #11 0x7b12fc64e83b  (<unknown module>)
    #12 0x7b12fc64e83b  (<unknown module>)
    #13 0x7b12fc64e83b  (<unknown module>)
    #14 0x7b12fc64b5db  (<unknown module>)
    #15 0x7b12fc64b32a  (<unknown module>)
    #16 0x7f13475e2711 in v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) v8/src/execution/simulator.h:216:12
    #17 0x7f13475e005e in v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle<v8::internal::Object>, v8::internal::DirectHandle<v8::internal::Object>, v8::base::Vector<v8::internal::DirectHandle<v8::internal::Object> const>) v8/src/execution/execution.cc:564:10
    #18 0x7f13474eec2a in v8::debug::CallFunctionOn(v8::Local<v8::Context>, v8::Local<v8::Function>, v8::Local<v8::Value>, v8::base::Vector<v8::Local<v8::Value>>, bool) v8/src/debug/debug-interface.cc:1251:7
    #19 0x7f1349c9a4ca in v8_inspector::(anonymous namespace)::innerCallFunctionOn(v8_inspector::V8InspectorSessionImpl*, v8_inspector::InjectedScript::Scope&, v8::Local<v8::Value>, v8_inspector::String16 const&, std::__Cr::unique_ptr<std::__Cr::vector<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>, std::__Cr::allocator<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>>>, std::__Cr::default_delete<std::__Cr::vector<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>, std::__Cr::allocator<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>>>>>, bool, std::__Cr::unique_ptr<v8_inspector::WrapOptions, std::__Cr::default_delete<v8_inspector::WrapOptions>>, bool, bool, v8_inspector::String16 const&, bool, std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::Backend::CallFunctionOnCallback, std::__Cr::default_delete<v8_inspector::protocol::Runtime::Backend::CallFunctionOnCallback>>) v8/src/inspector/v8-runtime-agent-impl.cc:190:24
    #20 0x7f1349c991cf in v8_inspector::V8RuntimeAgentImpl::callFunctionOn(v8_inspector::String16 const&, std::__Cr::optional<v8_inspector::String16>, std::__Cr::unique_ptr<std::__Cr::vector<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>, std::__Cr::allocator<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>>>, std::__Cr::default_delete<std::__Cr::vector<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>, std::__Cr::allocator<std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::CallArgument, std::__Cr::default_delete<v8_inspector::protocol::Runtime::CallArgument>>>>>>, std::__Cr::optional<bool>, std::__Cr::optional<bool>, std::__Cr::optional<bool>, std::__Cr::optional<bool>, std::__Cr::optional<bool>, std::__Cr::optional<int>, std::__Cr::optional<v8_inspector::String16>, std::__Cr::optional<bool>, std::__Cr::optional<v8_inspector::String16>, std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::SerializationOptions, std::__Cr::default_delete<v8_inspector::protocol::Runtime::SerializationOptions>>, std::__Cr::unique_ptr<v8_inspector::protocol::Runtime::Backend::CallFunctionOnCallback, std::__Cr::default_delete<v8_inspector::protocol::Runtime::Backend::CallFunctionOnCallback>>) v8/src/inspector/v8-runtime-agent-impl.cc:530:5
    #21 0x7f1349b93789 in v8_inspector::protocol::Runtime::DomainDispatcherImpl::callFunctionOn(v8_crdtp::Dispatchable const&) gen/v8/src/inspector/protocol/Runtime.cpp:837:16
    #22 0x7f1349ce68b3 in v8_crdtp::UberDispatcher::DispatchResult::Run() gen/third_party/libc++/src/include/__functional/function.h:502:12
    #23 0x7f1349c84ac2 in v8_inspector::V8InspectorSessionImpl::dispatchProtocolMessage(v8_inspector::StringView) v8/src/inspector/v8-inspector-session-impl.cc:388:39
    #24 0x7f1357cdcfe2 in blink::DevToolsSession::DispatchProtocolCommandImpl(int, blink::String const&, base::span<unsigned char const, 18446744073709551615ul, unsigned char const*>) third_party/blink/renderer/core/inspector/devtools_session.cc:272:18
    #25 0x7f1357cdd65f in non-virtual thunk to blink::DevToolsSession::DispatchProtocolCommand(int, blink::String const&, base::span<unsigned char const, 18446744073709551615ul, unsigned char const*>) third_party/blink/renderer/core/inspector/devtools_session.cc:243:10
    #26 0x7f13501c9b61 in blink::mojom::blink::DevToolsSessionStubDispatch::Accept(blink::mojom::blink::DevToolsSession*, mojo::Message*) gen/third_party/blink/public/mojom/devtools/devtools_agent.mojom-blink.cc:1542:13
    #27 0x7f13a942f3e2 in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:1085:54
    #28 0x7f13a944678b in mojo::MessageDispatcher::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/message_dispatcher.cc:44:19
    #29 0x7f13a9434c94 in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:747:20

SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/blink/renderer/platform/animation/timing_function.cc:72:51 in blink::LinearTimingFunction::Range(double*, double*) const
Shadow bytes around the buggy address:
  0x7b932a480b80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x7b932a480c00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480c80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
  0x7b932a480d00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480d80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
=>0x7b932a480e00: fa[fa]f7 fa 00 00 00 00 00 00 00 00 00 00 fc fc
  0x7b932a480e80: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480f00: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x7b932a480f80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 03
  0x7b932a481000: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 fc fc
  0x7b932a481080: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb

==102068==ADDITIONAL INFO

==102068==Note: Please include this section with the ASan report.
Task trace:
    #0 0x7f1396a83193 in cc::ProxyImpl::ScheduledActionSendBeginMainFrame(viz::BeginFrameArgs const&) cc/trees/proxy_impl.cc:780:7


Command line: `/proc/self/exe --type=renderer --crashpad-handler-pid=102010 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/mnt/lvm_data/chromium/a98/profiles/chrome_profile_7qyc2eee --change-stack-guard-on-fork=enable --no-sandbox --remote-debugging-port=37679 --ozone-platform=headless --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1772947841576980 --launch-time-ticks=603989475063 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,7138623061569844128,7663592372563810646,262144 --enable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,10853764944089851745,11327994552876179331,4 --trace-process-track-uuid=3190708990997080739`


==102068==END OF ADDITIONAL INFO

==102068==ABORTING
[101991:101991:0315/051905.626181:ERROR:content/common/zygote/zygote_communication_linux.cc:291] Failed to send GetTerminationStatus message to zygote

VERSION

Chrome Version: Chromium 147.0.7703.0 and Chromium 148.0.7729.0 dev ASAN builds
Operating System: Linux x86_64 on the two provided repro hosts (Ubuntu 22.04.3 LTS class and Ubuntu 25.04 class)

REPRODUCTION CASE

HTML artifact: poc_min.html (single-file PoC)

Open poc_min.html directly in Chrome.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION

Type of crash: Renderer process crash Crash State: blink::LinearTimingFunction::Range ASAN type: heap-buffer-overflow

CREDIT INFORMATION

Reporter credit: heapracer

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

Context

This report describes a heap-buffer-overflow in Blink, the rendering engine used by Chrome. The crashing callsite is blink::LinearTimingFunction::Range, part of Blink's animation timing code. The feature involved is the linear() timing function, which describes an easing curve as a list of points. Blink parses that point list into an internal array of gfx::LinearEasingPoint and later evaluates it during animation and paint work.

The reporter is credited as heapracer.

Setup

The crash was reproduced on two ASAN builds of Chromium:

  • Chromium 147.0.7703.0
  • Chromium 148.0.7729.0 dev

Both ran on Linux x86_64, on two repro hosts described as Ubuntu 22.04.3 LTS class and Ubuntu 25.04 class. The renderer command line in the ASAN output includes --no-sandbox, --remote-debugging-port=37679, --ozone-platform=headless and --disable-gpu-compositing, and the binary path contains out/asan_nodcheck.

The reproduction is a single-file HTML artifact named poc_min.html. The reproduction step is to open that file directly in Chrome.

Finding it

The researcher describes the issue as a heap-buffer-overflow in Blink's animation timing code, with the crashing callsite at blink::LinearTimingFunction::Range. A crafted page can feed malformed timing-function data into the animation and paint pipeline, causing Blink to compute or read past the valid bounds of the underlying linear easing point array during range evaluation.

The most likely root cause, in the researcher's words, is insufficient bounds validation when a linear() timing function is parsed and later consumed by animation or paint code, leaving an internal point list in a shape that Range() does not safely handle.

The ASAN report confirms the read is out of bounds. The faulting access is a READ at an address located 8 bytes after a 96-byte region:

Text
==102068==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7b932a480e08 at pc 0x7f134e33a239 bp 0x7ffc94b1e640 sp 0x7ffc94b1e638
READ of size 8 at 0x7b932a480e08 thread T0 (chrome)
    #0 0x7f134e33a238 in blink::LinearTimingFunction::Range(double*, double*) const third_party/blink/renderer/platform/animation/timing_function.cc:72:51

The allocation site shows where the point vector came from:

Text
0x7b932a480e08 is located 8 bytes after 96-byte region [0x7b932a480da0,0x7b932a480e00)
allocated by thread T0 (chrome) here:
    #0 0x55d9e4b258fd in operator new(unsigned long) (/mnt/lvm_data/chromium/src/out/asan_nodcheck/chrome+0x686e8fd) (BuildId: f667536c8ff65a4b)
    #1 0x7f13566121de in void std::__Cr::vector<gfx::LinearEasingPoint, std::__Cr::allocator<gfx::LinearEasingPoint>>::__init_with_size<blink::UncheckedIterator<gfx::LinearEasingPoint>, blink::UncheckedIterator<gfx::LinearEasingPoint>>(blink::UncheckedIterator<gfx::LinearEasingPoint>, blink::UncheckedIterator<gfx::LinearEasingPoint>, unsigned long) gen/third_party/libc++/src/include/__new/allocate.h:43:28
    #2 0x7f135660a9b3 in blink::CSSToStyleMap::MapAnimationTimingFunction(blink::CSSLengthResolver const&, blink::CSSValue const&) gen/third_party/libc++/src/include/__vector/vector.h:211:5
    #3 0x7f135ab3304c in blink::AnimationInputHelpers::ParseTimingFunction(blink::String const&, blink::Document*, blink::ExceptionState&) third_party/blink/renderer/core/animation/animation_input_helpers.cc:97:10
    #4 0x7f135ad4d453 in blink::EffectInput::ParseKeyframesArgument(blink::Element*, blink::ScriptValue const&, blink::ScriptState*, blink::ExceptionState&) third_party/blink/renderer/core/animation/effect_input.cc:510:9
    #5 0x7f135ad4a848 in blink::EffectInput::Convert(blink::Element*, blink::ScriptValue const&, blink::EffectModel::CompositeOperation, blink::ScriptState*, blink::ExceptionState&) third_party/blink/renderer/core/animation/effect_input.cc:787:7
    #6 0x7f135ade2efb in blink::KeyframeEffect::Create(blink::ScriptState*, blink::Element*, blink::ScriptValue const&, blink::[redacted] const*, blink::ExceptionState&) third_party/blink/renderer/core/animation/keyframe_effect.cc:208:36
    #7 0x7f1359ccadd8 in blink::Element::animate(blink::ScriptState*, blink::ScriptValue const&, blink::[redacted] const*, blink::ExceptionState&) third_party/blink/renderer/core/dom/element.cc:680:7
    #8 0x7f135a6ace90 in blink::(anonymous namespace)::v8_element::AnimateOperationCallback(v8::FunctionCallbackInfo<v8::Value> const&) gen/third_party/blink/renderer/bindings/core/v8/v8_element.cc:3235:32

This allocation stack is the important part of the finding. The point vector is created while mapping an animation timing function from CSS style (CSSToStyleMap::MapAnimationTimingFunction), reached through AnimationInputHelpers::ParseTimingFunction, which is itself reached from EffectInput::ParseKeyframesArgument and EffectInput::Convert during KeyframeEffect::Create, called from the Web Animations API entry point Element::animate. The allocation stack shows the point list created through the element.animate() path, and that list is what Range() later walks out of bounds.

Exploitation

Step 1: Build the page

The researcher produced a single-file HTML proof of concept, poc_min.html. The report does not include its contents, so the exact timing-function string and keyframe structure are not shown here. What the allocation stack establishes is that the timing function is parsed through the element.animate() path into a point vector of 96 bytes and is later evaluated by Range().

Step 2: Open it in Chrome

Text
Open `poc_min.html` directly in Chrome.

The reproduction step is to open the file directly in Chrome. The crash occurs in the renderer process during the pre-paint lifecycle phase.

Step 3: Observe the crash

The crash path runs from the compositor's begin-main-frame into the pre-paint tree walk, then into paint property tree building, and from there into clip-path paint code that asks for an animation bounding rect:

Text
    #0 0x7f134e33a238 in blink::LinearTimingFunction::Range(double*, double*) const third_party/blink/renderer/platform/animation/timing_function.cc:72:51
    #1 0x7f134085ef1f in blink::ClipPathPaintDefinition::GetAnimationBoundingRect(blink::LayoutObject const&) third_party/blink/renderer/modules/csspaint/nativepaint/clip_path_paint_definition.cc:705:12
    #2 0x7f13590ae707 in blink::PaintPropertyTreeBuilder::UpdateForSelf() third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:2468:39
    #3 0x7f13590e2411 in blink::PrePaintTreeWalk::WalkInternal(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:632:28

The stack continues through repeated PrePaintTreeWalk::Walk and WalkLayoutObjectChildren frames, then LocalFrameView::RunPrePaintLifecyclePhase, UpdateLifecyclePhasesInternal, UpdateAllLifecyclePhases, PageAnimator::UpdateAllLifecyclePhases, WebFrameWidgetImpl::UpdateLifecycle, cc::LayerTreeHost::RequestMainFrameUpdate and cc::ProxyMain::BeginMainFrame, ending in content::RendererMain. The task trace names the trigger as cc::ProxyImpl::ScheduledActionSendBeginMainFrame.

The ASAN summary line is:

Text
SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/blink/renderer/platform/animation/timing_function.cc:72:51 in blink::LinearTimingFunction::Range(double*, double*) const

The shadow bytes around the faulting address are:

Text
Shadow bytes around the buggy address:
  0x7b932a480b80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x7b932a480c00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480c80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
  0x7b932a480d00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480d80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
=>0x7b932a480e00: fa[fa]f7 fa 00 00 00 00 00 00 00 00 00 00 fc fc
  0x7b932a480e80: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480f00: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x7b932a480f80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 03
  0x7b932a481000: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 fc fc
  0x7b932a481080: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd

The output also contains a zygote error:

Text
[101991:101991:0315/051905.626181:ERROR:content/common/zygote/zygote_communication_linux.cc:291] Failed to send GetTerminationStatus message to zygote

The renderer command line recorded in the report is:

Text
/proc/self/exe --type=renderer --crashpad-handler-pid=102010 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/mnt/lvm_data/chromium/a98/profiles/chrome_profile_7qyc2eee --change-stack-guard-on-fork=enable --no-sandbox --remote-debugging-port=37679 --ozone-platform=headless --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1772947841576980 --launch-time-ticks=603989475063 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,7138623061569844128,7663592372563810646,262144 --enable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,10853764944089851745,11327994552876179331,4 --trace-process-track-uuid=3190708990997080739

Root cause

The researcher's assessment is that bounds validation is insufficient when a linear() timing function is parsed and later consumed by animation or paint code. The parsed point list ends up in a shape that LinearTimingFunction::Range does not handle safely, and Range reads one element past the end of the vector at timing_function.cc:72.

The two stacks show the split between the two halves of the bug. The allocation happens through Element::animate and the keyframe conversion path, where a std::vector<gfx::LinearEasingPoint> is created. The out-of-bounds read happens much later, on the paint side, when ClipPathPaintDefinition::GetAnimationBoundingRect asks the timing function for a range during the pre-paint tree walk. The researcher's assessment is that validation at parse time is insufficient for the invariant that Range() relies on.

Impact

The crash type is a renderer process crash, with ASAN reporting a heap-buffer-overflow. The report frames the issue as a crafted page causing Blink to compute or read past the valid bounds of the linear easing point array. The practical effect described is that a page can crash the renderer. The report does not describe any path to memory disclosure, code execution or sandbox escape.

Fix

The report does not describe a fix or a patch. Based on the researcher's stated root cause, the correction would be to validate the linear easing point list at parse time, or to make LinearTimingFunction::Range handle the point list shape safely, so that range evaluation cannot index past the end of the array.

Variants to test

  • Other CSS timing functions that parse into internal point arrays, such as cubic-bezier() and steps(), supplied through element.animate(). A positive result is an ASAN heap-buffer-overflow in the corresponding timing function code.
  • The same linear() timing function delivered through a CSS declaration rather than the Web Animations API, for example in animation-timing-function or transition-timing-function. A positive result is the same Range() crash reached through CSSToStyleMap::MapAnimationTimingFunction from style resolution.
  • Timing functions attached to properties that feed paint-side animation bounding rects, such as clip paths. A positive result is a crash in ClipPathPaintDefinition::GetAnimationBoundingRect or a sibling paint definition.
  • Point lists at the edges of the accepted size, including very short and very long lists, and lists with duplicate or out-of-order offsets. A positive result is an out-of-bounds read whose allocation size matches the parsed list.
  • The same pattern in other engines that implement linear(). A positive result is a comparable out-of-bounds access during easing evaluation.

Hunting notes

This bug sits at the boundary between two subsystems: CSS parsing of animation timing functions and paint-time evaluation of those functions. The allocation stack and the crash stack are in different files and different lifecycle phases, which is the signal worth remembering. When a parser produces a data structure that a later, unrelated consumer indexes into, the invariant the consumer assumes is often not enforced by the parser.

The ASAN output is complete: the faulting read, the allocation site with the vector type and the 96-byte size, the call chain from element.animate() to Range(), the shadow bytes, and reproduction on two Chromium versions. The minimal single-file PoC and the direct statement of the likely root cause make the report actionable without further triage.

For recon, the useful signals are code paths where a JavaScript-exposed API accepts a string that is parsed into a numeric array, and where that array is later consumed during layout or paint rather than at parse time. Animation timing functions, easing lists and similar structured CSS values are good candidates, particularly when they are reachable both from stylesheets and from the Web Animations API.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 22 min read.

What happened, in plain words

A security researcher found a way to make Chrome's renderer process crash. That part is called the renderer.

The crash happens in a piece of Chrome called Blink. Blink is the rendering engine: the software that reads HTML, CSS and JavaScript and works out what the page should look like. Inside Blink there is code that handles animations, the smooth movement of things on a page. One kind of animation lets a page describe its own speed curve as a list of points, using a function called linear(). Chrome reads that list of points and stores it in memory. Later, while drawing the page, Chrome walks along that list to work out where the animation should be at a given moment. The bug is that Chrome can be made to read past the end of the list, into memory that does not belong to it.

Reading past the end of a list is a well-known kind of programming mistake. Imagine a row of numbered lockers and a rule that says to check one past the last. Locker 13 is not yours. Usually nothing bad happens and you just see whatever is in the next locker along, but the program has now done something it was never supposed to do, and depending on what is stored there the consequences can range from a harmless wrong number to a crash. In this case the result is a crash.

The reporter is credited as heapracer.

Context

This report describes a heap-buffer-overflow in Blink, the rendering engine used by Chrome. The crashing callsite is blink::LinearTimingFunction::Range, part of Blink's animation timing code. The feature involved is the linear() timing function, which describes an easing curve as a list of points. Blink parses that point list into an internal array of gfx::LinearEasingPoint and later evaluates it during animation and paint work.

A few of those words need unpacking before the rest makes sense.

  • CSS is the language that describes how a web page looks: colours, sizes, positions and animations. A browser reads it and applies it.
  • An easing curve (also called a timing function) controls the speed of an animation over time. A linear animation moves at a constant speed. An ease animation starts slowly, speeds up, then slows down again. It is the difference between a car pulling away smoothly and a car that jumps instantly to full speed.
  • linear() is a CSS function that lets a page build its own easing curve out of a list of points, instead of picking one of the ready-made named curves. Each point says "at this fraction of the animation, be at this fraction of the way through".
  • Parsing means reading text and turning it into something the program can work with. When Chrome parses linear(...), it converts the text into a list of points held in memory.
  • Paint is the stage where Chrome works out what to draw on screen. It happens after the page has been read and laid out.
  • The heap is the general-purpose pool of memory a program uses for things it creates while running. A buffer is a block of that memory holding a sequence of items, here the list of easing points. A heap-buffer-overflow means reading or writing outside the edges of such a block.

The reporter is credited as heapracer.

Setup

The crash was reproduced on two ASAN builds of Chromium:

  • Chromium 147.0.7703.0
  • Chromium 148.0.7729.0 dev

Chromium is the open-source project that Chrome is built from. "dev" means a development version. ASAN stands for AddressSanitizer. It is a debugging tool that a programmer can switch on when building a program. It adds checks around every block of memory, so that the moment the program steps outside a block, ASAN notices and prints a detailed report instead of letting the mistake pass silently. Think of it as putting motion sensors around every locker: the instant someone reaches into the wrong one, an alarm goes off and records exactly what happened. The researcher used ASAN builds.

Both ran on Linux x86_64, on two repro hosts described as Ubuntu 22.04.3 LTS class and Ubuntu 25.04 class. Linux is the operating system, x86_64 is the family of processors, and Ubuntu is a common version of Linux. "Repro hosts" simply means the machines used to reproduce the crash.

The renderer command line in the ASAN output includes --no-sandbox, --remote-debugging-port=37679, --ozone-platform=headless and --disable-gpu-compositing, and the binary path contains out/asan_nodcheck. A command line is the list of switches a program is started with. "Headless" means Chrome runs without showing a window, which is handy on a test machine. --no-sandbox turns off Chrome's extra layer of process isolation. --remote-debugging-port opens a port so a debugging tool can talk to the browser. The out/asan_nodcheck directory is just where the specially built test binary was placed.

The reproduction is a single-file HTML artifact named poc_min.html. "PoC" stands for proof of concept: a small, self-contained demonstration that the bug is real. The reproduction step is to open that file directly in Chrome.

Finding it

The researcher describes the issue as a heap-buffer-overflow in Blink's animation timing code, with the crashing callsite at blink::LinearTimingFunction::Range. A crafted page can feed malformed timing-function data into the animation and paint pipeline, causing Blink to compute or read past the valid bounds of the underlying linear easing point array during range evaluation.

In plain terms: a page can hand Chrome a badly formed linear() description. Chrome stores it. Later, when Chrome needs to know where the animation is at a particular moment, it consults that stored list and reads past its end.

The most likely root cause, in the researcher's words, is insufficient bounds validation when a linear() timing function is parsed and later consumed by animation or paint code, leaving an internal point list in a shape that Range() does not safely handle. "Bounds validation" is the check that says "is this position inside the list?". If that check is missing or too weak when the list is first read, the later code that walks the list has no way of knowing it is about to step off the end.

The ASAN report confirms the read is out of bounds. The faulting access is a READ at an address located 8 bytes after a 96-byte region:

Text
==102068==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7b932a480e08 at pc 0x7f134e33a239 bp 0x7ffc94b1e640 sp 0x7ffc94b1e638
READ of size 8 at 0x7b932a480e08 thread T0 (chrome)
    #0 0x7f134e33a238 in blink::LinearTimingFunction::Range(double*, double*) const third_party/blink/renderer/platform/animation/timing_function.cc:72:51

Line by line:

  • The first line is ASAN announcing the problem. ERROR: AddressSanitizer: heap-buffer-overflow names the kind of mistake. The long 0x... value is a memory address, the exact spot in memory where the bad access happened. pc, bp and sp are processor registers recording where the program was at that instant; they are diagnostic detail, not something you need to interpret.
  • READ of size 8 says the program tried to read 8 bytes at once. The read is 8 bytes at once. thread T0 (chrome) says it happened on the main thread of the Chrome process.
  • The #0 line is the top of the call stack: the exact function that performed the bad read. A call stack is the list of functions currently running, newest at the top, like a stack of plates where each plate is a function that called the one above it. Here the top plate is blink::LinearTimingFunction::Range, in the file timing_function.cc, at line 72, column 51. That is the precise location of the bug.

The allocation site shows where the point vector came from:

Text
0x7b932a480e08 is located 8 bytes after 96-byte region [0x7b932a480da0,0x7b932a480e00)
allocated by thread T0 (chrome) here:
    #0 0x55d9e4b258fd in operator new(unsigned long) (/mnt/lvm_data/chromium/src/out/asan_nodcheck/chrome+0x686e8fd) (BuildId: f667536c8ff65a4b)
    #1 0x7f13566121de in void std::__Cr::vector<gfx::LinearEasingPoint, std::__Cr::allocator<gfx::LinearEasingPoint>>::__init_with_size<blink::UncheckedIterator<gfx::LinearEasingPoint>, blink::UncheckedIterator<gfx::LinearEasingPoint>>(blink::UncheckedIterator<gfx::LinearEasingPoint>, blink::UncheckedIterator<gfx::LinearEasingPoint>, unsigned long) gen/third_party/libc++/src/include/__new/allocate.h:43:28
    #2 0x7f135660a9b3 in blink::CSSToStyleMap::MapAnimationTimingFunction(blink::CSSLengthResolver const&, blink::CSSValue const&) gen/third_party/libc++/src/include/__vector/vector.h:211:5
    #3 0x7f135ab3304c in blink::AnimationInputHelpers::ParseTimingFunction(blink::String const&, blink::Document*, blink::ExceptionState&) third_party/blink/renderer/core/animation/animation_input_helpers.cc:97:10
    #4 0x7f135ad4d453 in blink::EffectInput::ParseKeyframesArgument(blink::Element*, blink::ScriptValue const&, blink::ScriptState*, blink::ExceptionState&) third_party/blink/renderer/core/animation/effect_input.cc:510:9
    #5 0x7f135ad4a848 in blink::EffectInput::Convert(blink::Element*, blink::ScriptValue const&, blink::EffectModel::CompositeOperation, blink::ScriptState*, blink::ExceptionState&) third_party/blink/renderer/core/animation/effect_input.cc:787:7
    #6 0x7f135ade2efb in blink::KeyframeEffect::Create(blink::ScriptState*, blink::Element*, blink::ScriptValue const&, blink::[redacted] const*, blink::ExceptionState&) third_party/blink/renderer/core/animation/keyframe_effect.cc:208:36
    #7 0x7f1359ccadd8 in blink::Element::animate(blink::ScriptState*, blink::ScriptValue const&, blink::[redacted] const*, blink::ExceptionState&) third_party/blink/renderer/core/dom/element.cc:680:7
    #8 0x7f135a6ace90 in blink::(anonymous namespace)::v8_element::AnimateOperationCallback(v8::FunctionCallbackInfo<v8::Value> const&) gen/third_party/blink/renderer/bindings/core/v8/v8_element.cc:3235:32

Line by line:

  • The first line is ASAN telling us where the bad address sits relative to the block of memory it should have stayed inside. The block is 96 bytes long, running from 0x7b932a480da0 to 0x7b932a480e00. The bad address, 0x7b932a480e08, is 8 bytes past the end. The square bracket with a closing round bracket is a common way of writing "from this address up to, but not including, that one".
  • allocated by thread T0 (chrome) here: introduces a second stack, the one that shows who created the block in the first place. This is the most valuable part of the report, because it links the crash back to the input that caused it.
  • #0 is the low-level memory allocation itself, operator new, the C++ function that asks the operating system for memory. The path shows the test binary was built in out/asan_nodcheck.
  • #1 is where a std::vector of gfx::LinearEasingPoint was filled with its initial contents. A vector is a growable list: a container that holds items one after another in memory. Here each item is a LinearEasingPoint, one point of the easing curve. The __init_with_size part means the vector was created with a known number of items copied in.
  • #2 is CSSToStyleMap::MapAnimationTimingFunction, the step that turns a CSS timing function into the internal style representation.
  • #3 is AnimationInputHelpers::ParseTimingFunction, the step that reads the timing function text and parses it.
  • #4 and #5 are EffectInput::ParseKeyframesArgument and EffectInput::Convert, which take the keyframes handed in by JavaScript and convert them into Chrome's internal animation model. Keyframes are the snapshots an animation moves between: "start here, end there".
  • #6 is KeyframeEffect::Create, which builds the animation object.
  • #7 is Element::animate, the JavaScript function a page calls to start an animation on an element. This is the entry point: the moment the page's own code hands the timing function to Chrome.
  • #8 is the glue that lets JavaScript call into Chrome's C++ code.

This allocation stack is the important part of the finding. The point vector is created while mapping an animation timing function from CSS style (CSSToStyleMap::MapAnimationTimingFunction), reached through AnimationInputHelpers::ParseTimingFunction, which is itself reached from EffectInput::ParseKeyframesArgument and EffectInput::Convert during KeyframeEffect::Create, called from the Web Animations API entry point Element::animate. In other words, the timing function string supplied to element.animate() is parsed and stored, and the resulting point list is what Range() later walks out of bounds.

The Web Animations API is the set of JavaScript functions a page can use to create and control animations from code, rather than describing them in CSS. element.animate() is its main entry point: you give it an element, some keyframes and some options, and it starts an animation. The allocation stack shows the point list created through the element.animate() path.

Exploitation

Step 1: Build the page

The researcher produced a single-file HTML proof of concept, poc_min.html. The report does not include its contents, so the exact timing-function string and keyframe structure are not shown here. What the allocation stack establishes is that the timing function is parsed through the element.animate() path into a point vector of 96 bytes and is later evaluated by Range().

Why this step matters: to prove a bug you need the smallest possible input that triggers it. A single HTML file that anyone can open is the clearest possible demonstration, because it removes every other variable. The allocation was 96 bytes, and the bad read was 8 bytes past its end.

Step 2: Open it in Chrome

Text
Open `poc_min.html` directly in Chrome.

This is the whole reproduction procedure: save the file, open it in the browser. The reproduction step is to open the file directly in Chrome. The crash occurs in the renderer process during the pre-paint lifecycle phase. The crash happens later, while preparing to draw, rather than while reading the file.

Step 3: Observe the crash

The crash path runs from the compositor's begin-main-frame into the pre-paint tree walk, then into paint property tree building, and from there into clip-path paint code that asks for an animation bounding rect:

Text
    #0 0x7f134e33a238 in blink::LinearTimingFunction::Range(double*, double*) const third_party/blink/renderer/platform/animation/timing_function.cc:72:51
    #1 0x7f134085ef1f in blink::ClipPathPaintDefinition::GetAnimationBoundingRect(blink::LayoutObject const&) third_party/blink/renderer/modules/csspaint/nativepaint/clip_path_paint_definition.cc:705:12
    #2 0x7f13590ae707 in blink::PaintPropertyTreeBuilder::UpdateForSelf() third_party/blink/renderer/core/paint/paint_property_tree_builder.cc:2468:39
    #3 0x7f13590e2411 in blink::PrePaintTreeWalk::WalkInternal(blink::LayoutObject const&, blink::PrePaintTreeWalk::PrePaintTreeWalkContext&, blink::PrePaintInfo*) third_party/blink/renderer/core/paint/pre_paint_tree_walk.cc:632:28

Line by line:

  • #0 is the same crashing function as before: LinearTimingFunction::Range, the code that evaluates the easing curve.
  • #1 is its caller: ClipPathPaintDefinition::GetAnimationBoundingRect. A clip path is a shape that cuts an element down to a particular outline, like a cookie cutter applied to a picture. When a clip path is animated, Chrome needs to know how big the animated shape is, and to do that it asks the timing function where the animation currently is. That question is what leads into Range.
  • #2 is PaintPropertyTreeBuilder::UpdateForSelf, part of the machinery that works out how an element should be drawn.
  • #3 is PrePaintTreeWalk::WalkInternal, the stage where Chrome walks through the page's elements preparing to paint them. A tree walk means visiting every item in a branching structure one by one; the page's elements form a tree, with the page at the root and nested elements as branches.

The stack continues through repeated PrePaintTreeWalk::Walk and WalkLayoutObjectChildren frames, then LocalFrameView::RunPrePaintLifecyclePhase, UpdateLifecyclePhasesInternal, UpdateAllLifecyclePhases, PageAnimator::UpdateAllLifecyclePhases, WebFrameWidgetImpl::UpdateLifecycle, cc::LayerTreeHost::RequestMainFrameUpdate and cc::ProxyMain::BeginMainFrame, ending in content::RendererMain. The task trace names the trigger as cc::ProxyImpl::ScheduledActionSendBeginMainFrame.

Those repeated frames are simply the tree walk descending through nested elements, then climbing back out. The lower frames show the chain of events that started the whole thing: the compositor, the part of Chrome that assembles the final picture, asked for a new frame, and that request travelled down into the renderer's main function. content::RendererMain is the entry point of the renderer process, so the stack now spans from the very start of the process to the exact line that crashed.

The ASAN summary line is:

Text
SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/blink/renderer/platform/animation/timing_function.cc:72:51 in blink::LinearTimingFunction::Range(double*, double*) const

This is ASAN's one-line verdict, the part a triager reads first: what kind of bug, in which file and line, in which function. Everything else in the report supports this line.

The shadow bytes around the faulting address are:

Text
Shadow bytes around the buggy address:
  0x7b932a480b80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x7b932a480c00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480c80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
  0x7b932a480d00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480d80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 00
=>0x7b932a480e00: fa[fa]f7 fa 00 00 00 00 00 00 00 00 00 00 fc fc
  0x7b932a480e80: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd
  0x7b932a480f00: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 fa
  0x7b932a480f80: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 00 03
  0x7b932a481000: fa fa f7 fa 00 00 00 00 00 00 00 00 00 00 fc fc
  0x7b932a481080: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd

"Shadow bytes" are ASAN's own bookkeeping. ASAN keeps a parallel map of memory, one small marker per 8 bytes of real memory, recording whether each chunk is safe to use. The legend printed with the report explains the markers: 00 means addressable, that is, fine to use; fa marks a redzone, a deliberately fenced-off area around a block that must not be touched; fd marks memory that has been freed. The arrow => points at the row containing the bad address, and the marker in square brackets is the one for the address that was read. It is fa, a redzone, which is ASAN's way of saying "this byte is outside every block you are allowed to use". The run of 00 markers before it is the 96-byte block itself, and the fa immediately after is the fence the program climbed over.

The output also contains a zygote error:

Text
[101991:101991:0315/051905.626181:ERROR:content/common/zygote/zygote_communication_linux.cc:291] Failed to send GetTerminationStatus message to zygote

The output also contains a zygote error line.

The renderer command line recorded in the report is:

Text
/proc/self/exe --type=renderer --crashpad-handler-pid=102010 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/mnt/lvm_data/chromium/a98/profiles/chrome_profile_7qyc2eee --change-stack-guard-on-fork=enable --no-sandbox --remote-debugging-port=37679 --ozone-platform=headless --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1772947841576980 --launch-time-ticks=603989475063 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,7138623061569844128,7663592372563810646,262144 --enable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,10853764944089851745,11327994552876179331,4 --trace-process-track-uuid=3190708990997080739

This is the exact set of switches the crashing renderer was started with. /proc/self/exe is a Linux shorthand meaning "the program that is currently running". --type=renderer confirms this process was a renderer, the sandboxed one that handles page content. The rest are debugging and environment settings: a crash reporter, a profile directory, a debugging port, headless mode, and so on. They are recorded so that anyone can recreate the same conditions.

Root cause

The researcher's assessment is that bounds validation is insufficient when a linear() timing function is parsed and later consumed by animation or paint code. The parsed point list ends up in a shape that LinearTimingFunction::Range does not handle safely, and Range reads one element past the end of the vector at timing_function.cc:72.

The two stacks show the split between the two halves of the bug. The allocation happens through Element::animate and the keyframe conversion path, where a std::vector<gfx::LinearEasingPoint> is created. The out-of-bounds read happens much later, on the paint side, when ClipPathPaintDefinition::GetAnimationBoundingRect asks the timing function for a range during the pre-paint tree walk. The researcher's assessment is that validation at parse time is insufficient for the invariant that Range() relies on.

An invariant is a rule that one part of a program assumes is always true, without re-checking it. Here, Range() assumes the point list is in a shape it can safely walk. The parser is supposed to guarantee that shape. When the parser lets through a list that breaks the assumption, the later code has no defence, because it never expected to need one. This is a recurring pattern in software: two teams of code, written at different times for different purposes, meeting at a boundary where neither fully checks the other's work.

Impact

The crash type is a renderer process crash, with ASAN reporting a heap-buffer-overflow. The report frames the issue as a crafted page causing Blink to compute or read past the valid bounds of the linear easing point array. The practical effect described is that a page can crash the renderer. The report does not describe any path to memory disclosure, code execution or sandbox escape.

Those three terms are worth defining. Memory disclosure would mean the page could read and steal data from memory it should not see, such as another site's information. Code execution would mean the page could make the browser run the attacker's own code, which is far more serious than a crash. A sandbox escape would mean breaking out of the renderer's isolation box and reaching the rest of the system. None of these is described here. A crash is disruptive, and a page that can reliably crash a browser tab is a real problem, but on its own it does not hand an attacker your data or your machine.

Fix

The report does not describe a fix or a patch. Based on the researcher's stated root cause, the correction would be to validate the linear easing point list at parse time, or to make LinearTimingFunction::Range handle the point list shape safely, so that range evaluation cannot index past the end of the array.

In everyday terms, there are two ways to stop someone reaching into locker 13. You can check the list at the door and refuse any list that would ever ask for locker 13, or you can teach the person walking the row to stop at the last locker no matter what the list says. Either approach closes the gap; doing both is the most robust.

Variants to test

Once a bug like this is found, researchers look for siblings: other places where the same kind of mistake might hide. Each item below is a hypothesis with a clear signal that would confirm it.

  • Other CSS timing functions that parse into internal point arrays, such as cubic-bezier() and steps(), supplied through element.animate(). A positive result is an ASAN heap-buffer-overflow in the corresponding timing function code.
  • The same linear() timing function delivered through a CSS declaration rather than the Web Animations API, for example in animation-timing-function or transition-timing-function. A positive result is the same Range() crash reached through CSSToStyleMap::MapAnimationTimingFunction from style resolution.
  • Timing functions attached to properties that feed paint-side animation bounding rects, such as clip paths. A positive result is a crash in ClipPathPaintDefinition::GetAnimationBoundingRect or a sibling paint definition.
  • Point lists at the edges of the accepted size, including very short and very long lists, and lists with duplicate or out-of-order offsets. A positive result is an out-of-bounds read whose allocation size matches the parsed list.
  • The same pattern in other engines that implement linear(). A positive result is a comparable out-of-bounds access during easing evaluation.

Hunting notes

This bug sits at the boundary between two subsystems: CSS parsing of animation timing functions and paint-time evaluation of those functions. The allocation stack and the crash stack are in different files and different lifecycle phases, which is the signal worth remembering. When a parser produces a data structure that a later, unrelated consumer indexes into, the invariant the consumer assumes is often not enforced by the parser.

The ASAN output is complete: the faulting read, the allocation site with the vector type and the 96-byte size, the call chain from element.animate() to Range(), the shadow bytes, and reproduction on two Chromium versions. The minimal single-file PoC and the direct statement of the likely root cause make the report actionable without further triage.

For recon, the useful signals are code paths where a JavaScript-exposed API accepts a string that is parsed into a numeric array, and where that array is later consumed during layout or paint rather than at parse time. Animation timing functions, easing lists and similar structured CSS values are good candidates, particularly when they are reachable both from stylesheets and from the Web Animations API.

Glossary

  • ASAN (AddressSanitizer): a debugging tool built into a special test version of a program that watches every block of memory and reports the instant the program reads or writes outside one.
  • Blink: the rendering engine inside Chrome, the software that reads HTML, CSS and JavaScript and works out what the page should look like.
  • Bounds validation: checking that a position inside a list is actually within the list before using it.
  • Buffer: a block of memory holding a sequence of items, such as a list of easing points.
  • Call stack: the list of functions currently running, newest at the top, each one having called the one above it.
  • Chromium: the open-source browser project that Google Chrome is built from.
  • Clip path: a shape that cuts an element down to a particular outline, like a cookie cutter applied to a picture.
  • Compositor: the part of the browser that assembles the final picture from the pieces the renderer prepares.
  • CSS: the language that describes how a web page looks, including colours, sizes, positions and animations.
  • CSS linear() timing function: a CSS function that lets a page describe its own animation speed curve as a list of points instead of picking a ready-made named curve.
  • Easing curve (timing function): the rule that controls how fast an animation moves at each moment, for example constant speed or slow then fast then slow.
  • Heap: the general-purpose pool of memory a program uses for things it creates while running.
  • Heap-buffer-overflow: reading or writing outside the edges of a block of memory on the heap.
  • Headless: running a browser without showing a window, common on test machines.
  • Invariant: a rule that one part of a program assumes is always true and therefore does not re-check.
  • Keyframes: the snapshots an animation moves between, such as "start here, end there".
  • Memory disclosure: a bug that lets an attacker read data from memory they should not be able to see.
  • Paint: the stage where the browser works out what to draw on screen, after the page has been read and laid out.
  • Parsing: reading text and turning it into a form the program can work with.
  • PoC (proof of concept): a small, self-contained demonstration that a bug is real.
  • Redzone: a deliberately fenced-off area of memory around a block that a program must not touch, used by ASAN to catch overflows.
  • Renderer: the sandboxed browser process that turns a web page into what you see, kept separate so a broken page cannot take down the whole browser.
  • Sandbox: the isolation box around the renderer that limits what a compromised page can reach.
  • Sandbox escape: a bug that lets an attacker break out of the sandbox and reach the rest of the system.
  • Shadow bytes: ASAN's parallel map of memory, one small marker per 8 bytes, recording whether each chunk is safe to use.
  • Tree walk: visiting every item in a branching structure one by one, such as the nested elements of a page.
  • Vector: a growable list in C++ that holds items one after another in memory.
  • Web Animations API: the set of JavaScript functions a page can use to create and control animations from code, with element.animate() as its main entry point.
  • Zygote: a Chrome helper process that pre-starts child processes so they launch quickly.

More by heapracer

View all

6 more disclosed reports, best first.

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.