rapidio/tsi721: prevent a bad dereference in tsi721_db_dpc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 48618fb4e522d9d02e217ac05f52749545c1af20 · < 070f356ea4f419e4e85e4089381f4477f41d969e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rapidio/tsi721: prevent a bad dereference in tsi721_db_dpc()
With a list_for_each() loop, if we don't find the item we are looking for in the list, then the loop exits with the iterator, which is "dbell" in this loop, pointing to invalid memory.
This code uses the "found" variable to determine if we have found the doorbell we are looking for or not. However, the problem that the "found" variable needs to be set to false at the start of each iteration, otherwise after the first correct doorbell, then everything is marked as found.
Reset the "found" to false at the start of the iteration and move the variable inside the loop.
From the CVE record · Linux
The Linux kernel's tsi721_db_dpc() can dereference an invalid list iterator because a doorbell-found flag is not reset for each iteration. The input does not specify how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with the rapidio/tsi721 driver should check their installations; affected versions are not specified.