One common design is, there are waste tanks for all lavatories
This wasn't always the case. In the 1960s there were a series of mysterious, isolated, random cholera outbreaks in a swathe across western Europe. Eventually investigators worked out that they were all under the flight-path of long haul aircraft from the sub-continent....