Severe (kernel) memory leak in rpcrdma, both in CentOS and Mellanox drivers

While searching why files <= 700 bytes would be corrupted in our HPC environment, I discovered that they are not only “corrupted”, but contain parts of the memory.
In short, a user can create a very simple loop in a shell script and harvest whatever random data in memory.
The issue seems to be related to the rpcrdma module. Servers running with xprtrdma have not such security issue.
I can reproduce this bug in every server running CentOS >= 7.7.

Linux 3.10.0-1160.53.1.el7.x86_64 x86_64
CentOS Linux release 7.9.2009 (Core)
ConnectX-3 card

Pretty astonishing that nobody seems to care about a security issue where any user can read random parts of the memory.

Here’s fix NFS/RDMA on CentOS 7, small files corruption - Unix & Linux Stack Exchange
You’re welcome.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.