IBM AIX rmsock SetUID Binary Information Leak
The rmsock setUID binary on IBM AIX can be tricked into leaking uninitialised kernel memory by supplying an invalid socket address. An unprivileged local attacker could read 64 bits of kernel memory per invocation.
An exploitable kernel memory leak vulnerability is exposed by the rmsock setUID functionality of IBM AIX 6.1 and IBM AIX 7.1. A specially crafted command line can cause a kernel memory leak, resulting in uninitialized kernel memory being exposed.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the kernel's socket-closing routine does not validate that the user-supplied address refers to a real socket before copying data from that address back to userland.
Impact
An unprivileged local user could disclose 64 bits of kernel memory per attempt, potentially revealing sensitive kernel data.
What the attacker needed
Local access to an affected AIX system; ability to run the rmsock setUID binary
How it was found
- List network sockets to find a valid socket address.
- Note the address shown for a listening service.
- Run rmsock with that valid address to confirm it is accepted.
- Run rmsock with an address that is not a socket.
- Observe the error message containing kernel memory.
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 report has not been written yet. The Original tab links to the source.
A setUID program runs with the privileges of its owner, often root, so it can do things normal users cannot. Here, a command meant to close network sockets could be given a made-up address, and the operating system then copied back a small piece of its private memory to the user. That memory might contain sensitive data the user should never see.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.