Linux
dlm: fix add msg handle in send_queue ordered
In the Linux kernel, the following vulnerability has been resolved: dlm: fix add msg handle in send_queue ordered In a benchmark scenario triggering a lot of requests that triggers a lot of DLM messages on the network it can be that the mh->seq is not ordered according the oldest seq number. This ordering is required by dlm_receive_ack as "before(mh->seq, seq)" will stop to check for older sequence numbers that are ordered in the tail of "node->send_queue". The side effects of not having it correct ordered regarding "before(mh->seq, seq)" are refcounting issues and use-after free. I only was able to reproduce this issue in a experimental DLM branch and a user space DLM benchmark that uses io_uring. After changing this I don't experienced any refcounting with the sending buffer issues anymore.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 489d8e559c6596eb08e16447d9830bc39afbe54e, < 482606fea302d8bab86901d7426c3716980d99a8
- >= 489d8e559c6596eb08e16447d9830bc39afbe54e, < ae9e534e502a0f48c12baf83608c5de0ff0eab11
- >= 489d8e559c6596eb08e16447d9830bc39afbe54e, < 6369619f1b665f12d8c99cc6ff733c64eb08b22e
- >= 489d8e559c6596eb08e16447d9830bc39afbe54e, < 712714f818d83373847874ab0f8e426be79296cf
- >= 489d8e559c6596eb08e16447d9830bc39afbe54e, < 4d45250b1d22960f86d83245be188b16e456218b
- >= 489d8e559c6596eb08e16447d9830bc39afbe54e, < d2248cb70c070f8f04762872772e155b59016f17
Fixed in 482606fea302d8bab86901d7426c3716980d99a8, ae9e534e502a0f48c12baf83608c5de0ff0eab11, 6369619f1b665f12d8c99cc6ff733c64eb08b22e, 712714f818d83373847874ab0f8e426be79296cf, 4d45250b1d22960f86d83245be188b16e456218b, d2248cb70c070f8f04762872772e155b59016f17
- 5.14
Fixed in 0, 6.1.191, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 482606fea302d8bab86901d7426c3716980d99a8 or ae9e534e502a0f48c12baf83608c5de0ff0eab11 or 6369619f1b665f12d8c99cc6ff733c64eb08b22e or 712714f818d83373847874ab0f8e426be79296cf or 4d45250b1d22960f86d83245be188b16e456218b or d2248cb70c070f8f04762872772e155b59016f17 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 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.