New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 849437 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 847809
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug-Security



Sign in to add a comment

Security: Optional Int not Checked in webrtc::VideoQualityObserver::OnDecodedFrame(

Project Member Reported by natashenka@google.com, Jun 4 2018

Issue description

In the following code in webrtc::VideoQualityObserver::OnDecodedFrame:

rtc::Optional<int> avg_interframe_delay =                      
          interframe_delays_.Avg(kMinFrameSamplesToDetectFreeze);    
        // Check if it was a freeze.                                   
        if (num_frames_decoded_ > kMinFrameSamplesToDetectFreeze &&    
             interframe_delay_ms >=                                     
                 std::max(3 * *avg_interframe_delay,                    
                          *avg_interframe_delay + kMinIncreaseForFreezeMs));      


The optional avg_interframe_delay can be undefined, but is still accessed in the call to std::max. This leads to an out-of-bounds stack read, and an assert in a debug build.

To reproduce:

1) Apply new.patch to a webrtc tree and build video_replay
2) Call video_replay --input_file ./oob with the attached files in the same directory

I think this issue probably does not have a security impact, but I am filing it as a security issue just in case.
 
new.patch
22.4 KB Download
oob_rtpdump
2.1 MB View Download
oob_config
1.9 KB View Download
Cc: deadbeef@chromium.org
Mergedinto: 847809
Status: Duplicate (was: Unconfirmed)
This seems to be a dupe of 847809, fixed by https://webrtc-review.googlesource.com/c/src/+/80040
Project Member

Comment 2 by sheriffbot@chromium.org, Sep 11

Labels: -Restrict-View-SecurityTeam allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment