[Webkit-unassigned] [Bug 190281] New: Validation in Connection::readBytesFromSocket() is too aggressive

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 4 10:06:03 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=190281

            Bug ID: 190281
           Summary: Validation in Connection::readBytesFromSocket() is too
                    aggressive
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: annulen at yandex.ru

Since r217206 Connection::readBytesFromSocket() validates size of control message. However, it compares cmsg_len with attachmentMaxAmount, while Connection::sendOutgoingMessage() computes it as CMSG_LEN(sizeof(int) * attachmentFDBufferLength) where attachmentFDBufferLength <= attachmentMaxAmount. This mismatch between sender and receiver leads to possibility of assertion failure with large number of attachments, e.g. here 62 attachments have cmsg_length == 264.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181004/bea35f87/attachment-0001.html>


More information about the webkit-unassigned mailing list