CVE-2023-53820

loop: loop_set_status_from_info() check before assignment

State
Published
Severity
Not scored
Published
Dec 9, 2025
Updated
May 23, 2026
Reserved
Dec 8, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2035c770bfdbcc82bd52e05871a7c82db9529e0f to before 6bdf4e6dfb60cbb6121ccf027d97ed2ec97c0bcbAffected
  • a217715338fd48f72114725aa7a40e484a781ca7 to before 832580af82ace363205039a8e7c4ef04552ccc1aAffected
  • 13b2856037a651ba3ab4a8b25ecab3e791926da3 to before 2ea7077748e5d7cc64f1c31342c802fe66ea7426Affected
  • b40877b8562c5720d0a7fce20729f56b75a3dede to before 861021710bba9dfa0749a3c209a6c1773208b1f1Affected
  • 6858933131d0dadac071c4d33335a9ea4b8e76cf to before c79a924ed6afac1708dfd370ba66bcf6a852ced6Affected
  • 0455bef69028c65065f16bb04635591b2374249b to before 3e7d0968203d668af6036b9f9199c7b62c8a3581Affected
  • c490a0b5a4f36da3918181a8acdc6991d967c5f3 to before 4be26d553a3f1d4f54f25353d1496c562002126dAffected
  • c490a0b5a4f36da3918181a8acdc6991d967c5f3 to before 258809bf22bf71d53247856f374f2b1d055f2fd4Affected
  • c490a0b5a4f36da3918181a8acdc6991d967c5f3 to before 9f6ad5d533d1c71e51bdd06a5712c4fbc8768dfaAffected
  • 18e28817cb516b39de6281f6db9b0618b2cc7b42Affected
  • adf0112d9b8acb03485624220b4934f69bf13369Affected
  • 9be7fa7ead18a48940df7b59d993bbc8b9055c15Affected
  • 4.19.257 to before 4.19.312Affected
  • 5.4.212 to before 5.4.274Affected
  • 5.10.140 to before 5.10.173Affected
  • 5.15.64 to before 5.15.100Affected
  • 4.9.327 to before 4.10Affected
  • 4.14.292 to before 4.15Affected
  • 5.19.6 to before 5.20Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 4.19.312 through 4.19.*Not affected
  • 5.4.274 through 5.4.*Not affected
  • 5.10.173 through 5.10.*Not affected
  • 5.15.100 through 5.15.*Not affected
  • 6.1.18 through 6.1.*Not affected
  • 6.2.5 through 6.2.*Not affected
  • 6.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.