Phillip Lougher, who wrote SquashFS, has posted a large patch series for the read-only filesystem, and he says it was “inspired by the recent spate of AI generated code reports.” Four patches fix AI-reported issues directly. The rest he found by reading through and testing the code himself.
- Most fixes deal with variable and arithmetic overflow, signedness, and missing sanity checks on data read from disk, which “could be used as a potential exploit.”
- Three patches fix potential excessive memory use. Code written when SquashFS images were small could try to allocate well over 4 MiB, up to 64 MiB, on very large images.
- A follow-up series was needed just to cut down noise flagged by Google’s Sashiko AI reviewer.
My take
SquashFS sits under a lot of things: live ISOs, Snaps, AppImages and router firmware. Old parsing code trusting what’s on disk is exactly where AI fuzzing and review earn their keep, even if maintainers are tired of the noise. These fixes aren’t merged yet, so be careful mounting SquashFS images you didn’t build yourself until they land in your distro kernel.
God Bless, and Needs Garlic!