Adobe Acrobat Reader Thermometer use-after-free vulnerability
A use-after-free vulnerability exists in the Thermometer JavaScript object of Adobe Acrobat Reader. An attacker could exploit this by crafting a malicious PDF file, leading to memory corruption and potentially arbitrary code execution.
Originally disclosed on Cisco Talos
A use-after-free vulnerability exists in the Thermometer Javascript object in Adobe Acrobat Reader 2023.001.20174. Specially crafted javascript code can exploit a use-after-free vulnerability, which can lead to memory corruption and arbitrary code execution.
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
The Thermometer object's end() method frees a heap block but does not clear the pointer to it, and later code copies and dereferences that dangling pointer.
Impact
This could lead to memory corruption and potentially arbitrary code execution, though the text does not confirm a working exploit beyond a crash.
What the attacker needed
Victim opens a malicious PDF
The fix
The vulnerability was fixed in a vendor patch release.
How it was found
- Open a specially crafted PDF document in Adobe Acrobat Reader.
- Trigger a blur event on a field, causing the onBlur handler to change pageNum and call app.thermometer.end().
- After rendering becomes idle, another JavaScript function calls Thermometer.begin() and Thermometer.end(), copying the dangling pointer.
- After all JavaScript executes, Acrobat copies internal pointers, including the dangling one, to another location.
- Acrobat dereferences the freed pointer, causing a crash.
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.
A use-after-free bug happens when a program frees some memory but then keeps using it, like deleting a file but leaving a shortcut to it. In this case, Adobe Reader's Thermometer object frees a small block of memory but still holds a pointer to it, and later tries to use that pointer. An attacker can trick a user into opening a malicious PDF that triggers this, potentially allowing the attacker to run their own code on the victim's computer.
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.