<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Powermonitor — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/powermonitor/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 03 Apr 2026 02:39:52 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/powermonitor/feed.xml" rel="self" type="application/rss+xml"/><item><title>Electron Use-After-Free Vulnerability in PowerMonitor Module</title><link>https://feed.craftedsignal.io/briefs/2024-01-29-electron-use-after-free/</link><pubDate>Fri, 03 Apr 2026 02:39:52 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-29-electron-use-after-free/</guid><description>A use-after-free vulnerability exists in the `powerMonitor` module of Electron applications on Windows and macOS. When the native `PowerMonitor` object is garbage-collected, dangling references are retained by OS-level resources. Subsequent session-change events on Windows or system shutdowns on macOS may dereference freed memory, potentially leading to a crash or memory corruption.</description><content:encoded><![CDATA[<p>A use-after-free vulnerability has been identified in the <code>powerMonitor</code> module of Electron versions prior to 38.8.6, between 39.0.0-alpha.1 and 39.8.1, between 40.0.0-alpha.1 and 40.8.0, and between 41.0.0-alpha.1 and 41.0.0-beta.8. This vulnerability occurs when the native <code>PowerMonitor</code> object is garbage-collected, but associated OS-level resources (message window on Windows, shutdown handler on macOS) retain dangling references. This issue can lead to a crash or memory corruption when a session-change event on Windows or system shutdown on macOS attempts to dereference the freed memory. All Electron applications that utilize the <code>powerMonitor</code> module and its events (e.g., <code>suspend</code>, <code>resume</code>, <code>lock-screen</code>) are potentially vulnerable. Defenders should prioritize patching Electron to the fixed versions to mitigate the risk.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An Electron application is built using a vulnerable version of Electron (e.g., 38.8.5).</li>
<li>The application utilizes the <code>powerMonitor</code> module to listen for system power events.</li>
<li>The application runs on a Windows or macOS system.</li>
<li>The native <code>PowerMonitor</code> object is garbage-collected by the JavaScript engine. The associated OS-level resources on Windows (message window) or macOS (shutdown handler) are not properly released.</li>
<li>A session-change event occurs on Windows (e.g., user lock/unlock) or a system shutdown is initiated on macOS.</li>
<li>The OS attempts to notify the previously freed <code>PowerMonitor</code> object about the session change or shutdown event.</li>
<li>The OS dereferences the dangling pointer, leading to a use-after-free condition.</li>
<li>The application crashes or experiences memory corruption, potentially leading to denial of service or other undefined behavior.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this use-after-free vulnerability can lead to application crashes and potential memory corruption. The impact affects any Electron application that uses the <code>powerMonitor</code> module, potentially disrupting application functionality and causing data loss. The vulnerability affects all platforms where Electron applications are deployed, specifically Windows and macOS. The severity is high due to the potential for application instability and the lack of application-side workarounds, requiring a patch to the Electron framework itself.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Electron to a patched version (41.0.0-beta.8, 40.8.0, 39.8.1, or 38.8.6) to resolve the use-after-free vulnerability in the <code>powerMonitor</code> module.</li>
<li>Monitor application crash logs for indicators of use-after-free conditions, especially following session-change events on Windows or system shutdowns on macOS.</li>
<li>Implement application monitoring to detect unexpected memory corruption events, which could be a sign of successful exploitation.</li>
<li>Contact <a href="mailto:security@electronjs.org">security@electronjs.org</a> for any questions or comments about the advisory.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>electron</category><category>use-after-free</category><category>vulnerability</category><category>powermonitor</category><category>windows</category><category>macos</category></item></channel></rss>