Skip to content
Memory corruption Advisory Advanced CVE-2025-0444

Use after free in Skia (CVE-2025-0444)

A use-after-free flaw in Skia's handling of colour (COLR) glyphs in fonts caused a heap read of freed memory when a page was rendered. An attacker could trigger a crash of the browser tab by getting a victim to load a crafted page with a malicious font.

Francisco Alonso Follow

Originally disclosed on Chrome VRP

Bounty$7,000 High View original
  • Fix shipped in 17 days

Security Bug

VULNERABILITY DETAILS

VERSION Chrome Version: Version 134.0.6967.0 (Developer Build) (64-bit) Operating System: Ubuntu 24.04.1 LTS

REPRODUCTION CASE

  1. start a server: python3 -m http.server
  2. ./chrome --no-sandbox --disable-gpu http://127.0.0.1:8000/poc.html

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION

================================================================= ==11992==ERROR: AddressSanitizer: heap-use-after-free on address 0x7371850dae80 at pc 0x60b70194e4cb bp 0x71a1133fc190 sp 0x71a1133fb950 READ of size 1248 at 0x7371850dae80 thread T9 (ThreadPoolForeg) ==11992==WARNING: invalid path to external symbolizer! ==11992==WARNING: Failed to use and restart external symbolizer! #0 0x60b70194e4ca in __asan_memcpy asan_rtl:3 #1 0x60b702682d64 in sk_careful_memcpy ./../../third_party/skia/include/private/base/SkMalloc.h:129:9 #2 0x60b702682d64 in copy ./../../third_party/skia/include/private/base/SkTArray.h:656:17 #3 0x60b702682d64 in TArray<4> ./../../third_party/skia/include/private/base/SkTArray.h:552:15 #4 0x60b702682d64 in STArray ./../../third_party/skia/include/private/base/SkTArray.h:780:11 #5 0x60b702682d64 in SkPathRef::SkPathRef(SkSpan<SkPoint const>, SkSpan<unsigned char const>, SkSpan<float const>, unsigned int) ./../../third_party/skia/include/private/SkPathRef.h:63:11 #6 0x60b702681f3e in MakeInternal ./../../third_party/skia/src/core/SkPath.cpp:3576:38 #7 0x60b702681f3e in SkPath::Make(SkPoint const*, int, unsigned char const*, int, float const*, int, SkPathFillType, bool) ./../../third_party/skia/src/core/SkPath.cpp:3530:12 #8 0x60b71815e3a2 in SkFontationsScalerContext::generateYScalePathForGlyphId(unsigned short, SkPath*, float, fontations_ffi::BridgeHintingInstance const&) ./../../third_party/skia/src/ports/SkTypeface_fontations.cpp:415:17 #9 0x60b71815eb74 in sk_fontations::ColorPainter::fill_glyph_solid(unsigned short, unsigned short, float) ./../../third_party/skia/src/ports/SkTypeface_fontations.cpp:1229:20 #10 0x60b72e631340 in $LT$skia_cbridge_urust_uside..ColorPainterImpl$u20$as$u20$skrifa..color..ColorPainter$GT$::fill_glyph::he43a3df9e065a2ec ./../../third_party/skia/src/ports/fontations/src/ffi.rs:422:17 #11 0x60b72e673a5d in skrifa::color::traversal::traverse_v0_range::h81722d6410ab4c6e ./../../third_party/rust/chromium_crates_io/vendor/skrifa-0.26.4/src/color/traversal.rs:603:9 #12 0x60b72e6707d0 in skrifa::color::ColorGlyph::paint::hab4db2b06726d0cd ./../../third_party/rust/chromium_crates_io/vendor/skrifa-0.26.4/src/color/mod.rs:375:17 #13 0x60b72e6380a8 in skia_cbridge_urust_uside::draw_colr_glyph::$u7b$$u7b$closure$u7d$$u7d$::h7a926702ba028d19 ./../../third_party/skia/src/ports/fontations/src/ffi.rs:1084:13 #14 0x60b72e6380a8 in skia_cbridge_urust_uside::BridgeFontRef::with_font::h7694be5e9eeb7b74 ./../../third_party/skia/src/ports/fontations/src/ffi.rs:1262:9 #15 0x60b72e6380a8 in skia_cbridge_urust_uside::draw_colr_glyph::ha7107a06ac4ef2f6 ./../../third_party/skia/src/ports/fontations/src/ffi.rs:1081:5 #16 0x60b71816878d in SkFontationsScalerContext::drawCOLRGlyph(SkGlyph const&, unsigned int, SkCanvas*) ./../../third_party/skia/src/ports/SkTypeface_fontations.cpp:735:23 #17 0x60b702546b22 in SkDrawable::draw(SkCanvas*, SkMatrix const*) ./../../third_party/skia/src/core/SkDrawable.cpp:48:11 #18 0x60b702576ff1 in SkGlyphRunListPainterCPU::drawForBitmapDevice(SkCanvas*, SkGlyphRunListPainterCPU::BitmapDevicePainter const*, sktext::GlyphRunList const&, SkPaint const&, SkMatrix const&) ./../../third_party/skia/src/core/SkGlyphRunPainter.cpp:316:31 #19 0x60b70249822c in SkBitmapDevice::onDrawGlyphRunList(SkCanvas*, sktext::GlyphRunList const&, SkPaint const&) ./../../third_party/skia/src/core/SkBitmapDevice.cpp:534:5 #20 0x60b702500c94 in SkCanvas::onDrawGlyphRunList(sktext::GlyphRunList const&, SkPaint const&) ./../../third_party/skia/src/core/SkCanvas.cpp:2387:28 #21 0x60b7025009f2 in SkCanvas::onDrawTextBlob(SkTextBlob const*, float, float, SkPaint const&) ./../../third_party/skia/src/core/SkCanvas.cpp:2372:11 #22 0x60b702502840 in SkCanvas::drawTextBlob(SkTextBlob const*, float, float, SkPaint const&) ./../../third_party/skia/src/core/SkCanvas.cpp:2522:11 #23 0x60b71a749d1a in cc::DrawTextBlobOp::RasterWithFlags(cc::DrawTextBlobOp const*, cc::PaintFlags const*, SkCanvas*, cc::PlaybackParams const&)::$_0::operator()(SkCanvas*, SkPaint const&) const ./../../cc/paint/paint_op.cc:1732:8 #24 0x60b71a7267d7 in DrawToSk<(lambda at ../../cc/paint/paint_op.cc:1730:27)> ./../../cc/paint/paint_flags.h:283:7 #25 0x60b71a7267d7 in cc::DrawTextBlobOp::RasterWithFlags(cc::DrawTextBlobOp const*, cc::PaintFlags const*, SkCanvas*, cc::PlaybackParams const&) ./../../cc/paint/paint_op.cc:1730:10 #26 0x60b71a779b8b in cc::PaintOpBuffer::Playback(SkCanvas*, cc::PlaybackParams const&, bool, std::__Cr::vector<unsigned long, std::__Cr::allocator<unsigned long>> const*) const ./../../cc/paint/paint_op_buffer.cc:407:18 #27 0x60b71a779a44 in cc::PaintOpBuffer::Playback(SkCanvas*, cc::PlaybackParams const&, bool, std::__Cr::vector<unsigned long, std::__Cr::allocator<unsigned long>> const*) const ./../../cc/paint/paint_op_buffer.cc:410:11 #28 0x60b71a750fff in cc::DisplayItemList::Raster(SkCanvas*, cc::PlaybackParams const&) const ./../../cc/paint/display_item_list.cc:105:20 #29 0x60b71ba6dc7f in cc::RasterSource::PlaybackDisplayListToCanvas(SkCanvas*, cc::RasterSource::PlaybackSettings const&) const ./../../cc/raster/raster_source.cc:132:20 #30 0x60b71ba6d728 in cc::RasterSource::PlaybackToCanvas(SkCanvas*, gfx::Size const&, gfx::Rect const&, gfx::Rect const&, gfx::AxisTransform2d const&, cc::RasterSource::PlaybackSettings const&) const ./../../cc/raster/raster_source.cc:119:3 #31 0x60b71bd46a7f in cc::RasterBufferProvider::PlaybackToMemory(void*, viz::SharedImageFormat, gfx::Size const&, unsigned long, cc::RasterSource const*, gfx::Rect const&, gfx::Rect const&, gfx::AxisTransform2d const&, gfx::ColorSpace const&, bool, cc::RasterSource::PlaybackSettings const&) ./../../cc/raster/raster_buffer_provider.cc:92:20 #32 0x60b71bd463cf in cc::(anonymous namespace)::BitmapRasterBufferImpl::Playback(cc::RasterSource const*, gfx::Rect const&, gfx::Rect const&, unsigned long, gfx::AxisTransform2d const&, cc::RasterSource::PlaybackSettings const&, GURL const&) ./../../cc/raster/bitmap_raster_buffer_provider.cc:90:5 #33 0x60b71bad359f in cc::(anonymous namespace)::RasterTaskImpl::RunOnWorkerThread() ./../../cc/tiles/tile_manager.cc:151:21 #34 0x60b72823b883 in cc::CategorizedWorkerPoolJob::Run(base::span<cc::TaskCategory const, 18446744073709551615ul, cc::TaskCategory const*>, base::JobDelegate*) ./../../cc/raster/categorized_worker_pool.cc:275:29 #35 0x60b72824364c in Invoke<void (cc::CategorizedWorkerPoolJob::)(base::span<const cc::TaskCategory, 18446744073709551615UL, const cc::TaskCategory >, base::JobDelegate ), cc::CategorizedWorkerPoolJob , const base::span<const cc::TaskCategory, 18446744073709551615UL, const cc::TaskCategory > &, base::JobDelegate > ./../../base/functional/bind_internal.h:729:12 #36 0x60b72824364c in MakeItSo<void (cc::CategorizedWorkerPoolJob::const &)(base::span<const cc::TaskCategory, 18446744073709551615UL, const cc::TaskCategory >, base::JobDelegate ), const std::__Cr::tuple<base::internal::UnretainedWrapper<cc::CategorizedWorkerPoolJob, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::span<const cc::TaskCategory, 18446744073709551615UL, const cc::TaskCategory > > &, base::JobDelegate > ./../../base/functional/bind_internal.h:921:12 #37 0x60b72824364c in RunImpl<void (cc::CategorizedWorkerPoolJob::const &)(base::span<const cc::TaskCategory, 18446744073709551615UL, const cc::TaskCategory >, base::JobDelegate ), const std::__Cr::tuple<base::internal::UnretainedWrapper<cc::CategorizedWorkerPoolJob, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::span<const cc::TaskCategory, 18446744073709551615UL, const cc::TaskCategory > > &, 0UL, 1UL> ./../../base/functional/bind_internal.h:1058:14 #38 0x60b72824364c in base::internal::Invoker<base::internal::FunctorTraits<void (cc::CategorizedWorkerPoolJob:: const&)(base::span<cc::TaskCategory const, 18446744073709551615ul, cc::TaskCategory const>, base::JobDelegate), cc::CategorizedWorkerPoolJob, base::span<cc::TaskCategory const, 18446744073709551615ul, cc::TaskCategory const> const&>, base::internal::BindState<true, true, false, void (cc::CategorizedWorkerPoolJob::)(base::span<cc::TaskCategory const, 18446744073709551615ul, cc::TaskCategory const>, base::JobDelegate), base::internal::UnretainedWrapper<cc::CategorizedWorkerPoolJob, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::span<cc::TaskCategory const, 18446744073709551615ul, cc::TaskCategory const>>, void (base::JobDelegate)>::Run(base::internal::BindStateBase, base::JobDelegate) ./../../base/functional/bind_internal.h:978:12 #39 0x60b71643cb13 in base::RepeatingCallback<void (base::JobDelegate)>::Run(base::JobDelegate) const & ./../../base/functional/callback.h:344:12 #40 0x60b71643e021 in operator() ./../../base/task/thread_pool/job_task_source.cc:101:32 #41 0x60b71643e021 in Invoke<const (lambda at ../../base/task/thread_pool/job_task_source.cc:97:11) &, base::internal::JobTaskSource > ./../../base/functional/bind_internal.h:647:12 #42 0x60b71643e021 in MakeItSo<const (lambda at ../../base/task/thread_pool/job_task_source.cc:97:11) &, const std::__Cr::tuple<base::internal::UnretainedWrapper<base::internal::JobTaskSource, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &> ./../../base/functional/bind_internal.h:921:12 #43 0x60b71643e021 in RunImpl<const (lambda at ../../base/task/thread_pool/job_task_source.cc:97:11) &, const std::__Cr::tuple<base::internal::UnretainedWrapper<base::internal::JobTaskSource, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &, 0UL> ./../../base/functional/bind_internal.h:1058:14 #44 0x60b71643e021 in base::internal::Invoker<base::internal::FunctorTraits<base::internal::JobTaskSource::JobTaskSource(base::Location const&, base::TaskTraits const&, base::RepeatingCallback<void (base::JobDelegate)>, base::RepeatingCallback<unsigned long (unsigned long)>, base::internal::PooledTaskRunnerDelegate)::$_0 const&, base::internal::JobTaskSource*>, base::internal::BindState<false, false, false, base::internal::JobTaskSource::JobTaskSource(base::Location const&, base::TaskTraits const&, base::RepeatingCallback<void (base::JobDelegate*)>, base::RepeatingCallback<unsigned long (unsigned long)>, base::internal::PooledTaskRunnerDelegate*)::$_0, base::internal::UnretainedWrapper<base::internal::JobTaskSource, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void ()>::Run(base::internal::BindStateBase*) ./../../base/functional/bind_internal.h:978:12 #45 0x60b7163b78c2 in Run ./../../base/functional/callback.h:156:12 #46 0x60b7163b78c2 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) ./../../base/task/common/task_annotator.cc:210:34 #47 0x60b71644589a in RunTask<(lambda at ../../base/task/thread_pool/task_tracker.cc:692:35)> ./../../base/task/common/task_annotator.h:106:5 #48 0x60b71644589a in base::internal::TaskTracker::RunTaskImpl(base::internal::Task&, base::TaskTraits const&, base::internal::TaskSource*, base::internal::SequenceToken const&) ./../../base/task/thread_pool/task_tracker.cc:691:19 #49 0x60b716445aec in base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task&, base::TaskTraits const&, base::internal::TaskSource*, base::internal::SequenceToken const&) ./../../base/task/thread_pool/task_tracker.cc:676:3 #50 0x60b7164440c4 in RunTaskWithShutdownBehavior ./../../base/task/thread_pool/task_tracker.cc:706:7 #51 0x60b7164440c4 in base::internal::TaskTracker::RunTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&) ./../../base/task/thread_pool/task_tracker.cc:504:5 #52 0x60b716442ff4 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ./../../base/task/thread_pool/task_tracker.cc:394:5 #53 0x60b716489623 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:473:36 #54 0x60b716488757 in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:359:3 #55 0x60b71648823e in base::internal::WorkerThread::ThreadMain() ./../../base/task/thread_pool/worker_thread.cc:339:7 #56 0x60b7164f4499 in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:103:13 #57 0x60b70194e106 in asan_thread_start(void*) asan_rtl:28

