[Bug other/54411] New: libiberty: objalloc_alloc integer overflows (CVE-2012-3509)
fw at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 29 17:11:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54411
Bug #: 54411
Summary: libiberty: objalloc_alloc integer overflows
(CVE-2012-3509)
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: fw@gcc.gnu.org
ReportedBy: fw@gcc.gnu.org
Sang Kil Cha discovered that _objalloc_alloc does not guard the addition of
CHUNK_HEADER_SIZE to the length against overflow. This can cause
_objalloc_alloc to return a pointer to a memory region which is smaller than
expected.
The pointer alignment arithmetic in the objalloc_alloc macro misses an overflow
check as well, with similar consequences.
More information about the Gcc-bugs
mailing list