CVE-2023-53820
JSON

Not scored

loop: loop_set_status_from_info() check before assignment

Severity
Not scored
Exploit likelihood
0.30% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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

Product or packageVersionsReported by
Linux Linuxfrom 2035c770bfdbcc82bd52e05871a7c82db9529e0f before 6bdf4e6dfb60cbb6121ccf027d97ed2ec97c0bcb, from a217715338fd48f72114725aa7a40e484a781ca7 before 832580af82ace363205039a8e7c4ef04552ccc1a, from 13b2856037a651ba3ab4a8b25ecab3e791926da3 before 2ea7077748e5d7cc64f1c31342c802fe66ea7426, from b40877b8562c5720d0a7fce20729f56b75a3dede before 861021710bba9dfa0749a3c209a6c1773208b1f1, from 6858933131d0dadac071c4d33335a9ea4b8e76cf before c79a924ed6afac1708dfd370ba66bcf6a852ced6, from 0455bef69028c65065f16bb04635591b2374249b before 3e7d0968203d668af6036b9f9199c7b62c8a3581, from c490a0b5a4f36da3918181a8acdc6991d967c5f3 before 4be26d553a3f1d4f54f25353d1496c562002126d, from c490a0b5a4f36da3918181a8acdc6991d967c5f3 before 258809bf22bf71d53247856f374f2b1d055f2fd4 and 12 more
Not affected: before 6.0, from 4.19.312 up to 4.19.*, from 5.4.274 up to 5.4.*, from 5.10.173 up to 5.10.*, from 5.15.100 up to 5.15.*, from 6.1.18 up to 6.1.*
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53820 changed 2026-05-23CVE Terms of Use
NVDCVE-2023-53820 changed 2026-06-17Public domain