CVE-2023-53820
N/A
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
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Linux | Linux | 2035c770bfdbcc82bd52e05871a7c82db9529e0f < 6bdf4e6dfb60cbb6121ccf027d97ed2ec97c0bcb | affected |
| Linux | Linux | a217715338fd48f72114725aa7a40e484a781ca7 < 832580af82ace363205039a8e7c4ef04552ccc1a | affected |
| Linux | Linux | 13b2856037a651ba3ab4a8b25ecab3e791926da3 < 2ea7077748e5d7cc64f1c31342c802fe66ea7426 | affected |
| Linux | Linux | b40877b8562c5720d0a7fce20729f56b75a3dede < 861021710bba9dfa0749a3c209a6c1773208b1f1 | affected |
| Linux | Linux | 6858933131d0dadac071c4d33335a9ea4b8e76cf < c79a924ed6afac1708dfd370ba66bcf6a852ced6 | affected |
| Linux | Linux | 0455bef69028c65065f16bb04635591b2374249b < 3e7d0968203d668af6036b9f9199c7b62c8a3581 | affected |
| Linux | Linux | c490a0b5a4f36da3918181a8acdc6991d967c5f3 < 4be26d553a3f1d4f54f25353d1496c562002126d | affected |
| Linux | Linux | c490a0b5a4f36da3918181a8acdc6991d967c5f3 < 258809bf22bf71d53247856f374f2b1d055f2fd4 | affected |
| Linux | Linux | c490a0b5a4f36da3918181a8acdc6991d967c5f3 < 9f6ad5d533d1c71e51bdd06a5712c4fbc8768dfa | affected |
| Linux | Linux | 18e28817cb516b39de6281f6db9b0618b2cc7b42 | affected |
| Linux | Linux | adf0112d9b8acb03485624220b4934f69bf13369 | affected |
| Linux | Linux | 9be7fa7ead18a48940df7b59d993bbc8b9055c15 | affected |
| Linux | Linux | 4.19.257 < 4.19.312 | affected |
| Linux | Linux | 5.4.212 < 5.4.274 | affected |
| Linux | Linux | 5.10.140 < 5.10.173 | affected |
| Linux | Linux | 5.15.64 < 5.15.100 | affected |
| Linux | Linux | 4.9.327 < 4.10 | affected |
| Linux | Linux | 4.14.292 < 4.15 | affected |
| Linux | Linux | 5.19.6 < 5.20 | affected |
| Linux | Linux | 6.0 | affected |
| Linux | Linux | 0 < 6.0 | unaffected |
| Linux | Linux | 4.19.312 <= 4.19.* | unaffected |
| Linux | Linux | 5.4.274 <= 5.4.* | unaffected |
| Linux | Linux | 5.10.173 <= 5.10.* | unaffected |
| Linux | Linux | 5.15.100 <= 5.15.* | unaffected |
| Linux | Linux | 6.1.18 <= 6.1.* | unaffected |
| Linux | Linux | 6.2.5 <= 6.2.* | unaffected |
| Linux | Linux | 6.3 <= * | unaffected |
Weaknesses
References
- https://git.kernel.org/stable/c/6bdf4e6dfb60cbb6121ccf027d97ed2ec97c0bcb
- https://git.kernel.org/stable/c/832580af82ace363205039a8e7c4ef04552ccc1a
- https://git.kernel.org/stable/c/2ea7077748e5d7cc64f1c31342c802fe66ea7426
- https://git.kernel.org/stable/c/861021710bba9dfa0749a3c209a6c1773208b1f1
- https://git.kernel.org/stable/c/c79a924ed6afac1708dfd370ba66bcf6a852ced6
- https://git.kernel.org/stable/c/3e7d0968203d668af6036b9f9199c7b62c8a3581
- https://git.kernel.org/stable/c/4be26d553a3f1d4f54f25353d1496c562002126d
- https://git.kernel.org/stable/c/258809bf22bf71d53247856f374f2b1d055f2fd4
- https://git.kernel.org/stable/c/9f6ad5d533d1c71e51bdd06a5712c4fbc8768dfa
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.