REDHAT-BUG-2581773: High severity WebKit WebKitGTK vulnerability
Summary: Out-of-bounds read in UIProcess via mismatched DMABufBufferAttributes vectors
Requirements to exploit: An attacker must already control a compromised WebProcess (Web Content sandbox) so they can send a crafted AcceleratedBackingStore::DidCreateDMABufBuffer IPC message. In a full remote chain this typically requires a separate WebProcess memory-corruption bug plus user interaction with malicious web content. No privileges beyond the Web Content process are required to trigger the UIProcess OOB read.
Component affected: wpewebkit / webkitgtk (GLib ports) Affected code: Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp (didCreateDMABufBuffer), Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.cpp (wpebufferdmabufnew), Source/WebKit/Shared/glib/DMABufBufferAttributes.serialization.in; GTK AcceleratedBackingStore uses the same DMABuf attributes path.
Version affected: WebKitGTK and WPE WebKit before 2.54.3 Version fixed: 2.54.3 Patch available: Yes Upstream fix: https://bugs.webkit.org/showbug.cgi?id=330367 / commit 7f5f4ad7fe55 Original report: https://bugs.webkit.org/showbug.cgi?id=329646 Embargo: No Acknowledgment: Mindaugas, UnfactorLabs
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.54.3
Event History
Frequently Asked Questions
Which deployments are affected?
WebKitGTK and WPE WebKit releases before 2.54.3 are affected. The issue is in the GLib ports' DMABuf attributes handling, including the GTK AcceleratedBackingStore path.
What does an attacker need to exploit this?
The attacker must already control a compromised WebProcess in the Web Content sandbox and send a crafted AcceleratedBackingStore::DidCreateDMABufBuffer IPC message. A remote attack chain would typically also require a separate WebProcess memory-corruption vulnerability and user interaction with malicious web content.
Does exploitation require elevated privileges?
No additional privileges beyond control of the Web Content process are required to trigger the out-of-bounds read in the UIProcess.
What remediation is available?
Upgrade WebKitGTK or WPE WebKit to version 2.54.3 or later. A patch is available upstream.