<<< Date Index >>>     <<< Thread Index >>>

Re: Linux Kernel i2c Integer Overflow Vulnerability



On Thu, Jun 17, 2004 at 12:51:01PM +0100, Shaun Colley wrote:
> There is a potential integer overflow which can occur
> during the allocation of memory, during parsing of the
> I2C_RDWR option in the i2cdev_ioctl() routine.  Below
> is the vulnerable code:

<snip>

Yes, this was a bug, 11 months ago, all distros have had this fixed in
their latest kernels for a long time now.  There was previous
discussions about this on the linux-kernel mailing list, so you weren't
the first to find it by a long shot.

Also, distros ship their /dev/i2c* nodes as accessable only as root, so
again, this isn't really a problem.

thanks,

greg k-h