VOOZH about

URL: https://www.phoronix.com/news/Linux-6.18-EROFS-Hardening

⇱ Linux 6.18 Hardened Against Specially-Crafted EROFS Images Leading To System Crashes - Phoronix


👁 Phoronix

Linux 6.18 Hardened Against Specially-Crafted EROFS Images Leading To System Crashes

Written by Michael Larabel in Linux Storage on 22 October 2025 at 12:30 PM EDT. 1 Comment
The EROFS read-only file-system continues enjoying nice uptick in use from embedded devices to containers. Merged today for Linux 6.18 is some new hardening to the EROFS driver where specially-crafted file-system images could lead to system crashes or infinite loops.

Robert Morris of MIT, who is well known for creating the first computer worm on the Internet, happened to be the one that came up with specially-crafted EROFS images that could put the driver into an infinite loop or a separate issue leading to system crashes.

RTM had reported two corrupted EROFS images that could lead to system crashes. These fuzed read-only file-system images cause issue with the recently introduced encoded extents functionality on Linux 6.15+. This patch fixes the two cases that could lead to system crashes.

RTM also reported infinite loops that could happen within the EROFS code from specially crafted images. This patch fixes those infinite loops.

👁 Linux kernel crash


The code was merged today for hardening against these fuzzed file-system images. For now they are on Linux 6.18 Git but will presumably be back-ported to Linux 6.17 too in the days to come.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.