Loading advisory.
Loading advisory.
Electron: Use-after-free in offscreen shared texture release() callback
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…
Published 2026-04-03 21:52 UTC · Modified 2026-04-07 16:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| 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 | npm install electron@39.8.5npm install electron@40.8.5npm install electron@41.1.0npm install electron@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.
Ensure texture.release() is called promptly after the texture has been consumed, before the texture object becomes unreachable.
42.0.0-alpha.5
41.1.0
40.8.5
39.8.5
If there are any questions or comments about this advisory, send an email to security@electronjs.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.001 on 2026-11-24 to 0.002 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.001 | first score | v2026.06.15 |
| 2026-11-26 | 0.002 | 0.001 | v2026.06.15 |