vim before patch 8.0.0322 does not properly validate values for tree length when handling a spell file, which may result in an integer overflow at a memory allocation site and a resultant buffer overflow.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://security.gentoo.org/glsa/201706-26 | vendor advisory |
http://www.securityfocus.com/bid/96217 | vdb entry |
http://www.debian.org/security/2017/dsa-3786 | vendor advisory |
https://github.com/vim/vim/commit/399c297aa93afe2c0a39e2a1b3f972aebba44c9d | patch vendor advisory |
https://groups.google.com/forum/#%21topic/vim_dev/t-3RSdEnrHY | |
https://usn.ubuntu.com/4016-1/ | vendor advisory |
https://usn.ubuntu.com/4309-1/ | vendor advisory |