KCodes NetUSB unauthenticated remote kernel information disclosure vulnerability
An unauthenticated remote attacker can send a crafted packet to the NetUSB.ko kernel module, which returns several memory addresses. One of these addresses can be used to calculate the module's base address, aiding further exploitation.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the KCodes NetUSB.ko kernel module that enables the ReadySHARE Printer functionality of at least two NETGEAR Nighthawk Routers and potentially several other vendors/products. An unauthenticated, remote attacker can craft and send a packet containing an…
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 module returns internal memory addresses in response to a specific opcode without proper access control or address randomisation.
Impact
An unauthenticated remote attacker could obtain memory addresses that help bypass address randomisation, but the vulnerability only discloses information and does not directly allow code execution.
What the attacker needed
Network access to the router; router with NetUSB.ko module
The fix
The vendor provided a new module to NETGEAR, but the text does not state that the vulnerability was fixed.
How it was found
- Send a handshake with the initial bytes and random data.
- Receive the encrypted response and server random data.
- Send back the encrypted server data, computer name length, computer name, and sync command.
- Receive confirmation that the connection is established.
- Send the opcode 0x0c with an index of zero and at least 16 bytes of data.
- Receive a response containing several addresses, one of which reveals the module's base address.
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.
This report describes a flaw in a router's USB-sharing software. A remote attacker can send a special message to the router and get back memory addresses, which are like map coordinates inside the router's memory. Those addresses help an attacker plan further attacks, but this bug alone does not let them take control.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.