It is Vendors responsibility to choose a version of lwIP, patch and test it accordingly for their products. Matter SDK team does not assume responsibility for Vendors using lwip from third_party.
third_party