Skip to content

CVE-2026-34764 Electron has a use-after-free in offscreen shared texture release() callback

MediumCVSS 5.5 EPSS 0.10%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Red Hat

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From 33.0.0-alpha.1 to before 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5, apps that use offscreen rendering with GPU shared textures may be vulnerable to a use-after-free. Under certain conditions, the release() callback provided on a paint event texture can outlive its backing native state, and invoking it after that point dereferences freed memory in the main process, which may lead to a crash or memory corruption. Apps are only affected if they use offscreen rendering with webPreferences.offscreen: { useSharedTexture: true }. Apps that do not enable shared-texture offscreen rendering are not affected. To mitigate this issue, ensure texture.release() is called promptly after the texture has been consumed, before the texture object becomes unreachable. This vulnerability is fixed in 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5.

Upgrade path

6 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat/podman-desktop-macos-1-0(Red Hat podman_desktop 1) All versions No fix listed No fix yet
redhat/podman-desktop-windows-1-0(Red Hat podman_desktop 1) All versions No fix listed No fix yet
redhat/rhdesktop/rh-podman-desktop-ext-openshift-local-rhel10(Red Hat podman_desktop 0) All versions No fix listed No fix yet
electronjs electron = 42.0.0-alpha1; = 42.0.0-alpha2; = 42.0.0-alpha3; = 42.0.0-alpha4 +3 more 39.8.5, 40.8.5, 41.1.0 Fixed
npm electron(npm) >= 33.0.0-alpha.1, < 39.8.5; >= 40.0.0-alpha.1, < 40.8.5; >= 41.0.0-alpha.1, < 41.1.0; >= 42.0.0-alpha.1, < 42.0.0-alpha.5 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5 Fixed
electron = >= 33.0.0-alpha.1, < 39.8.5; = >= 40.0.0-alpha.1, < 40.8.5; = >= 41.0.0-alpha.1, < 41.1.0; = >= 42.0.0-alpha.1, < 42.0.0-alpha.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
electron = >= 33.0.0-alpha.1, < 39.8.5 No fix listed
electron = >= 40.0.0-alpha.1, < 40.8.5 No fix listed
electron = >= 41.0.0-alpha.1, < 41.1.0 No fix listed
electron = >= 42.0.0-alpha.1, < 42.0.0-alpha.5 No fix listed
npm electron(npm) >= 33.0.0-alpha.1, < 39.8.5 39.8.5
npm electron(npm) >= 40.0.0-alpha.1, < 40.8.5 40.8.5
npm electron(npm) >= 41.0.0-alpha.1, < 41.1.0 41.1.0
npm electron(npm) >= 42.0.0-alpha.1, < 42.0.0-alpha.5 42.0.0-alpha.5
redhat/podman-desktop-macos-1-0(Red Hat:podman_desktop:1) All versions No fix listed
redhat/podman-desktop-windows-1-0(Red Hat:podman_desktop:1) All versions No fix listed
redhat/rhdesktop/rh-podman-desktop-ext-openshift-local-rhel10(Red Hat:podman_desktop:0) All versions No fix listed
electronjs electron >= 33.0.0, < 39.8.5 39.8.5
electronjs electron >= 40.0.0, < 40.8.5 40.8.5
electronjs electron >= 41.0.0, < 41.1.0 41.1.0
electronjs electron = 42.0.0-alpha1 No fix listed
electronjs electron = 42.0.0-alpha2 No fix listed
electronjs electron = 42.0.0-alpha3 No fix listed
electronjs electron = 42.0.0-alpha4 No fix listed

References