Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 00:39:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206551] Integer overflow in iconv kernel module
Message-ID:  <bug-206551-8-i5XrX6ExyO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206551-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206551-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206551

--- Comment #1 from CTurt <ertl.chris@gmail.com> ---
Sorry, made a mistake in my report.

Supplying a size of `-1` actually passes `0xffffffffffffffff` to `malloc` a=
nd
`copyin`.

However, since `malloc` truncates sizes to 32bit (at least version 9.0 did),
this will result in an allocation of `0xffffffff`, but copy length of
`0xffffffffffffffff`.

If there is enough memory for this allocation to succeed, a heap overflow w=
ill
occur.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206551-8-i5XrX6ExyO>