ANDROID: net: xfrm: check dir value of xfrm_userpolicy_id
authorSuren Baghdasaryan <surenb@google.com>
Tue, 15 Aug 2017 22:12:24 +0000 (15:12 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit33f17703cceb1258958fb2049fc0b18b6cc8dea6
tree97b55150687a90c305244282f7478c34815deb56
parent350c0df01370ac0de4a4bb30b5d4f33625114844
ANDROID: net: xfrm: check dir value of xfrm_userpolicy_id

Check user provided dir value to prevent out-of-bound access
which may occur if dir is not less than XFRM_POLICY_MAX.

(url: http://seclists.org/bugtraq/2017/Jul/30)

Bug: 64257838
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I5bbdf95e14a61bdf5207977d9a5a4465bc848da0
net/xfrm/xfrm_user.c