• Travis Cross's avatar
    Prevent buffer overflow from untrusted RTP/SRTP lengths · 3bf2b9af
    由 Travis Cross 提交于
    When computing the start address of the RTP data to encrypt or SRTP
    data to decrypt (`enc_start`), we are using `hdr->cc` (the CSRC
    count), which is untrusted data from the packet, and the length field
    of an RTP header extension, which is also untrusted and unchecked data
    from the packet.
    
    This value then pollutes our calculation of how much data we'll be
    encrypting or decrypting (`enc_octet_len`), possibly causing us to
    underflow.
    
    We'll then call `cipher_encrypt()` or `cipher_decrypt()` with these
    two values, causing us to read from and write to arbitrary addresses
    in memory.
    
    (In the AEAD functions, we'd also pollute `aad_len`, which would cause
    us to read undefined memory in `cipher_set_aad`.)
    
    This commit adds checks to verify that the `enc_start` we calculate is
    sane based on the actual packet length.
    3bf2b9af
名称
最后提交
最后更新
..
apr 正在载入提交数据...
apr-util 正在载入提交数据...
broadvoice 正在载入提交数据...
esl 正在载入提交数据...
freetdm 正在载入提交数据...
iksemel 正在载入提交数据...
ilbc 正在载入提交数据...
js 正在载入提交数据...
libcodec2 正在载入提交数据...
libdingaling 正在载入提交数据...
libg722_1 正在载入提交数据...
libks 正在载入提交数据...
libnatpmp 正在载入提交数据...
libscgi 正在载入提交数据...
libsndfile 正在载入提交数据...
libteletone 正在载入提交数据...
libtpl-1.5 正在载入提交数据...
libzrtp 正在载入提交数据...
miniupnpc 正在载入提交数据...
portaudio 正在载入提交数据...
silk 正在载入提交数据...
sofia-sip 正在载入提交数据...
spandsp 正在载入提交数据...
srtp 正在载入提交数据...
tiff-4.0.2 正在载入提交数据...
unimrcp 正在载入提交数据...
win32 正在载入提交数据...
xmlrpc-c 正在载入提交数据...
.gitignore 正在载入提交数据...