0x7371850dae80 is located 0 bytes inside of 2400-byte region [0x7371850dae80,0x7371850db7e0) freed by thread T4 (ThreadPoolForeg) here: #0 0x60b701950b0c in __interceptor_realloc asan_rtl:3 #1 0x60b72e558c59 in std::sys::alloc::unix::$LT$impl$u20$core..alloc..global..GlobalAlloc$u20$for$u20$std..alloc..System$GT$::realloc::h11a5d5329483a32c ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/sys/alloc/unix.rs:54:22 #2 0x60b72e558c59 in __rdl_realloc ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/alloc.rs:423:13 #3 0x60b72e6521d6 in alloc::alloc::realloc::h8c51c1edd9c20eee ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:136:14 #4 0x60b72e6521d6 in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::shrink::h3f698d6a856191d8 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:322:31 #5 0x60b72e6521d6 in alloc::raw_vec::RawVecInner$LT$A$GT$::shrink_unchecked::hb40c2a131e341503 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:729:17

previously allocated by thread T9 (ThreadPoolForeg) here: #0 0x60b701950b0c in __interceptor_realloc asan_rtl:3 #1 0x60b72e558c59 in std::sys::alloc::unix::$LT$impl$u20$core..alloc..global..GlobalAlloc$u20$for$u20$std..alloc..System$GT$::realloc::h11a5d5329483a32c ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/sys/alloc/unix.rs:54:22 #2 0x60b72e558c59 in __rdl_realloc ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/alloc.rs:423:13 #3 0x60b72e65186e in alloc::alloc::realloc::h8c51c1edd9c20eee ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:136:14 #4 0x60b72e65186e in alloc::alloc::Global::grow_impl::hd19f76f233ffb281 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:225:31 #5 0x60b72e65186e in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::grow::hbd0cb9ec9a691fe8 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:282:18 #6 0x60b72e65186e in alloc::raw_vec::finish_grow::hcce11a4b3c274f51 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:775:13

