Android security tags, read closely by Lightrion

CVE-2026-58985 AI-generated analysis

platform/frameworks/native, libbinder RPC (RpcServer / RpcSession / Trusty RpcServerTrusty)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (7 corrections). Verify against the commit before relying on it.

Makes RpcServerTrusty create a ChannelContext for client-"incoming" (server-outgoing) RPC connections so TIPC disconnects on those channels are observed and handled, and makes RpcSession::addOutgoingConnection only register a connection after its init succeeds, with a graceful rejection on DEAD_OBJECT instead of a fatal abort.

Root cause

In libs/binder/trusty/RpcServerTrusty.cpp, handleConnectInternal only installed a ChannelContext via joinFn, which RpcServer::establishConnection invokes for server-incoming connections. For connections that the client flags as RPC_CONNECTION_OPTION_INCOMING (outgoing from the server's side), establishConnection called session->addOutgoingConnection(..., true) and returned without any callback, so *ctx_p stayed null. handleDisconnectInternal and handleChannelCleanup ignored a null ctx (the removed comment documents this). The RpcConnection pushed into mConnections.mOutgoing therefore had no disconnect handling after the peer closed the channel. The new test IncomingConnectionDos repeatedly opens and drops such connections using a valid session ID, and its comment says this is done "to trigger the leak". Additionally, addOutgoingConnection pushed the connection into mOutgoing before sendConnectionInit ran, and establishConnection treated any non-OK result as LOG_ALWAYS_FATAL.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings