Avast Free Antivirus Integer Overflow Local Privilege Escalation Vulnerability
The aswbidsdriver kernel driver in Avast Free Antivirus fails to properly validate user-supplied data, leading to an integer overflow before a buffer is allocated. A local attacker who can already run low-privileged code could exploit this to escalate privileges and execute code in the kernel.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Avast Free Antivirus. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the driver trusts a size value supplied by the caller and performs arithmetic on it without checking for overflow, so the computed allocation size is too small for the data later copied into it.
Impact
A local attacker with low-privileged code execution could escalate to kernel-level privileges and run arbitrary code, though the text gives no further detail on reliability or any mitigating factors.
What the attacker needed
Ability to run low-privileged code locally; Avast Free Antivirus installed
The fix
It was fixed by the vendor in version 25.3.9983.922.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Antivirus software installs a special component that runs deep inside the operating system, with the highest level of trust. This report says that component mishandles a number it receives from ordinary programs, so a program running with limited rights could trick it into running the attacker's code with full system rights. The attacker needs to already be running some code on the machine to start with.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.