Linux Kernel MIPS Ftrace Memory Corruption Vulnerability

Vulnerability

A memory corruption vulnerability has been identified in the Linux kernel's MIPS architecture, specifically within the ftrace component. This issue arises when the kernel is located beyond 32 bits, leading to a buffer overflow. The problem was introduced in a previous commit that aimed to reduce the overhead of dynamic function tracing. The ftrace code incorrectly assumes that certain macros will generate no more than two instructions, which is not the case, causing corruption of variables in the __read_mostly section. This corruption was evident as it disrupted the __cpu_primary_thread_mask variable, leading to a system hang early in the boot process. The vulnerability has been addressed by modifying the instruction generation process to prevent exceeding the two-instruction limit, although this restricts the use of dynamic ftrace in some scenarios.

Impact

The vulnerability causes memory corruption that can disrupt kernel operations, specifically by corrupting variables essential for thread management, leading to system hangs during boot.

Remediation

Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability.

Added: Jan 14, 2026, 3:53 PM
Updated: Jan 14, 2026, 5:11 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
3.1
exploitability
3.1
remediation
7.7
relevance
2.1
threat
3.2
urgency
2.9
incentive
0.0

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