]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: sched: ife: check on metadata length
authorAlexander Aring <aring@mojatatu.com>
Fri, 20 Apr 2018 19:15:05 +0000 (15:15 -0400)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commit1310f4ef3ddb4a3d2638f416e025606dca27884e
treef0c977f43e4f22c7e1fac67c073b17df20f64327
parentda1fd17a4d7ecfea39c4b7ebe85a5eab2a11c7c9
net: sched: ife: check on metadata length

BugLink: http://bugs.launchpad.net/bugs/1775483
[ Upstream commit d57493d6d1be26c8ac8516a4463bfe24956978eb ]

This patch checks if sk buffer is available to dererence ife header. If
not then NULL will returned to signal an malformed ife packet. This
avoids to crashing the kernel from outside.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
Reviewed-by: Yotam Gigi <yotam.gi@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/ife/ife.c