CVE-2020-25725 Use after free in xpdf
A use-after-free vulnerability in Xpdf allows attackers to execute arbitrary code or cause a denial of service via a malicious PDF file.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-25725?
CVE-2020-25725 is a medium-severity use after free vulnerability in Fedoraproject Fedora, published on 21 Nov 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
In Xpdf 4.02, SplashOutputDev::endType3Char(GfxState *state) SplashOutputDev.cc:3079 is trying to use the freed `t3GlyphStack->cache`, which causes an `heap-use-after-free` problem. The codes of a previous fix for nested Type 3 characters wasn't correctly handling the case where a Type 3 char referred to another char in the same Type 3 font.
Weakness: CWE-416
Which versions are affected by CVE-2020-25725?
It affects 2 products.
Products include Fedoraproject Fedora, Xpdfreader Xpdf.
How do I fix CVE-2020-25725?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2020-25725 being exploited?
There is no known exploitation of CVE-2020-25725 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-r454-8j2h-fwqp, UBUNTU-CVE-2020-25725.