Linux Kernel Netfilter Randomness Vulnerability in Preemptible Code

Vulnerability

A vulnerability in the Linux kernel's netfilter component was introduced by using 'prandombh' for randomness in user context, particularly in the 'local_out' path. This approach could lead to issues by improperly managing per-CPU random state. The vulnerability arises from the use of 'smp_processor_id()' in preemptible code, which can disrupt the intended execution flow. The problem has been addressed by switching to the random driver, thereby eliminating the need for local prandomstate. This change aligns with a previous update that directed prandom to utilize the random driver for non-deterministic randomness.

Impact

Exploitation of this vulnerability could lead to improper randomness management, potentially allowing for predictability in random number generation, which could be exploited in various contexts, such as cryptography or session management.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
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.