unixODBC <=2.3.14 Rude Truncation via Narrowing Conversion Causes Out-of-Bounds memcpy
Posted by Daniel Owens via Fulldisclosure on Nov 04unixODBC versions <=2.3.14 contain a rude truncation of a 64-bit SQLLENbuffer_length to a 32-bit int without
verifying that it produces a valid, positive value. The result is later passed to memcpy, causing the information
system to crash or, if carefully chosen, enabling attackers to write adjacent memory under certain circumstances (e.g.,
a buffer length that wraps to a small positive integer or triggers an undersized allocation...
SQLLENbuffer_lengthto a 32-bitintwithout verifying that it produces a valid, positive value. The result is later passed tomemcpy, causing the information system to crash or, if carefully chosen, enabling attackers to write adjacent memory under certain circumstances (e.g., a buffer length that wraps to a small positive integer or triggers an undersized allocation...