CVE-2026-129804: FoE Filename Matching Bypass via Length Truncation
FOEread and FOEwrite store the filename length as uint8t, truncating it modulo 256. When (mbxheader.length - ESCFOEHSIZE) is a multiple of 256, the length becomes 0. Additionally, a request whose mailbox length equals ESCFOEHSIZE exactly also produces a length of 0 without any truncation. In both cases FOEfopen calls strncmp with a length of 0, which always returns equal, so the first registered file whose password is 0 is opened regardless of the filename the master sent.