Page MenuHomeFreeBSD

oce: Tighten input validation for SIOCGI2C.
ClosedPublic

Authored by markj on Dec 17 2019, 9:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 13, 1:31 AM
Unknown Object (File)
Sat, Sep 12, 10:40 AM
Unknown Object (File)
Tue, Sep 8, 3:15 AM
Unknown Object (File)
Tue, Sep 8, 2:44 AM
Unknown Object (File)
Fri, Sep 4, 2:23 PM
Unknown Object (File)
Fri, Aug 28, 4:04 PM
Unknown Object (File)
Fri, Aug 28, 4:03 PM
Unknown Object (File)
Fri, Aug 28, 3:43 PM
Subscribers

Details

Summary

We need to ensure that we do not read past the end of
sfp_vpd_dump_buffer. Currently it is possible to read 8 bytes beyond
its end. Note that the offset and length are uint8_t's.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable