stdlib/canonicalize.c in the GNU C Library (aka glibc or libc6) 2.27 and earlier, when processing very long pathname arguments to the realpath function, could encounter an integer overflow on 32-bit architectures, leading to a stack-based buffer overflow and, potentially, arbitrary code execution.
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://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=5460617d1567657621107d895ee2dd83bc1f88f2 | |
http://www.securityfocus.com/bid/104255 | third party advisory vdb entry |
https://sourceware.org/bugzilla/show_bug.cgi?id=22786 | third party advisory issue tracking |
https://access.redhat.com/errata/RHSA-2018:3092 | patch vendor advisory third party advisory |
https://security.netapp.com/advisory/ntap-20190329-0001/ | broken link |
https://security.netapp.com/advisory/ntap-20190401-0001/ | third party advisory |
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html | third party advisory patch |
https://access.redhat.com/errata/RHBA-2019:0327 | third party advisory vendor advisory |
https://usn.ubuntu.com/4416-1/ | vendor advisory |