Linux
net: rds: fix MR cleanup on copy error
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < 91a44b406bc1f9e1c5da0cb7d0d5991b43b79147
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < 106dc689206610cfa2098f593fdd1e020c997835
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < ec55a86f7fba7d9111df94b9c11a4755ed492995
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < 8fdbb6262a4a3ed44a0830a7793903b54bb27bdc
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < d95cea9298be1ba8876e3f156be96d3a492085ca
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < 033370ffb3c9c0264d19f8ba9ef769523266589a
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < b3cb8cae530b2727d8245684148bb49425f6765c
- >= 0d4597c8c5abdeeaf50774066c16683f30184dc8, < 8141a2dc70080eda1aedc0389ed2db2b292af5bd
Fixed in 91a44b406bc1f9e1c5da0cb7d0d5991b43b79147, 106dc689206610cfa2098f593fdd1e020c997835, ec55a86f7fba7d9111df94b9c11a4755ed492995, 8fdbb6262a4a3ed44a0830a7793903b54bb27bdc, d95cea9298be1ba8876e3f156be96d3a492085ca, 033370ffb3c9c0264d19f8ba9ef769523266589a, b3cb8cae530b2727d8245684148bb49425f6765c, 8141a2dc70080eda1aedc0389ed2db2b292af5bd
- 5.6
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.86, 6.18.27, 7.0.4, 7.1
Mitigation
Upgrade Linux to 91a44b406bc1f9e1c5da0cb7d0d5991b43b79147 or 106dc689206610cfa2098f593fdd1e020c997835 or ec55a86f7fba7d9111df94b9c11a4755ed492995 or 8fdbb6262a4a3ed44a0830a7793903b54bb27bdc or d95cea9298be1ba8876e3f156be96d3a492085ca or 033370ffb3c9c0264d19f8ba9ef769523266589a or b3cb8cae530b2727d8245684148bb49425f6765c or 8141a2dc70080eda1aedc0389ed2db2b292af5bd or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.140 or 6.12.86 or 6.18.27 or 7.0.4 or 7.1 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.