Kernel privilege escalation in Avast/AVG aswArPot.sys socket connection handler
CVE-2022-26522 is a local privilege escalation vulnerability in the Avast and AVG Windows Anti Rootkit driver aswArPot.sys before version 22.1. The flaw resides in the socket connection handler at aswArPot+0xc4a3 and is described as a double-fetch race condition involving PPEB->ProcessParameters->CommandLine.Length. The driver fetches a user-controlled length value more than once without ensuring it remains stable, allowing an attacker to race a kernel thread and modify the CommandLine.Length field between accesses. By triggering the vulnerable path via a socket connection, a local attacker can induce memory corruption in kernel context, leading to arbitrary code execution in kernel mode or a system crash.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can allow a non-administrative local attacker to escalate privileges to kernel/SYSTEM-equivalent execution. Because the bug is reachable in a security product kernel driver, exploitation can enable complete device takeover, including disabling security tools, overwriting system components, corrupting the operating system, and performing arbitrary actions without interference. Unsuccessful or partial exploitation can result in denial of service through memory corruption and OS crash.
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by preventing untrusted local code execution, restricting user ability to run arbitrary programs, and monitoring for abuse of Avast/AVG kernel drivers in privilege-escalation chains. Defend against bring-your-own-vulnerable-driver techniques with application control, driver block rules, and EDR detections for suspicious loading or use of vulnerable security drivers. These are compensating controls only; the primary mitigation is updating to 22.1 or later.
Patch, then assume compromise.
Upgrade Avast and AVG products to version 22.1 or later, which fixes CVE-2022-26522. Replace vulnerable copies of aswArPot.sys on affected systems by applying the vendor-provided product update. Ensure endpoints have received the updated driver version rather than relying solely on application-level version reporting.
No public exploits tracked yet. Mallory keeps watching.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.