LuaJIT Denial-of-Service Vulnerability Due to Unsinking of IR_FSTORE for NULL Metatable

Vulnerability

A denial-of-service vulnerability has been identified in LuaJIT versions through 2.1. The issue arises from an unsinking of IR_FSTORE when a NULL metatable is encountered, leading to a segmentation fault. This vulnerability can be exploited by causing the LuaJIT garbage collector to traverse a table with a NULL metatable, which triggers the unsinking behavior and results in a crash.

Impact

Exploitation of this vulnerability causes a segmentation fault, leading to a crash of the LuaJIT process.

Reproduction

The vulnerability can be reproduced by creating a table with a NULL metatable and then triggering a garbage collection step. This can be done by using the AddressSanitizer tool, which will report the segmentation fault caused by the invalid memory access.

Remediation

Users can upgrade to the latest version of LuaJIT, where this vulnerability has been fixed.

Added: Jul 7, 2025, 5:35 PM
Updated: Jul 7, 2025, 5:35 PM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
2.5
exploitability
6.0
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.