Thread T9 (ThreadPoolForeg) created by T3 (ThreadPoolForeg) here: #0 0x60b701934b41 in ___interceptor_pthread_create asan_rtl:3 #1 0x60b7164f3a18 in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThreadBase::Delegate*, base::PlatformThreadHandle*, base::ThreadType, base::MessagePumpType) ./../../base/threading/platform_thread_posix.cc:151:13 #2 0x60b7164872ce in base::internal::WorkerThread::Start(scoped_refptrbase::SingleThreadTaskRunner, base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:185:3 #3 0x60b7164477cc in base::internal::ThreadGroup::BaseScopedCommandsExecutor::Flush() ./../../base/task/thread_pool/thread_group.cc:88:13 #4 0x60b71644730f in base::internal::ThreadGroup::BaseScopedCommandsExecutor::~BaseScopedCommandsExecutor() ./../../base/task/thread_pool/thread_group.cc:79:3 #5 0x60b71646e8da in base::internal::ThreadGroupImpl::ScopedCommandsExecutor::~ScopedCommandsExecutor() ./../../base/task/thread_pool/thread_group_impl.cc:43:3 #6 0x60b71646f0cc in base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::RegisteredTaskSourceAndTransaction) ./../../base/task/thread_pool/thread_group_impl.cc:269:1 #7 0x60b7164553c2 in base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptrbase::internal::Sequence) ./../../base/task/thread_pool/thread_pool_impl.cc:439:38 #8 0x60b71645598a in base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptrbase::internal::Sequence) ./../../base/task/thread_pool/thread_pool_impl.cc:462:12 #9 0x60b716453e89 in base::internal::ThreadPoolImpl::PostDelayedTask(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ./../../base/task/thread_pool/thread_pool_impl.cc:251:10 #10 0x60b71643b3ee in PostDelayedTask ./../../base/task/thread_pool.cc:66:31 #11 0x60b71643b3ee in base::ThreadPool::PostTask(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) ./../../base/task/thread_pool.cc:57:10 #12 0x60b71258b8ad in blink::worker_pool::PostTask(base::Location const&, base::TaskTraits const&, WTF::CrossThreadOnceFunction<void ()>) ./../../third_party/blink/renderer/platform/scheduler/common/worker_pool.cc:23:3 #13 0x60b725c3bb0e in blink::BackgroundResourceScriptStreamer::BackgroundProcessor::MaybeStartProcessingResponse(mojo::StructPtrnetwork::mojom::URLResponseHead&, mojo::ScopedHandleBasemojo::DataPipeConsumerHandle&, std::__Cr::optional<mojo_base::BigBuffer>&, scoped_refptrbase::SequencedTaskRunner, blink::BackgroundResponseProcessor::Client*) ./../../third_party/blink/renderer/bindings/core/v8/script_streamer.cc:1456:5 #14 0x60b7127a2480 in blink::BackgroundURLLoader::Context::RequestClient::OnReceivedResponse(mojo::StructPtrnetwork::mojom::URLResponseHead, mojo::ScopedHandleBasemojo::DataPipeConsumerHandle, std::__Cr::optional<mojo_base::BigBuffer>) ./../../third_party/blink/renderer/platform/loader/fetch/url_loader/background_url_loader.cc:335:45 #15 0x60b7127eced2 in blink::ResourceRequestSender::OnReceivedResponse(mojo::StructPtrnetwork::mojom::URLResponseHead, mojo::ScopedHandleBasemojo::DataPipeConsumerHandle, std::__Cr::optional<mojo_base::BigBuffer>, base::TimeTicks) ./../../third_party/blink/renderer/platform/loader/fetch/url_loader/resource_request_sender.cc:515:26 #16 0x60b7127c70a4 in blink::MojoURLLoaderClient::OnReceiveResponse(mojo::StructPtrnetwork::mojom::URLResponseHead, mojo::ScopedHandleBasemojo::DataPipeConsumerHandle, std::__Cr::optional<mojo_base::BigBuffer>) ./../../third_party/blink/renderer/platform/loader/fetch/url_loader/mojo_url_loader_client.cc:312:31 #17 0x60b706be784d in blink::ThrottlingURLLoader::OnReceiveResponse(mojo::StructPtrnetwork::mojom::URLResponseHead, mojo::ScopedHandleBasemojo::DataPipeConsumerHandle, std::__Cr::optional<mojo_base::BigBuffer>) ./../../third_party/blink/common/loader/throttling_url_loader.cc:699:23 #18 0x60b7034ea014 in network::mojom::URLLoaderClientStubDispatch::Accept(network::mojom::URLLoaderClient*, mojo::Message*) ./gen/services/network/public/mojom/url_loader.mojom.cc:1263:13 #19 0x60b7161b4f8a in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) ./../../mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:1051:54 #20 0x60b7161d092a in mojo::MessageDispatcher::Accept(mojo::Message*) ./../../mojo/public/cpp/bindings/lib/message_dispatcher.cc:43:19 #21 0x60b7161ba90e in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) ./../../mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:724:20 #22 0x60b7161df4da in mojo::internal::MultiplexRouter::ProcessIncomingMessage(mojo::internal::MultiplexRouter::MessageWrapper*, mojo::internal::MultiplexRouter::ClientCallBehavior, base::SequencedTaskRunner*) ./../../mojo/public/cpp/bindings/lib/multiplex_router.cc:1121:42 #23 0x60b7161dd76f in mojo::internal::MultiplexRouter::Accept(mojo::Message*) ./../../mojo/public/cpp/bindings/lib/multiplex_router.cc:734:7 #24 0x60b7161d092a in mojo::MessageDispatcher::Accept(mojo::Message*) ./../../mojo/public/cpp/bindings/lib/message_dispatcher.cc:43:19 #25 0x60b7161ac4da in mojo::Connector::DispatchMessage(mojo::ScopedHandleBasemojo::MessageHandle) ./../../mojo/public/cpp/bindings/lib/connector.cc:562:49 #26 0x60b7161adeb0 in mojo::Connector::ReadAllAvailableMessages() ./../../mojo/public/cpp/bindings/lib/connector.cc:620:14 #27 0x60b7161ad8d9 in OnHandleReadyInternal ./../../mojo/public/cpp/bindings/lib/connector.cc:452:3 #28 0x60b7161ad8d9 in mojo::Connector::OnWatcherHandleReady(char const*, unsigned int) ./../../mojo/public/cpp/bindings/lib/connector.cc:418:3 #29 0x60b7161af1aa in Invoke<void (mojo::Connector::)(const char , unsigned int), mojo::Connector , const char , unsigned int> ./../../base/functional/bind_internal.h:729:12 #30 0x60b7161af1aa in MakeItSo<void (mojo::Connector::const &)(const char , unsigned int), const std::__Cr::tuple<base::internal::UnretainedWrapper<mojo::Connector, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::internal::UnretainedWrapper<const char, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &, unsigned int> ./../../base/functional/bind_internal.h:921:12 #31 0x60b7161af1aa in RunImpl<void (mojo::Connector::const &)(const char , unsigned int), const std::__Cr::tuple<base::internal::UnretainedWrapper<mojo::Connector, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::internal::UnretainedWrapper<const char, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &, 0UL, 1UL> ./../../base/functional/bind_internal.h:1058:14 #32 0x60b7161af1aa in base::internal::Invoker<base::internal::FunctorTraits<void (mojo::Connector:: const&)(char const, unsigned int), mojo::Connector, char const const&>, base::internal::BindState<true, true, false, void (mojo::Connector::)(char const, unsigned int), base::internal::UnretainedWrapper<mojo::Connector, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::internal::UnretainedWrapper<char const, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void (unsigned int)>::Run(base::internal::BindStateBase, unsigned int) ./../../base/functional/bind_internal.h:978:12 #33 0x60b706bda3e2 in base::RepeatingCallback<void (unsigned int)>::Run(unsigned int) const & ./../../base/functional/callback.h:344:12 #34 0x60b706bda16f in Invoke<void (const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &> ./../../base/functional/bind_internal.h:662:12 #35 0x60b706bda16f in MakeItSo<void (const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const std::__Cr::tuple<base::RepeatingCallback<void (unsigned int)> > &, unsigned int, const mojo::HandleSignalsState &> ./../../base/functional/bind_internal.h:921:12 #36 0x60b706bda16f in RunImpl<void (const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const std::__Cr::tuple<base::RepeatingCallback<void (unsigned int)> > &, 0UL> ./../../base/functional/bind_internal.h:1058:14 #37 0x60b706bda16f in base::internal::Invoker<base::internal::FunctorTraits<void ( const&)(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&), base::RepeatingCallback<void (unsigned int)> const&>, base::internal::BindState<false, true, false, void ()(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&), base::RepeatingCallback<void (unsigned int)>>, void (unsigned int, mojo::HandleSignalsState const&)>::Run(base::internal::BindStateBase, unsigned int, mojo::HandleSignalsState const&) ./../../base/functional/bind_internal.h:978:12 #38 0x60b716ecf145 in base::RepeatingCallback<void (unsigned int, mojo::HandleSignalsState const&)>::Run(unsigned int, mojo::HandleSignalsState const&) const & ./../../base/functional/callback.h:344:12 #39 0x60b716ecea73 in mojo::SimpleWatcher::OnHandleReady(int, unsigned int, mojo::HandleSignalsState const&) ./../../mojo/public/cpp/system/simple_watcher.cc:278:14 #40 0x60b716ecfc1b in Invoke<void (mojo::SimpleWatcher::)(int, unsigned int, const mojo::HandleSignalsState &), const base::WeakPtrmojo::SimpleWatcher &, int, unsigned int, mojo::HandleSignalsState> ./../../base/functional/bind_internal.h:729:12 #41 0x60b716ecfc1b in MakeItSo<void (mojo::SimpleWatcher::)(int, unsigned int, const mojo::HandleSignalsState &), std::__Cr::tuple<base::WeakPtrmojo::SimpleWatcher, int, unsigned int, mojo::HandleSignalsState> > ./../../base/functional/bind_internal.h:945:5 #42 0x60b716ecfc1b in void base::internal::Invoker<base::internal::FunctorTraits<void (mojo::SimpleWatcher::&&)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtrmojo::SimpleWatcher&&, int&&, unsigned int&&, mojo::HandleSignalsState&&>, base::internal::BindState<true, true, false, void (mojo::SimpleWatcher::)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtrmojo::SimpleWatcher, int, unsigned int, mojo::HandleSignalsState>, void ()>::RunImpl<void (mojo::SimpleWatcher::)(int, unsigned int, mojo::HandleSignalsState const&), std::__Cr::tuple<base::WeakPtrmojo::SimpleWatcher, int, unsigned int, mojo::HandleSignalsState>, 0ul, 1ul, 2ul, 3ul>(void (mojo::SimpleWatcher::&&)(int, unsigned int, mojo::HandleSignalsState const&), std::__Cr::tuple<base::WeakPtrmojo::SimpleWatcher, int, unsigned int, mojo::HandleSignalsState>&&, std::__Cr::integer_sequence<unsigned long, 0ul, 1ul, 2ul, 3ul>) ./../../base/functional/bind_internal.h:1058:14 #43 0x60b7163b78c2 in Run ./../../base/functional/callback.h:156:12 #44 0x60b7163b78c2 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) ./../../base/task/common/task_annotator.cc:210:34 #45 0x60b71644589a in RunTask<(lambda at ../../base/task/thread_pool/task_tracker.cc:692:35)> ./../../base/task/common/task_annotator.h:106:5 #46 0x60b71644589a in base::internal::TaskTracker::RunTaskImpl(base::internal::Task&, base::TaskTraits const&, base::internal::TaskSource, base::internal::SequenceToken const&) ./../../base/task/thread_pool/task_tracker.cc:691:19 #47 0x60b716445aec in base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task&, base::TaskTraits const&, base::internal::TaskSource*, base::internal::SequenceToken const&) ./../../base/task/thread_pool/task_tracker.cc:676:3 #48 0x60b7164440c4 in RunTaskWithShutdownBehavior ./../../base/task/thread_pool/task_tracker.cc:706:7 #49 0x60b7164440c4 in base::internal::TaskTracker::RunTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&) ./../../base/task/thread_pool/task_tracker.cc:504:5 #50 0x60b716442ff4 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ./../../base/task/thread_pool/task_tracker.cc:394:5 #51 0x60b716489623 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:473:36 #52 0x60b716488757 in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:359:3 #53 0x60b71648823e in base::internal::WorkerThread::ThreadMain() ./../../base/task/thread_pool/worker_thread.cc:339:7 #54 0x60b7164f4499 in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:103:13 #55 0x60b70194e106 in asan_thread_start(void*) asan_rtl:28

Thread T3 (ThreadPoolForeg) created by T0 (chrome) here: #0 0x60b701934b41 in ___interceptor_pthread_create asan_rtl:3 #1 0x60b7164f3a18 in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThreadBase::Delegate*, base::PlatformThreadHandle*, base::ThreadType, base::MessagePumpType) ./../../base/threading/platform_thread_posix.cc:151:13 #2 0x60b7164872ce in base::internal::WorkerThread::Start(scoped_refptrbase::SingleThreadTaskRunner, base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:185:3 #3 0x60b7164477cc in base::internal::ThreadGroup::BaseScopedCommandsExecutor::Flush() ./../../base/task/thread_pool/thread_group.cc:88:13 #4 0x60b71644730f in base::internal::ThreadGroup::BaseScopedCommandsExecutor::~BaseScopedCommandsExecutor() ./../../base/task/thread_pool/thread_group.cc:79:3 #5 0x60b71646e8da in base::internal::ThreadGroupImpl::ScopedCommandsExecutor::~ScopedCommandsExecutor() ./../../base/task/thread_pool/thread_group_impl.cc:43:3 #6 0x60b71646e3ae in base::internal::ThreadGroupImpl::Start(unsigned long, unsigned long, base::TimeDelta, scoped_refptrbase::SingleThreadTaskRunner, base::WorkerThreadObserver*, base::internal::ThreadGroup::WorkerEnvironment, bool, std::__Cr::optionalbase::TimeDelta) ./../../base/task/thread_pool/thread_group_impl.cc:249:1 #7 0x60b716453119 in base::internal::ThreadPoolImpl::Start(base::ThreadPoolInstance::InitParams const&, base::WorkerThreadObserver*) ./../../base/task/thread_pool/thread_pool_impl.cc:189:35 #8 0x60b72423e9c5 in content::ChildProcess::ChildProcess(base::ThreadType, std::__Cr::unique_ptr<base::ThreadPoolInstance::InitParams, std::__Cr::default_deletebase::ThreadPoolInstance::InitParams>) ./../../content/child/child_process.cc:101:20 #9 0x60b72d985f2b in content::RenderProcess::RenderProcess(std::__Cr::unique_ptr<base::ThreadPoolInstance::InitParams, std::__Cr::default_deletebase::ThreadPoolInstance::InitParams>) ./../../content/renderer/render_process.cc:18:7 #10 0x60b72d9857b5 in content::RenderProcessImpl::RenderProcessImpl() ./../../content/renderer/render_process_impl.cc:107:7 #11 0x60b72d985d10 in content::RenderProcessImpl::Create() ./../../content/renderer/render_process_impl.cc:226:31 #12 0x60b72da051c9 in content::RendererMain(content::MainFunctionParams) ./../../content/renderer/renderer_main.cc:279:53 #13 0x60b71349b194 in content::RunZygote(content::ContentMainDelegate*) ./../../content/app/content_main_runner_impl.cc:678:14 #14 0x60b71349c05d 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:782:12 #15 0x60b71349e8f5 in content::ContentMainRunnerImpl::Run() ./../../content/app/content_main_runner_impl.cc:1142:10 #16 0x60b71349952d in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) ./../../content/app/content_main.cc:348:36 #17 0x60b713499b1b in content::ContentMain(content::ContentMainParams) ./../../content/app/content_main.cc:361:10 #18 0x60b70198bb1a in ChromeMain ./../../chrome/app/chrome_main.cc:222:12 #19 0x75a186e2a1c9 in __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #20 0x75a186e2a28a in __libc_start_main ./csu/../csu/libc-start.c:360:3 #21 0x60b7018b1029 in _start ??:0:0

Thread T4 (ThreadPoolForeg) created by T3 (ThreadPoolForeg) here: #0 0x60b701934b41 in ___interceptor_pthread_create asan_rtl:3 #1 0x60b7164f3a18 in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThreadBase::Delegate*, base::PlatformThreadHandle*, base::ThreadType, base::MessagePumpType) ./../../base/threading/platform_thread_posix.cc:151:13 #2 0x60b7164872ce in base::internal::WorkerThread::Start(scoped_refptrbase::SingleThreadTaskRunner, base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:185:3 #3 0x60b7164477cc in base::internal::ThreadGroup::BaseScopedCommandsExecutor::Flush() ./../../base/task/thread_pool/thread_group.cc:88:13 #4 0x60b71644730f in base::internal::ThreadGroup::BaseScopedCommandsExecutor::~BaseScopedCommandsExecutor() ./../../base/task/thread_pool/thread_group.cc:79:3 #5 0x60b71646e8da in base::internal::ThreadGroupImpl::ScopedCommandsExecutor::~ScopedCommandsExecutor() ./../../base/task/thread_pool/thread_group_impl.cc:43:3 #6 0x60b716470788 in base::internal::ThreadGroupImpl::WorkerDelegate::GetWork(base::internal::WorkerThread*) ./../../base/task/thread_pool/thread_group_impl.cc:449:1 #7 0x60b716489441 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:460:52 #8 0x60b716488757 in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:359:3 #9 0x60b71648823e in base::internal::WorkerThread::ThreadMain() ./../../base/task/thread_pool/worker_thread.cc:339:7 #10 0x60b7164f4499 in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:103:13 #11 0x60b70194e106 in asan_thread_start(void*) asan_rtl:28

