Linux
RDMA/irdma: Prevent rereg_mr for non-mem regions
In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: Prevent rereg_mr for non-mem regions When a QP/CQ/SRQ is created, a two step process is used where the buffer is allocated in userspace and explicitly registered with the normal reg_mr mechanism prior to creating the actual QP/CQ/SRQ object. These special registrations are indicated via an ABI field so the driver knows that they do not have a valid mkey and to skip the actual CQP command submission. Since these are real MR objects from the core's perspective, it is possible for a user application to invoke rereg_mr on them and cause a real CQP op to be emitted with the zero-initialized mkey value of 0. Fix this by preventing rereg_mr on these special regions.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 715fdb3b30541cc8180b7cdc6aa9f8c307afdf25, < fb46d134e1b8690bed2da9005b36d32d2efd34ac
- >= 5ac388db27c443dadfbb0b8b23fa7ccf429d901a, < b5029e91c63406e4f4c8d58161048b41b6f0bd8c
- >= 5ac388db27c443dadfbb0b8b23fa7ccf429d901a, < ca1c29f05274b737dc964e28b97803750d7cf7ec
- >= 5ac388db27c443dadfbb0b8b23fa7ccf429d901a, < dbaa37e060918c45517786e37ecab0f300b48fa9
- >= 5ac388db27c443dadfbb0b8b23fa7ccf429d901a, < a846aecb931b4d65d5eafa92a0623545af46d4f2
- >= 6.6.120, < 6.6.148
Fixed in fb46d134e1b8690bed2da9005b36d32d2efd34ac, b5029e91c63406e4f4c8d58161048b41b6f0bd8c, ca1c29f05274b737dc964e28b97803750d7cf7ec, dbaa37e060918c45517786e37ecab0f300b48fa9, a846aecb931b4d65d5eafa92a0623545af46d4f2, 6.6.148
- 6.7
Fixed in 0, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to fb46d134e1b8690bed2da9005b36d32d2efd34ac or b5029e91c63406e4f4c8d58161048b41b6f0bd8c or ca1c29f05274b737dc964e28b97803750d7cf7ec or dbaa37e060918c45517786e37ecab0f300b48fa9 or a846aecb931b4d65d5eafa92a0623545af46d4f2 or 6.6.148 or later.
Upgrade Linux to 0 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.