ppp
ppp copied to clipboard
pppdump/zlib.c: possible invalid array index
This was found by static analysis. I don't know whether it's possible to exploit it, but as the ZLIB compressed input data can be altered, I think there should be a sanity check:
The h is initialized to -1, i.e. no tables at https://github.com/ppp-project/ppp/blob/master/pppdump/zlib.c#L1326, but later at https://github.com/ppp-project/ppp/blob/master/pppdump/zlib.c#L1415 the x[h] is dereferenced which in case there are still no tables could be probably x[-1] i.e. invalid memory access.
ppp-2.5.0
@paulusmack: Have you seen this ticket?
I'm tempted just to remove pppdump, or at least remove the support for decoding compressed packets. It's not clear to me that anyone still uses compression at the PPP level.
I removed the support for decoding compressed packets.