Skip to main content
← All vulnerabilities
CVE-2023-53820

loop: loop_set_status_from_info() check before assignment

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.19.312, 5.4.274, 5.10.173, 5.15.100, 4.10, and 2 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: loop: loop_set_status_from_info() check before assignment In loop_set_status_from_info(), lo->lo_offset and lo->lo_sizelimit should be checked before reassignment, because if an overflow error occurs, the original correct value will be changed to the wrong value, and it will not be changed back. More, the original patch did not solve the problem, the value was set and ioctl returned an error, but the subsequent io used the value in the loop driver, which still caused an alarm: loop_handle_cmd do_req_filebacked loff_t pos = ((loff_t) blk_rq_pos(rq) << 9) + lo->lo_offset; lo_rw_aio cmd->iocb.ki_pos = pos

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.19.257 · fixed in 4.19.312; From 5.4.212 · fixed in 5.4.274; From 5.10.140 · fixed in 5.10.173; From 5.15.64 · fixed in 5.15.100; From 4.9.327 · fixed in 4.10; From 4.14.292 · fixed in 4.15; From 5.19.6 · fixed in 5.20

  • Linux Linux

    6.0

References 9

git.kernel.org