Remote root exploit in current linux kernel.
A flaw in the Linux kernel's BPF socket filter allowed reading uninitialised kernel stack memory. An attacker with local access could leak kernel stack bytes, which may contain sensitive data.
seclists.org
Published on seclists.org
On Tue, Nov 9, 2010 at 5:18 PM, Dan Rosenberg <dan.j.rosenberg () gmail com> wrote:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the BPF filter's return value was derived from uninitialised stack memory rather than a properly initialised buffer.
What the attacker needed
Local access to the system; ability to create and bind UDP sockets; ability to attach a BPF socket filter
How it was found
- Create two UDP sockets and bind one to a local port.
- Attach a BPF socket filter that loads a word from the filter's stack, masks and shifts it, adds 256, and returns it.
- Send a UDP packet to the bound socket and receive the filter's return value.
- Subtract 248 from the returned value to obtain the leaked byte.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The Linux kernel is the core of the operating system. A socket filter is a small program attached to a network socket that decides which packets to accept. This report shows that such a filter could be tricked into returning bytes from a part of memory that was never properly cleared, so a local user could read leftover data from the kernel.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.