VYPR
Unrated severityNVD Advisory· Published May 2, 2005· Updated Jun 16, 2026

CVE-2005-1041

CVE-2005-1041

Description

The fib_seq_start function in fib_hash.c in Linux kernel allows local users to cause a denial of service (system crash) via /proc/net/route.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2
  • Linux/Kernel2 versions
    cpe:2.3:o:linux:linux_kernel:2.6.20.1:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:o:linux:linux_kernel:2.6.20.1:*:*:*:*:*:*:*
    • (no CPE)

Patches

Vulnerability mechanics

Root cause

"Missing call to fib_get_first before fib_get_next in fib_seq_start allows use of stale pointers when reading /proc/net/route."

Attack vector

A local user triggers the bug by reading `/proc/net/route`. The `fib_seq_start` function, when invoked with a non-zero position, called `fib_get_next` without first obtaining a fresh starting alias via `fib_get_first`. This could cause the iterator to follow stale or invalid pointers, resulting in a kernel crash (denial of service). No authentication beyond local shell access is required.

Affected code

The vulnerability is in `fib_seq_start` in `net/ipv4/fib_hash.c`. The function directly called `fib_get_next` when `*pos` was non-zero, without first calling `fib_get_first` to obtain a valid starting pointer, leading to use of stale pointers.

What the fix does

The patch introduces a new helper `fib_get_idx` that first calls `fib_get_first` to obtain a valid starting `fib_alias`, then advances through `fib_get_next` the requested number of steps. `fib_seq_start` now calls `fib_get_idx(seq, *pos - 1)` instead of directly calling `fib_get_next`. This ensures the iterator always begins from a fresh, valid alias, preventing the use of stale pointers that caused the crash.

Preconditions

  • authLocal user must have access to read /proc/net/route
  • configThe kernel must have the IPv4 FIB hash table (ip_fib_main_table) initialized

Generated on Jun 16, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.