Skip to content
Info disclosure Advisory Intermediate CVE-2018-1655

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.

Tim Brown Follow

Originally disclosed on Cisco Talos

Medium 4.0 View original

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.

Tim Brown, on Cisco Talos

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

  1. List network sockets to find a valid socket address.
  2. Note the address shown for a listening service.
  3. Run rmsock with that valid address to confirm it is accepted.
  4. Run rmsock with an address that is not a socket.
  5. 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.

More by Tim Brown

View all

5 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.