(CVE-2019-9133) KMPlayer Subtitles Parser Integer Overflow Vulnerability
KMPlayer does not correctly validate the object size when parsing .sup subtitle files, which leads to an integer overflow and then an out-of-bounds memory read. An attacker could use a crafted subtitle file to trigger the out-of-bounds read in the player.
starlabs.sg
Published on starlabs.sg
K-Multimedia Player (KMPlayer) is a media player for Windows which can play a large number of formats including VCD, DVD, AVI, MKV, Ogg, OGM, 3GP, MPEG-1/2/4, AAC, WMA 7, 8, WMV, RealMedia, FLV and QuickTime. When processing .sup files, KMPlayer doesn’t check the Object size correctly, which leads to integer overflow…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the parser trusts the object size field in .sup files without validating it, so arithmetic on the size overflows and the resulting length is used for a memory read.
Impact
A crafted .sup subtitle file could cause an out-of-bounds memory read in KMPlayer, potentially crashing it or disclosing memory contents.
What the attacker needed
Victim opens a crafted .sup file; KMPlayer [redacted] on Windows
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 write-up has not been written yet. The Original tab links to the source.
A subtitle file can contain size values that tell the player how much data to expect. KMPlayer trusts those numbers without checking them, so a deliberately wrong number makes the player read memory it should not touch. This can crash the program or leak data, and it happens when the victim opens a malicious subtitle file.
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.