CVE-2023-53820

Source
https://cve.org/CVERecord?id=CVE-2023-53820
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53820.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53820
Downstream
Related
Published
2025-12-09T01:24:29.417Z
Modified
2026-03-20T12:33:21.904752Z
Summary
loop: loop_set_status_from_info() check before assignment
Details

In the Linux kernel, the following vulnerability has been resolved:

loop: loopsetstatusfrominfo() check before assignment

In loopsetstatusfrominfo(), lo->looffset and lo->losizelimit 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:

loophandlecmd doreqfilebacked lofft pos = ((lofft) blkrqpos(rq) << 9) + lo->looffset; lorwaio cmd->iocb.kipos = pos

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53820.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2035c770bfdbcc82bd52e05871a7c82db9529e0f
Fixed
6bdf4e6dfb60cbb6121ccf027d97ed2ec97c0bcb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a217715338fd48f72114725aa7a40e484a781ca7
Fixed
832580af82ace363205039a8e7c4ef04552ccc1a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
13b2856037a651ba3ab4a8b25ecab3e791926da3
Fixed
2ea7077748e5d7cc64f1c31342c802fe66ea7426
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b40877b8562c5720d0a7fce20729f56b75a3dede
Fixed
861021710bba9dfa0749a3c209a6c1773208b1f1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6858933131d0dadac071c4d33335a9ea4b8e76cf
Fixed
c79a924ed6afac1708dfd370ba66bcf6a852ced6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0455bef69028c65065f16bb04635591b2374249b
Fixed
3e7d0968203d668af6036b9f9199c7b62c8a3581
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c490a0b5a4f36da3918181a8acdc6991d967c5f3
Fixed
4be26d553a3f1d4f54f25353d1496c562002126d
Fixed
258809bf22bf71d53247856f374f2b1d055f2fd4
Fixed
9f6ad5d533d1c71e51bdd06a5712c4fbc8768dfa
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
18e28817cb516b39de6281f6db9b0618b2cc7b42
Last affected
adf0112d9b8acb03485624220b4934f69bf13369
Last affected
9be7fa7ead18a48940df7b59d993bbc8b9055c15

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53820.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.19.312
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.274
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.173
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.100
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.18
Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.2.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53820.json"