Linux
RDMA/srpt: Fix srpt_alloc_rw_ctxs() unwind counters
In the Linux kernel, the following vulnerability has been resolved: RDMA/srpt: Fix srpt_alloc_rw_ctxs() unwind counters When srpt_alloc_rw_ctxs() fails partway through a multi-buffer indirect descriptor, the unwind path destroys RDMA contexts but leaves stale n_rw_ctx and n_rdma values (and a dangling rw_ctxs pointer). Later sq_wr_avail accounting in srpt_queue_response() or srpt_write_pending() can then subtract the wrong number of send queue credits. Reset the counters and clear rw_ctxs after freeing the heap allocation before returning an error.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < af00051dbc9f467d4840ec709680660a3f8990fa
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < 717ab4d0614e9446bf8e2de6229464499e4008d6
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < f1f2252da52cdda912da9993f39f58783b01b38f
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < f65f45dfa1e6e2eaa9e11c8b8ce8857799cb189d
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < be1478849e1abb1e12dc12e14cdbf800cc6fa99a
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < af073bd245180393bcb15d33d3990a6bdc32593a
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < bd02d644bd19a2795c018635d273d91e45d2bb95
- >= b99f8e4d7bcd3bfbb3cd965918523299370d0cb2, < b38f98e176050850f41bb6415f3a71400056623e
Fixed in af00051dbc9f467d4840ec709680660a3f8990fa, 717ab4d0614e9446bf8e2de6229464499e4008d6, f1f2252da52cdda912da9993f39f58783b01b38f, f65f45dfa1e6e2eaa9e11c8b8ce8857799cb189d, be1478849e1abb1e12dc12e14cdbf800cc6fa99a, af073bd245180393bcb15d33d3990a6bdc32593a, bd02d644bd19a2795c018635d273d91e45d2bb95, b38f98e176050850f41bb6415f3a71400056623e
- 4.7
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to af00051dbc9f467d4840ec709680660a3f8990fa or 717ab4d0614e9446bf8e2de6229464499e4008d6 or f1f2252da52cdda912da9993f39f58783b01b38f or f65f45dfa1e6e2eaa9e11c8b8ce8857799cb189d or be1478849e1abb1e12dc12e14cdbf800cc6fa99a or af073bd245180393bcb15d33d3990a6bdc32593a or bd02d644bd19a2795c018635d273d91e45d2bb95 or b38f98e176050850f41bb6415f3a71400056623e or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 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.