SUMMARY: AddressSanitizer: heap-use-after-free (/home/cr/dev/chrome/chrome+0xef484ca) (BuildId: 108374085a71c364) Shadow bytes around the buggy address: 0x7371850dac00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7371850dac80: 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa 0x7371850dad00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7371850dad80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7371850dae00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa f7 fa =>0x7371850dae80:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7371850daf00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7371850daf80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7371850db000: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7371850db080: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7371850db100: fd fd fd fd 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

==11992==ADDITIONAL INFO

==11992==Note: Please include this section with the ASan report. Task trace: #0 0x60b72823b0ed in cc::CategorizedWorkerPoolJob::Start(int) ./../../cc/raster/categorized_worker_pool.cc:162:7 #1 0x60b71be537a1 in cc::ProxyMain::BeginMainFrame(std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_deletecc::BeginMainFrameAndCommitState>) ./../../cc/trees/proxy_main.cc:472:9 #2 0x60b71be71391 in cc::ProxyImpl::ScheduledActionSendBeginMainFrame(viz::BeginFrameArgs const&) ./../../cc/trees/proxy_impl.cc:758:7

Command line: /proc/self/exe --type=renderer --crashpad-handler-pid=11941 --enable-crash-reporter=, --change-stack-guard-on-fork=enable --no-sandbox --file-url-path-alias=/gen=/home/cr/dev/chrome/gen --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1737287303110314 --launch-time-ticks=8733558559 --shared-files=v8_context_snapshot_data:100 --metrics-shmem-handle=4,i,7919204909938279777,16899972713523075039,2097152 --field-trial-handle=3,i,15683146650311825763,14835717324490625682,262144 --variations-seed-version

MiraclePtr Status: NOT PROTECTED No raw_ptr<T> access to this region was detected prior to this crash. This crash is still exploitable with MiraclePtr. Refer to https://chromium.googlesource.com/chromium/src/+/main/base/memory/raw_ptr.md for details.

==11992==END OF ADDITIONAL INFO ==11992==ABORTING

CREDIT INFORMATION Reporter credit: TBA

The original report as published on the Chromium issue tracker, by Francisco Alonso (@revskills). 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. 8 min read.

Context

This is a Chrome VRP report covering a heap use after free in Skia, tracked as CVE-2025-0444 and rated high severity. The affected component is Skia, Chrome's 2D graphics library, and the crash happens while Chrome is rasterising text that uses a colour font (COLR) glyph. The path runs through the Fontations backend, which is the Rust-based font stack that Skia uses to interpret font data, and specifically through the code that builds a path for a glyph and then paints it.

The report is an advisory-style crash report: it gives a reproduction case, an AddressSanitizer trace, and the allocator history. It does not include a written explanation of the underlying logic flaw, so the root cause below is inferred from the stack frames.

Setup

The researcher used a Developer Build of Chrome and Ubuntu:

  • Chrome Version: Version 134.0.6967.0 (Developer Build) (64-bit)
  • Operating System: Ubuntu 24.04.1 LTS

The crash was caught by AddressSanitizer, which aborts with a full report when the bad access happens. The renderer was launched with --no-sandbox and --disable-gpu, so the crash is reached on the CPU raster path rather than through GPU compositing.

Finding it

The trigger is a page, poc.html, served over plain HTTP from a local Python server. The report does not include the contents of poc.html, so the exact font and markup that reach the vulnerable code are not shown. What the trace does show is that the crash occurs on a raster worker thread while drawing a text blob whose glyphs are painted through the COLR colour-font path.

The relevant part of the read stack, from the top down, is:

  1. SkFontationsScalerContext::drawCOLRGlyph calls into the Rust bridge (draw_colr_glyph).
  2. The skrifa colour traversal (traverse_v0_range, ColorGlyph::paint) calls back into ColorPainter::fill_glyph_solid.
  3. That calls SkFontationsScalerContext::generateYScalePathForGlyphId, which calls SkPath::Make and then SkPathRef::SkPathRef.
  4. The constructor copies point data with sk_careful_memcpy, and that copy is the read of freed memory.

So the crash is a read of a 1248-byte span during a path copy, not a write. The allocation being read was a 2400-byte region that had already been freed.

Exploitation

Step 1: serve the page

Bash
python3 -m http.server

This starts a static file server in the current directory on the default port, so that poc.html is reachable at http://[redacted]:8000/poc.html.

Step 2: launch the instrumented build against it

Bash
./chrome --no-sandbox --disable-gpu http://[redacted]:8000/poc.html

The launch uses --no-sandbox and --disable-gpu. The page loads and the renderer aborts with the ASan report below.

Step 3: read the crash

The report opens with the faulting access:

Text
==11992==ERROR: AddressSanitizer: heap-use-after-free on address 0x7371850dae80 at pc 0x60b70194e4cb bp 0x71a1133fc190 sp 0x71a1133fb950
READ of size 1248 at 0x7371850dae80 thread T9 (ThreadPoolForeg)

The read happens on a thread pool worker, T9, and the size, 1248 bytes, matches the point data being copied into a new SkPathRef. The top frames of the read stack are:

Text
    #0 0x60b70194e4ca in __asan_memcpy _asan_rtl_:3
    #1 0x60b702682d64 in sk_careful_memcpy ./../../third_party/skia/include/private/base/SkMalloc.h:129:9
    #2 0x60b702682d64 in copy ./../../third_party/skia/include/private/base/SkTArray.h:656:17
    #3 0x60b702682d64 in TArray<4> ./../../third_party/skia/include/private/base/SkTArray.h:552:15
    #4 0x60b702682d64 in STArray ./../../third_party/skia/include/private/base/SkTArray.h:780:11
    #5 0x60b702682d64 in SkPathRef::SkPathRef(SkSpan<SkPoint const>, SkSpan<unsigned char const>, SkSpan<float const>, unsigned int) ./../../third_party/skia/include/private/SkPathRef.h:63:11
    #6 0x60b702681f3e in MakeInternal ./../../third_party/skia/src/core/SkPath.cpp:3576:38
    #7 0x60b702681f3e in SkPath::Make(SkPoint const*, int, unsigned char const*, int, float const*, int, SkPathFillType, bool) ./../../third_party/skia/src/core/SkPath.cpp:3530:12
    #8 0x60b71815e3a2 in SkFontationsScalerContext::generateYScalePathForGlyphId(unsigned short, SkPath*, float, fontations_ffi::BridgeHintingInstance const&) ./../../third_party/skia/src/ports/SkTypeface_fontations.cpp:415:17

This shows the copy is performed by SkPathRef's constructor from spans supplied by SkPath::Make, which was called by generateYScalePathForGlyphId. The source span is the freed buffer.

The allocator history is the key part. The region was freed by thread T4 through a Rust realloc that shrinks an allocation:

Text
0x7371850dae80 is located 0 bytes inside of 2400-byte region [0x7371850dae80,0x7371850db7e0)
freed by thread T4 (ThreadPoolForeg) here:
    #0 0x60b701950b0c in ___interceptor_realloc _asan_rtl_:3
    #1 0x60b72e558c59 in std::sys::alloc::unix::_$LT$impl$u20$core..alloc..global..GlobalAlloc$u20$for$u20$std..alloc..System$GT$::realloc::h11a5d5329483a32c ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/sys/alloc/unix.rs:54:22
    #2 0x60b72e558c59 in __rdl_realloc ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/alloc.rs:423:13
    #3 0x60b72e6521d6 in alloc::alloc::realloc::h8c51c1edd9c20eee ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:136:14
    #4 0x60b72e6521d6 in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::shrink::h3f698d6a856191d8 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:322:31
    #5 0x60b72e6521d6 in alloc::raw_vec::RawVecInner$LT$A$GT$::shrink_unchecked::hb40c2a131e341503 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:729:17

It was originally allocated by T9 through a Rust realloc that grows an allocation:

