CVE-2023-53820

loop: loop_set_status_from_info() check before assignment

No CVSS score yet EPSS 0.30%

Published 9 Dec 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2023-53820

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53820 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2035c770bfdbcc82bd52e05871a7c82db9529e0f, before 6bdf4e6dfb60cbb6121ccf027d97ed2ec97c0bcb
affected from a217715338fd48f72114725aa7a40e484a781ca7, before 832580af82ace363205039a8e7c4ef04552ccc1a
affected from 13b2856037a651ba3ab4a8b25ecab3e791926da3, before 2ea7077748e5d7cc64f1c31342c802fe66ea7426
affected from b40877b8562c5720d0a7fce20729f56b75a3dede, before 861021710bba9dfa0749a3c209a6c1773208b1f1
affected from 6858933131d0dadac071c4d33335a9ea4b8e76cf, before c79a924ed6afac1708dfd370ba66bcf6a852ced6
affected from 0455bef69028c65065f16bb04635591b2374249b, before 3e7d0968203d668af6036b9f9199c7b62c8a3581
affected from c490a0b5a4f36da3918181a8acdc6991d967c5f3, before 4be26d553a3f1d4f54f25353d1496c562002126d
affected from c490a0b5a4f36da3918181a8acdc6991d967c5f3, before 258809bf22bf71d53247856f374f2b1d055f2fd4
affected from c490a0b5a4f36da3918181a8acdc6991d967c5f3, before 9f6ad5d533d1c71e51bdd06a5712c4fbc8768dfa
affected 18e28817cb516b39de6281f6db9b0618b2cc7b42
affected adf0112d9b8acb03485624220b4934f69bf13369
affected 9be7fa7ead18a48940df7b59d993bbc8b9055c15
affected from 4.19.257, before 4.19.312
affected from 5.4.212, before 5.4.274
affected from 5.10.140, before 5.10.173
affected from 5.15.64, before 5.15.100
affected from 4.9.327, before 4.10
affected from 4.14.292, before 4.15
affected from 5.19.6, before 5.20
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
unaffected from 4.19.312 up to and including 4.19.*
unaffected from 5.4.274 up to and including 5.4.*
unaffected from 5.10.173 up to and including 5.10.*
unaffected from 5.15.100 up to and including 5.15.*
unaffected from 6.1.18 up to and including 6.1.*
unaffected from 6.2.5 up to and including 6.2.*
unaffected 6.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53820 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53820

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-53820
trivy image --scanners vuln IMAGE | grep CVE-2023-53820

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-53820 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.