]> git.ipfire.org Git - thirdparty/suricata.git/commit
nfs: fix arbitrary allocation 7511/head
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 8 Jun 2022 12:40:49 +0000 (14:40 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 9 Jun 2022 05:27:16 +0000 (07:27 +0200)
commitc585be338c0659918d32147043ec9c122b01cfbb
tree93e5d3ee3e6752c806c7236a8de0f258400e6889
parent7acdece7d08efb2480fbde8f6a2f7e51950d5497
nfs: fix arbitrary allocation

Bug introduced by https://github.com/OISF/suricata/pull/7111

Nom's count begins by allocating a Vector, which leads to arbitrary
allocation due to flavors_cnt coming from network, and not even
being checked against i.len()

Ticket: #5237
rust/src/nfs/nfs4_records.rs