Text
previously allocated by thread T9 (ThreadPoolForeg) here:
    #0 0x60b701950b0c in ___interceptor_realloc _asan_rtl_:3
    #1 0x60b72e558c59 in std::sys::alloc::unix::_$LT$impl$u20$core..alloc..global..GlobalAlloc$u20$for$u20$std..alloc..System$GT$::realloc::h11a5d5329483a32c ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/sys/alloc/unix.rs:54:22
    #2 0x60b72e558c59 in __rdl_realloc ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/alloc.rs:423:13
    #3 0x60b72e65186e in alloc::alloc::realloc::h8c51c1edd9c20eee ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:136:14
    #4 0x60b72e65186e in alloc::alloc::Global::grow_impl::hd19f76f233ffb281 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:225:31
    #5 0x60b72e65186e in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::grow::hbd0cb9ec9a691fe8 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:282:18
    #6 0x60b72e65186e in alloc::raw_vec::finish_grow::hcce11a4b3c274f51 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:775:13

So the buffer was grown on T9, then shrunk on T4, and then read again on T9. The shrink on T4 is what invalidates the memory that T9 later copies from.

The report also records how the threads came to exist. T9 was created by T3, and T3 was created by the main process T0 during renderer startup, in content::RenderProcess::RenderProcess. T4 was created by T3 as well, from ThreadGroupImpl::WorkerDelegate::GetWork.

The task trace shows the raster work was started from the compositor's main frame:

Text
Task trace:
    #0 0x60b72823b0ed in cc::CategorizedWorkerPoolJob::Start(int) ./../../cc/raster/categorized_worker_pool.cc:162:7
    #1 0x60b71be537a1 in cc::ProxyMain::BeginMainFrame(std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>) ./../../cc/trees/proxy_main.cc:472:9
    #2 0x60b71be71391 in cc::ProxyImpl::ScheduledActionSendBeginMainFrame(viz::BeginFrameArgs const&) ./../../cc/trees/proxy_impl.cc:758:7

The renderer command line in the report confirms the raster configuration:

Text
Command line: `/proc/self/exe --type=renderer --crashpad-handler-pid=11941 --enable-crash-reporter=, --change-stack-guard-on-fork=enable --no-sandbox --file-url-path-alias=/gen=/home/cr/dev/chrome/gen --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1737287303110314 --launch-time-ticks=8733558559 --shared-files=v8_context_snapshot_data:100 --metrics-shmem-handle=4,i,7919204909938279777,16899972713523075039,2097152 --field-trial-handle=3,i,15683146650311825763,14835717324490625682,262144 --variations-seed-version`

The renderer command line shows --num-raster-threads=4.

Finally, the report notes the mitigation status:

Text
MiraclePtr Status: NOT PROTECTED
No raw_ptr<T> access to this region was detected prior to this crash.
This crash is still exploitable with MiraclePtr.

MiraclePtr is Chrome's pointer-quarantine mitigation against use after free. Here it did not apply: the report says no raw_ptr<T> access to the region was detected before the crash.

Root cause

The report does not describe the logic flaw in prose, so the following is inferred from the frames. A buffer owned on the Rust side (a RawVec grown via finish_grow and later shrunk via shrink_unchecked) is used to back glyph path data. While one raster worker is still copying that data into a new SkPathRef inside generateYScalePathForGlyphId, another worker shrinks the same allocation. The shrink reallocates the buffer, so the span the first thread is copying from now points at freed memory, and sk_careful_memcpy reads it.

The existing defences did not catch it for two reasons visible in the report. First, the dangling reference is not a raw_ptr<T>, so MiraclePtr's quarantine does not cover it. Second, the lifetime is shared across two raster worker threads, so a single-threaded ownership assumption in the path generation code is not enough to keep the buffer alive for the duration of the copy.

Impact

The report describes a use after free in Skia. A use after free in the renderer is memory corruption territory: an attacker who can control the timing of the free and the subsequent read could, in principle, influence what the copied path data contains. The report itself does not demonstrate control over the freed contents or a full exploit chain, and the ASan trace shows only a read. The report does not demonstrate control over the freed contents or a full exploit chain, and the ASan trace shows only a read.

Fix

The report does not state what change was made. The fix would need to keep the backing buffer alive for the whole duration of the path copy, or avoid sharing a shrinkable Rust allocation across raster workers without synchronisation. Which of these was applied is not recorded here.

Variants to test

  1. Vary the font. Try other COLR fonts, including ones with many colour layers and large glyph outlines, and check whether the crash reproduces with a single raster thread. A positive result is the same heap-use-after-free in SkPathRef::SkPathRef reached from generateYScalePathForGlyphId.
  2. Vary raster concurrency. Run with different --num-raster-threads values and see whether the race window widens or closes. A positive result is a crash that only appears above a certain thread count.
  3. Vary the glyph size. Larger glyphs mean larger point spans and larger reallocations, which may make the shrink more likely to move the buffer. A positive result is a crash whose read size scales with the glyph complexity.
  4. Check other Fontations consumers. Any code path that calls generateYScalePathForGlyphId and then paints the resulting path is a candidate. A positive result is the same free-then-read pattern in a different caller.
  5. Check MiraclePtr coverage. For any similar crash, confirm whether the dangling reference is held through raw_ptr<T>. A positive result is a report that says NOT PROTECTED and still exploitable with MiraclePtr, as here.

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. 18 min read.

What happened, in plain words

A security researcher found a way to make Google Chrome crash in a way that, in the wrong hands, could be turned into something more serious. The crash happens deep inside Skia, the part of Chrome that draws shapes and text on the screen. When Chrome draws certain kinds of colourful fonts, one part of the program frees a block of memory while another part is still reading from it. Reading memory after it has been freed is called a use after free, and it is a well-known class of memory bug.

The bug was reported through Google's Chrome Vulnerability Reward Program (VRP), the scheme that pays people for finding and reporting security problems in Chrome. It is tracked as CVE-2025-0444, rated high severity, and the researcher credited is Francisco Alonso (@revskills). The report records a bounty of 7000.00 USD and was disclosed on 2025-02-04.

The report itself is a crash report rather than an essay. It gives the steps to reproduce, a long dump from a tool called AddressSanitizer, and the history of the memory block that was freed. It does not explain the logic flaw in words, so anything below about the underlying cause is read from the stack traces.

Context

Chrome is a web browser. Inside it, Skia is the 2D graphics library: the code that turns instructions like "draw this letter in this font at this position" into actual pixels. The affected component is Skia.

The crash happens while Chrome is rasterising text. Rasterising means converting a drawing instruction into a grid of pixels, the way a printer turns a document into dots of ink. The text in question uses a colour font, specifically a COLR glyph. A glyph is one drawn character shape inside a font (the shape of the letter A, for example). A COLR font is a font format where each glyph can be built from several coloured layers, so the letter can be drawn in more than one colour rather than as a single flat shape.

The path runs through the Fontations backend. Fontations is the Rust-based font stack that Skia uses to read and interpret font data. Rust is a programming language designed to make certain memory mistakes harder to make, but here it is used alongside older C++ code, and the bug sits at the boundary between the two. Specifically, the crash is in the code that builds a path for a glyph and then paints it. A path is the outline of a shape, stored as a list of points and instructions.

The report is an advisory-style crash report: it gives a reproduction case, an AddressSanitizer trace, and the allocator history. It does not include a written explanation of the underlying logic flaw, so the root cause below is inferred from the stack frames.

Setup

The researcher used a Developer Build of Chrome and Ubuntu:

  • Chrome Version: Version 134.0.6967.0 (Developer Build) (64-bit)
  • Operating System: Ubuntu 24.04.1 LTS

A Developer Build is a version of Chrome built for testing rather than for ordinary users. Ubuntu is a Linux operating system, and 24.04.1 LTS is a specific release of it.

The crash was caught by AddressSanitizer. AddressSanitizer, often shortened to ASan, is a tool built into a special test build of a program that watches every memory access. When the program reads or writes memory it should not, ASan stops it immediately and prints a detailed report instead of letting it carry on and behave unpredictably. That is what turns the memory error into a deterministic abort with a full report.

The renderer was launched with --no-sandbox and --disable-gpu. The renderer is the part of Chrome that actually loads and draws a web page; Chrome splits itself into several processes so that a problem in one page does not take down the whole browser. The sandbox is the security boundary that restricts what the renderer is allowed to do. --no-sandbox turns that boundary off. --disable-gpu keeps rendering on the CPU rather than the graphics card, so the crash is reached on the CPU raster path rather than through GPU compositing.

Finding it

