Description
In the Linux kernel, the following vulnerability has been resolved: dm-raid: fix use-after-free in raid_dtr() raid_dtr() currently flushes event_work only if work_pending() is true. This is insufficient because once a worker has dequeued the work, the PENDING bit is cleared while do_table_event() is still running. In that window raid_set_free() can free the raid_set, leading to a use-after-free when do_table_event() accesses rs->ti->table. Flush event_work whenever it has been initialized, so raid_set is not freed while the event handler is still running. The .func guard skips the flush for mddev instances where INIT_WORK has not run yet.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
db29d79b34d9593179de5f868be45c650923e7b4 to < abcf294055516f8e494c04b8731e569ee623be38affecteddb29d79b34d9593179de5f868be45c650923e7b4 to < 178d1d3260c97ab6eabc9b9c0e07ebec2c5c9936affecteddb29d79b34d9593179de5f868be45c650923e7b4 to < e8860e5773569fa297e1906747e770b7afe8bea4affecteddb29d79b34d9593179de5f868be45c650923e7b4 to < 46af2c975958119290ddcd984a98491966123a7baffected
Linux Linux
Default version status: affected
6.7affected0 to < 6.7unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected