HomeFreeBSD

krpc/clnt_nl: filter RPC replies on vnet

Description

krpc/clnt_nl: filter RPC replies on vnet

RPC calls are filtered by the Netlink system itself, but the RPC replies
are not. With legitimate use the chance of a xid collision is zero, since
global clients use global atomically updated 32-bit counter for that.
However, a malicious jail may blindly inject replies guessing the xid,
where guessing is trivial. Protect against that checking the vnet, too.

Details

Provenance
glebiusAuthored on Sat, Feb 1, 7:27 PM
Parents
rG96104caaf00e: rpcsec_tls: do not create an RPC client per vnet
Branches
Unknown
Tags
Unknown