An integer overflow at a u_read_undo memory allocation site would occur for vim before patch 8.0.0377, if it does not properly validate values for tree length when reading a corrupted undo file, which may lead to resultant buffer overflows.
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.securitytracker.com/id/1037949 | vdb entry |
https://github.com/vim/vim/commit/3eb1637b1bba19519885dd6d377bd5596e91d22c | third party advisory patch |
http://www.securityfocus.com/bid/96451 | vdb entry |
https://groups.google.com/forum/#%21topic/vim_dev/LAgsTcdSfNA | |
https://groups.google.com/forum/#%21topic/vim_dev/QPZc0CY9j3Y | |
https://usn.ubuntu.com/4309-1/ | vendor advisory |