The trigger is a page, poc.html, served over plain HTTP from a local Python server. "poc" stands for proof of concept: a minimal file that demonstrates the bug. The report does not include the contents of poc.html, so the exact font and markup that reach the vulnerable code are not shown. What the trace does show is that the crash occurs on a raster worker thread while drawing a text blob whose glyphs are painted through the COLR colour-font path. A thread is one line of execution inside a program; a program can run several threads at once, and a raster worker thread is one of the threads Chrome uses to turn drawing instructions into pixels. A text blob is a bundle of text ready to be drawn.

The relevant part of the read stack, from the top down, is:

  1. SkFontationsScalerContext::drawCOLRGlyph calls into the Rust bridge (draw_colr_glyph).
  2. The skrifa colour traversal (traverse_v0_range, ColorGlyph::paint) calls back into ColorPainter::fill_glyph_solid.
  3. That calls SkFontationsScalerContext::generateYScalePathForGlyphId, which calls SkPath::Make and then SkPathRef::SkPathRef.
  4. The constructor copies point data with sk_careful_memcpy, and that copy is the read of freed memory.

A stack is the list of function calls currently in progress, newest at the top. Reading it from the top down tells you the order in which the code reached the crash. skrifa is the Rust library that reads colour font data. A bridge is the glue code that lets one programming language call into another, here C++ calling into Rust.

So the crash is a read of a 1248-byte span during a path copy, not a write. A span is simply a view of a contiguous chunk of memory: a starting point plus a length. The allocation being read was a 2400-byte region that had already been freed.

Exploitation

Step 1: serve the page

Bash
python3 -m http.server

This starts a static file server in the current directory on the default port, so that poc.html is reachable at http://[redacted]:8000/poc.html.

Line by line: python3 runs the Python 3 interpreter. -m http.server tells Python to run its built-in module called http.server, which is a tiny web server that serves whatever files are in the folder you started it from. The default port is 8000, and [redacted] is the address a computer uses to talk to itself (often called localhost). The reason for this step is to give Chrome a real web address to load the test page from, exactly as it would load a page from the internet.

Step 2: launch the instrumented build against it

Bash
./chrome --no-sandbox --disable-gpu http://[redacted]:8000/poc.html

Line by line: ./chrome runs the Chrome binary in the current folder. --no-sandbox removes the sandbox so the ASan build runs normally. --disable-gpu keeps rendering on the CPU so the raster path in the trace is exercised. The last part is the address of the test page. The page loads and the renderer aborts with the ASan report below. The reason for this step is to load the proof-of-concept page in the instrumented browser and let ASan catch the bad memory access at the moment it happens.

Step 3: read the crash

The report opens with the faulting access:

Text
==11992==ERROR: AddressSanitizer: heap-use-after-free on address 0x7371850dae80 at pc 0x60b70194e4cb bp 0x71a1133fc190 sp 0x71a1133fb950
READ of size 1248 at 0x7371850dae80 thread T9 (ThreadPoolForeg)

Line by line: ==11992== is the process ID of the crashing renderer, a number the operating system uses to identify the running program. AddressSanitizer: heap-use-after-free is the verdict: the program used a piece of memory from the heap after it had been freed. The heap is the pool of memory a program uses for data whose size is only known while it runs. on address 0x7371850dae80 is the memory address involved. pc, bp and sp are the program counter, base pointer and stack pointer, three registers that record where the CPU was when the error was detected. READ of size 1248 says the program tried to read 1248 bytes. thread T9 (ThreadPoolForeg) says it happened on thread number 9, a background worker thread from Chrome's thread pool.

The read happens on a thread pool worker, T9, and the size, 1248 bytes, matches the point data being copied into a new SkPathRef. The top frames of the read stack are:

Text
    #0 0x60b70194e4ca in __asan_memcpy _asan_rtl_:3
    #1 0x60b702682d64 in sk_careful_memcpy ./../../third_party/skia/include/private/base/SkMalloc.h:129:9
    #2 0x60b702682d64 in copy ./../../third_party/skia/include/private/base/SkTArray.h:656:17
    #3 0x60b702682d64 in TArray<4> ./../../third_party/skia/include/private/base/SkTArray.h:552:15
    #4 0x60b702682d64 in STArray ./../../third_party/skia/include/private/base/SkTArray.h:780:11
    #5 0x60b702682d64 in SkPathRef::SkPathRef(SkSpan<SkPoint const>, SkSpan<unsigned char const>, SkSpan<float const>, unsigned int) ./../../third_party/skia/include/private/SkPathRef.h:63:11
    #6 0x60b702681f3e in MakeInternal ./../../third_party/skia/src/core/SkPath.cpp:3576:38
    #7 0x60b702681f3e in SkPath::Make(SkPoint const*, int, unsigned char const*, int, float const*, int, SkPathFillType, bool) ./../../third_party/skia/src/core/SkPath.cpp:3530:12
    #8 0x60b71815e3a2 in SkFontationsScalerContext::generateYScalePathForGlyphId(unsigned short, SkPath*, float, fontations_ffi::BridgeHintingInstance const&) ./../../third_party/skia/src/ports/SkTypeface_fontations.cpp:415:17

Line by line: each line is one frame, a single function call in the chain. #0 is the innermost, where the bad read actually happened: __asan_memcpy, the memory-copy routine that ASan has wrapped so it can check every byte. #1 is sk_careful_memcpy, Skia's own checked copy helper. #2 to #4 are the array machinery (copy, TArray<4>, STArray) that stores the points. #5 is the SkPathRef constructor, which builds a new path object. #6 and #7 are MakeInternal and SkPath::Make, which assemble a path from raw point data. #8 is generateYScalePathForGlyphId, which asks for a path for a particular glyph. The file paths and line numbers after in tell you where in the source each function lives.

This shows the copy is performed by SkPathRef's constructor from spans supplied by SkPath::Make, which was called by generateYScalePathForGlyphId. The source span is the freed buffer.

The allocator history is the key part. The region was freed by thread T4 through a Rust realloc that shrinks an allocation:

Text
0x7371850dae80 is located 0 bytes inside of 2400-byte region [0x7371850dae80,0x7371850db7e0)
freed by thread T4 (ThreadPoolForeg) here:
    #0 0x60b701950b0c in ___interceptor_realloc _asan_rtl_:3
    #1 0x60b72e558c59 in std::sys::alloc::unix::_$LT$impl$u20$core..alloc..global..GlobalAlloc$u20$for$u20$std..alloc..System$GT$::realloc::h11a5d5329483a32c ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/sys/alloc/unix.rs:54:22
    #2 0x60b72e558c59 in __rdl_realloc ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/alloc.rs:423:13
    #3 0x60b72e6521d6 in alloc::alloc::realloc::h8c51c1edd9c20eee ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:136:14
    #4 0x60b72e6521d6 in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::shrink::h3f698d6a856191d8 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:322:31
    #5 0x60b72e6521d6 in alloc::raw_vec::RawVecInner$LT$A$GT$::shrink_unchecked::hb40c2a131e341503 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:729:17

Line by line: the first line says the address sits at the very start of a 2400-byte region, and gives the region's start and end addresses. freed by thread T4 says which thread released it. ___interceptor_realloc is ASan's wrapper around realloc, the standard memory function that resizes a block. The Rust frames below it show the call came from Rust's standard allocator: GlobalAlloc is Rust's interface for allocating memory, __rdl_realloc is the Rust runtime's realloc entry point, and shrink and shrink_unchecked are the calls that make a block smaller. The reason this matters is that shrinking a block can move it to a new address, which leaves anyone still holding the old address pointing at memory that is no longer theirs.

It was originally allocated by T9 through a Rust realloc that grows an allocation:

Text
previously allocated by thread T9 (ThreadPoolForeg) here:
    #0 0x60b701950b0c in ___interceptor_realloc _asan_rtl_:3
    #1 0x60b72e558c59 in std::sys::alloc::unix::_$LT$impl$u20$core..alloc..global..GlobalAlloc$u20$for$u20$std..alloc..System$GT$::realloc::h11a5d5329483a32c ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/sys/alloc/unix.rs:54:22
    #2 0x60b72e558c59 in __rdl_realloc ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std/src/alloc.rs:423:13
    #3 0x60b72e65186e in alloc::alloc::realloc::h8c51c1edd9c20eee ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:136:14
    #4 0x60b72e65186e in alloc::alloc::Global::grow_impl::hd19f76f233ffb281 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:225:31
    #5 0x60b72e65186e in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::grow::hbd0cb9ec9a691fe8 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/alloc.rs:282:18
    #6 0x60b72e65186e in alloc::raw_vec::finish_grow::hcce11a4b3c274f51 ./../../third_party/rust-toolchain/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:775:13

