summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/CMakeLists.txt
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2020-09-06 02:38:35 +0500
committerVladislav Grishenko <themiron@mail.ru>2020-09-06 02:38:35 +0500
commit2324bcd5ba12cf28f47357a8f03cd41b7c04c52b (patch)
tree27edebeda3209ef2435f2840a975f515085d2b6e /accel-pppd/ppp/CMakeLists.txt
parent38b6104538522caf140796982e79db334aecaa08 (diff)
downloadaccel-ppp-xebd-2324bcd5ba12cf28f47357a8f03cd41b7c04c52b.tar.gz
accel-ppp-xebd-2324bcd5ba12cf28f47357a8f03cd41b7c04c52b.zip
l2tp: fix RCE through buffer overflow & fix LE/BE compatibility
Unsufficent checks of valid l2tp header & avp length cause possible RCE through buffer overflow, reported by https://github.com/WinMin swings & leommxj, Chaitin Security Research Lab. Add missed header length and avp length validation to fix the issue. Order of struct bitfields is implementation-defined so current code doesn't play well with big-endian arch. switch to explicit flag bit checking/gathering to fix the issue. RFC 2661 and 3931 requires that length, seqeuence flags must be set and offset flag must not be set, so avp-premissive can't help in this cases.
Diffstat (limited to 'accel-pppd/ppp/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions