net: rds: fix MR cleanup on copy error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0d4597c8c5abdeeaf50774066c16683f30184dc8 · < 033370ffb3c9c0264d19f8ba9ef769523266589a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: rds: fix MR cleanup on copy error
__rds_rdma_map() hands sg/pages ownership to the transport after get_mr() succeeds. If copying the generated cookie back to user space fails after that point, the error path must not free those resources again before dropping the MR reference.
Remove the duplicate unpin/free from the put_user() failure branch so that MR teardown is handled only through the existing final cleanup path.
From the CVE record · Linux
The Linux kernel’s RDS RDMA mapping path can free pages and scatter-gather resources twice if copying a generated cookie to user space fails after the transport takes ownership. A local caller can trigger this error path; the input does not specify authentication requirements or further impact.
Engineers running Linux kernels with RDS support should check their kernel versions; affected versions are not specified.