RDMA/nldev: Fix locking when accessing mr->pd
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.1.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: RDMA/nldev: Fix locking when accessing mr->pd Sashiko points out that, due to rereg_mr, the PD is actually variable and all the touches in nldev are racy. Use mr->device instead of mr->pd->device. Getting the PD restrack ID is more tricky. To avoid disturbing all the happy paths, add an rdma_restrack_sync() operation which is sort of like flush_workqueue() or synchronize_irq(): after it returns, all the old nldev touches to the mr are gone and everything sees the new PD. This makes it safe to reach into the PD pointer.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From da5c8507821573b8ed6e3f47e009f273493ffaf7 · fixed in 845c6b355226195dad1f26b300c4830f57034e8b; From da5c8507821573b8ed6e3f47e009f273493ffaf7 · fixed in 7a0cbb5721a1da81e902d73b6049f85ca8f3fc0a; From da5c8507821573b8ed6e3f47e009f273493ffaf7 · fixed in 05e26f34597e9c38bb5b340d86b179b23673869f; From da5c8507821573b8ed6e3f47e009f273493ffaf7 · fixed in a07cba1296aaa81bf9b914486ca957aaff196247; From da5c8507821573b8ed6e3f47e009f273493ffaf7 · fixed in 1a132ee4e655288d9a0937ea5109a0d038431ae9; From da5c8507821573b8ed6e3f47e009f273493ffaf7 · fixed in 50d5c02ab8e62325548bd3a6e6b758a9dcd6e7c3
- Linux Linux
4.18
- KernelLinux
From 4.18.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.1.5