Linux Kernel Null Pointer Dereference Vulnerability in MIPS Firmware Environment Variable Handling

Vulnerability

A null pointer dereference vulnerability has been identified in the Linux kernel's MIPS architecture, specifically within the firmware environment variable handling. The issue arises in the 'fw_getenv' function, which expects a non-empty environment variable list. However, it is valid for firmware to provide an empty list. The vulnerability can be exploited by the firmware passing an empty environment variable list, leading to a null pointer dereference when the kernel attempts to process it.

Impact

Exploitation of this vulnerability leads to a null pointer dereference, causing a kernel crash.

Reproduction

The vulnerability can be reproduced by using a MIPS firmware that passes an empty environment variable list to the kernel. This can be done by configuring the firmware to omit environment variables or by using a custom firmware that intentionally leaves the environment variable list empty. Once the kernel is booted with this firmware, the 'fw_getenv' function will attempt to access the first entry of the environment variable list, resulting in a null pointer dereference and a crash.

Remediation

Users can upgrade to the patched version of the Linux kernel available in the Linux kernel stable tree. Instructions for downloading the latest stable kernel can be found on the official Linux kernel website.

Added: Dec 30, 2025, 2:34 PM
Updated: Dec 30, 2025, 2:34 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.6
threat
4.8
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.