Line by line: this is the same kind of trace, but for the moment the block was first created. previously allocated by thread T9 says the original allocation happened on the same thread that later crashed. The Rust frames show grow and grow_impl and finish_grow, the opposite of shrinking: making the block bigger. So the buffer was grown on T9, then shrunk on T4, and then read again on T9. The shrink on T4 is what invalidates the memory that T9 later copies from.

The report also records how the threads came to exist. T9 was created by T3, and T3 was created by the main process T0 during renderer startup, in content::RenderProcess::RenderProcess. T4 was created by T3 as well, from ThreadGroupImpl::WorkerDelegate::GetWork. In plain terms, the browser's main process started the renderer, the renderer started a pool of worker threads, and two of those workers ended up racing each other over the same buffer.

The task trace shows the raster work was started from the compositor's main frame:

Text
Task trace:
    #0 0x60b72823b0ed in cc::CategorizedWorkerPoolJob::Start(int) ./../../cc/raster/categorized_worker_pool.cc:162:7
    #1 0x60b71be537a1 in cc::ProxyMain::BeginMainFrame(std::__Cr::unique_ptr<cc::BeginMainFrameAndCommitState, std::__Cr::default_delete<cc::BeginMainFrameAndCommitState>>) ./../../cc/trees/proxy_main.cc:472:9
    #2 0x60b71be71391 in cc::ProxyImpl::ScheduledActionSendBeginMainFrame(viz::BeginFrameArgs const&) ./../../cc/trees/proxy_impl.cc:758:7

Line by line: the compositor is the part of Chrome that assembles the final picture from layers. cc stands for Chromium Compositor. CategorizedWorkerPoolJob::Start is where the raster job was kicked off. BeginMainFrame and ScheduledActionSendBeginMainFrame are the compositor's per-frame steps: each time the browser is about to draw a new frame, it schedules the work. This tells you the crash was reached through ordinary page rendering, not through some special debugging command.

The renderer command line in the report confirms the raster configuration:

Text
Command line: `/proc/self/exe --type=renderer --crashpad-handler-pid=11941 --enable-crash-reporter=, --change-stack-guard-on-fork=enable --no-sandbox --file-url-path-alias=/gen=/home/cr/dev/chrome/gen --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1737287303110314 --launch-time-ticks=8733558559 --shared-files=v8_context_snapshot_data:100 --metrics-shmem-handle=4,i,7919204909938279777,16899972713523075039,2097152 --field-trial-handle=3,i,15683146650311825763,14835717324490625682,262144 --variations-seed-version`

Line by line: this is the exact command the browser used to start the renderer process. /proc/self/exe is the running Chrome program. --type=renderer says this process is a renderer. --no-sandbox and --disable-gpu-compositing match the flags used to launch the browser. --num-raster-threads=4 says four raster worker threads were configured. The other flags are bookkeeping for crash reporting, language, shared memory and experiment configuration.

The renderer command line shows --num-raster-threads=4.

Finally, the report notes the mitigation status:

Text
MiraclePtr Status: NOT PROTECTED
No raw_ptr<T> access to this region was detected prior to this crash.
This crash is still exploitable with MiraclePtr.

Line by line: MiraclePtr is Chrome's pointer-quarantine mitigation against use after free. The idea is that when memory is freed, it is not handed back immediately; it is held in quarantine for a while, so a stale pointer that still points at it cannot reach anything dangerous. NOT PROTECTED means that protection did not apply here. No raw_ptr<T> access means the dangling reference was not held through a raw_ptr<T>, the special pointer type MiraclePtr watches. still exploitable with MiraclePtr means that even with the mitigation switched on, this crash would remain a real problem. The report says no raw_ptr<T> access to the region was detected before the crash.

Root cause

The report does not describe the logic flaw in prose, so the following is inferred from the frames. A buffer owned on the Rust side (a RawVec grown via finish_grow and later shrunk via shrink_unchecked) is used to back glyph path data. While one raster worker is still copying that data into a new SkPathRef inside generateYScalePathForGlyphId, another worker shrinks the same allocation. The shrink reallocates the buffer, so the span the first thread is copying from now points at freed memory, and sk_careful_memcpy reads it.

A useful comparison: imagine two people sharing a notebook. One is copying a page out of it, and while they are mid-copy the other tears that page out and replaces it with a smaller one. The first person keeps reading from where the page used to be. Nothing in the notebook tells them it has moved.

The existing defences did not catch it for two reasons visible in the report. First, the dangling reference is not a raw_ptr<T>, so MiraclePtr's quarantine does not cover it. Second, the lifetime is shared across two raster worker threads, so a single-threaded ownership assumption in the path generation code is not enough to keep the buffer alive for the duration of the copy.

Impact

The report describes a use after free in Skia. A use after free in the renderer is memory corruption territory: an attacker who can control the timing of the free and the subsequent read could, in principle, influence what the copied path data contains. The report itself does not demonstrate control over the freed contents or a full exploit chain, and the ASan trace shows only a read. The report does not demonstrate control over the freed contents or a full exploit chain, and the ASan trace shows only a read.

Fix

The fix would need to keep the backing buffer alive for the whole duration of the path copy, or avoid sharing a shrinkable Rust allocation across raster workers without synchronisation. Which of these was applied is not recorded here.

Variants to test

  1. Vary the font. Try other COLR fonts, including ones with many colour layers and large glyph outlines, and check whether the crash reproduces with a single raster thread. A positive result is the same heap-use-after-free in SkPathRef::SkPathRef reached from generateYScalePathForGlyphId.
  2. Vary raster concurrency. Run with different --num-raster-threads values and see whether the race window widens or closes. A positive result is a crash that only appears above a certain thread count.
  3. Vary the glyph size. Larger glyphs mean larger point spans and larger reallocations, which may make the shrink more likely to move the buffer. A positive result is a crash whose read size scales with the glyph complexity.
  4. Check other Fontations consumers. Any code path that calls generateYScalePathForGlyphId and then paints the resulting path is a candidate. A positive result is the same free-then-read pattern in a different caller.
  5. Check MiraclePtr coverage. For any similar crash, confirm whether the dangling reference is held through raw_ptr<T>. A positive result is a report that says NOT PROTECTED and still exploitable with MiraclePtr, as here.

Glossary

  • AddressSanitizer (ASan): a tool built into a special test build of a program that watches memory accesses and stops the program with a detailed report when it reads or writes memory it should not.
  • Allocator: the part of a program that hands out and takes back blocks of memory.
  • Bounty: a payment made by a company to someone who reports a security problem to it.
  • Bridge: glue code that lets one programming language call functions written in another.
  • Chrome VRP: Google's Chrome Vulnerability Reward Program, which pays researchers for reporting security bugs in Chrome.
  • COLR font: a font format where each glyph can be built from several coloured layers.
  • Compositor: the part of a browser that assembles the final picture on screen from separate layers.
  • CPU raster path: rendering done by the processor rather than the graphics card.
  • CVE: a public identifier assigned to a known security vulnerability.
  • Developer Build: a version of Chrome built for testing rather than for ordinary users.
  • Fontations: the Rust-based font stack Skia uses to read and interpret font data.
  • Glyph: one drawn character shape inside a font.
  • Heap: the pool of memory a program uses for data whose size is only known while it runs.
  • Heap use after free: using a block of heap memory after it has been freed.
  • HTTP: the protocol browsers use to fetch pages and files from a server.
  • localhost / [redacted]: the address a computer uses to talk to itself.
  • MiraclePtr: Chrome's pointer-quarantine mitigation against use after free, which holds freed memory back so stale pointers cannot reach anything dangerous.
  • Path: the outline of a shape, stored as points and drawing instructions.
  • Proof of concept (poc): a minimal file or set of steps that demonstrates a bug.
  • Rasterising: converting drawing instructions into a grid of pixels.
  • raw_ptr<T>: a special pointer type in Chrome that MiraclePtr watches.
  • realloc: the standard memory function that resizes an existing block, which may move it to a new address.
  • Renderer: the part of a browser that loads and draws a web page, usually in its own process.
  • Rust: a programming language designed to make certain memory mistakes harder to make.
  • Sandbox: a security boundary that restricts what a process is allowed to do.
  • Skia: Chrome's 2D graphics library, which turns drawing instructions into pixels.
  • skrifa: the Rust library that reads colour font data.
  • Span: a view of a contiguous chunk of memory, given as a starting point plus a length.
  • Stack: the list of function calls currently in progress, newest at the top.
  • Thread: one line of execution inside a program; a program can run several at once.
  • Thread pool: a set of worker threads a program keeps ready to run background tasks.
  • Use after free: a memory bug where a program uses memory after it has been freed.
  • Worker thread: a background thread that performs tasks such as rasterising.

More by Francisco Alonso

View all

2 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.