netfilter: nf_conntrack_sip: extend request line validation
authorUlrich Weber <ulrich.weber@riverbed.com>
Mon, 24 Oct 2016 16:07:23 +0000 (18:07 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Oct 2016 16:27:59 +0000 (18:27 +0200)
commit444f901742d054a4cd5ff045871eac5131646cfb
treed16b93e0330db7ec6469927a2cfe76a24046aa28
parentdab45060a56a9732b027d2031c1b6100bc75eea2
netfilter: nf_conntrack_sip: extend request line validation

on SIP requests, so a fragmented TCP SIP packet from an allow header starting with
 INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE
 Content-Length: 0

will not bet interpreted as an INVITE request. Also Request-URI must start with an alphabetic character.

Confirm with RFC 3261
 Request-Line   =  Method SP Request-URI SP SIP-Version CRLF

Fixes: 30f33e6dee80 ("[NETFILTER]: nf_conntrack_sip: support method specific request/response handling")
Signed-off-by: Ulrich Weber <ulrich.weber@riverbed.com>
Acked-by: Marco Angaroni <marcoangaroni@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_sip.c