PyTorch torch.jit.jit_module_from_flatbuffer segmentation fault
A segmentation fault was reported in PyTorch's torch.jit.jit_module_from_flatbuffer function when loading and executing a JIT-scripted model in version 2.6.0. PyTorch closed the issue as not planned, citing deprecation of TorchScript in favor of torch.export.
What happened
A segmentation fault occurred when loading a JIT module from a flatbuffer file using torch.jit.jit_module_from_flatbuffer in PyTorch version 2.6.0.
The issue was triggered when a scripted model containing a Sequential module with Linear, BatchNorm2d, and ReLU layers was saved to flatbuffer format and then loaded and executed with sample input.
Index analysis
The segmentation fault represents a memory corruption vulnerability that could lead to denial of service or potential code execution.
PyTorch closed the issue as not planned on August 7, 2026, noting that TorchScript has been deprecated in favor of torch.export as of version 2.11.
Classification
Sources and evidence
This record was researched and written by the Index, based on the following original reporting.