Linux
io_uring/kbuf: check if target buffer list is still legacy on recycle
In the Linux kernel, the following vulnerability has been resolved: io_uring/kbuf: check if target buffer list is still legacy on recycle There's a gap between when the buffer was grabbed and when it potentially gets recycled, where if the list is empty, someone could've upgraded it to a ring provided type. This can happen if the request is forced via io-wq. The legacy recycling is missing checking if the buffer_list still exists, and if it's of the correct type. Add those checks.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c7fb19428d67dd0a2a78a4f237af01d39c78dc5a, < a7b33671e418fca507feebd1d56e7f4952a4b25c
- >= c7fb19428d67dd0a2a78a4f237af01d39c78dc5a, < 439a6728ec4641ffad1ca796622c19bc525e570f
- >= c7fb19428d67dd0a2a78a4f237af01d39c78dc5a, < f3fb54e7a8b4aadcc2836ee463eec8c88709b8aa
- >= c7fb19428d67dd0a2a78a4f237af01d39c78dc5a, < 50ad880db3013c6fee0ef13781762a39e2e7ef83
- >= c7fb19428d67dd0a2a78a4f237af01d39c78dc5a, < 97b57f69fee1b61b41acbf37e7720cac9d389fa4
- >= c7fb19428d67dd0a2a78a4f237af01d39c78dc5a, < c2c185be5c85d37215397c8e8781abf0a69bec1f
Fixed in a7b33671e418fca507feebd1d56e7f4952a4b25c, 439a6728ec4641ffad1ca796622c19bc525e570f, f3fb54e7a8b4aadcc2836ee463eec8c88709b8aa, 50ad880db3013c6fee0ef13781762a39e2e7ef83, 97b57f69fee1b61b41acbf37e7720cac9d389fa4, c2c185be5c85d37215397c8e8781abf0a69bec1f
- 5.19
Fixed in 0, 6.1.167, 6.6.130, 6.12.78, 6.18.19, 6.19.9, 7.0
Mitigation
Upgrade Linux to a7b33671e418fca507feebd1d56e7f4952a4b25c or 439a6728ec4641ffad1ca796622c19bc525e570f or f3fb54e7a8b4aadcc2836ee463eec8c88709b8aa or 50ad880db3013c6fee0ef13781762a39e2e7ef83 or 97b57f69fee1b61b41acbf37e7720cac9d389fa4 or c2c185be5c85d37215397c8e8781abf0a69bec1f or later.
Upgrade Linux to 0 or 6.1.167 or 6.6.130 or 6.12.78 or 6.18.19 or 6.19.9 or 7.0 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.