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
2Patches
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- marc.infonvd
- secunia.com/advisories/17918nvd
- www.redhat.com/support/errata/RHSA-2005-366.htmlnvd
- www.securityfocus.com/archive/1/419522/100/0/threadednvd
- www.securityfocus.com/archive/1/427980/100/0/threadednvd
- www.securityfocus.com/bid/13267nvd
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9487nvd
News mentions
0No linked articles in our index yet.