# CVE-2023-53111: loop: Fix use-after-free issues

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-05-02T15:55:51.029Z
- **Modified:** 2026-10-30T13:17:17.340Z

## Who should check

- Anyone running Linux \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 81bf9d78fa246a166619196ff5005430ed2bc7c2; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 407badf73ec9fb0d5744bf2ca1745c1818aa222f; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< e3fda704903f6d1fc351412f1bc6620333959ada; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 6917395c4667cfb607ed8bf1826205a59414657c; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 9b0cb770f5d7b1ff40bea7ca385438ee94570eec
- Anyone running Linux 4.4

## Description

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

loop: Fix use-after-free issues

do\_req\_filebacked() calls blk\_mq\_complete\_request() synchronously or
asynchronously when using asynchronous I/O unless memory allocation fails.
Hence, modify loop\_handle\_cmd() such that it does not dereference 'cmd' nor
'rq' after do\_req\_filebacked() finished unless we are sure that the request
has not yet been completed. This patch fixes the following kernel crash:

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000054
Call trace:
 css\_put.42938+0x1c/0x1ac
 loop\_process\_work+0xc8c/0xfd4
 loop\_rootcg\_workfn+0x24/0x34
 process\_one\_work+0x244/0x558
 worker\_thread+0x400/0x8fc
 kthread+0x16c/0x1e0
 ret\_from\_fork+0x10/0x20

## Affected and fixed versions

- Linux: \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 81bf9d78fa246a166619196ff5005430ed2bc7c2; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 407badf73ec9fb0d5744bf2ca1745c1818aa222f; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< e3fda704903f6d1fc351412f1bc6620333959ada; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 6917395c4667cfb607ed8bf1826205a59414657c; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 9b0cb770f5d7b1ff40bea7ca385438ee94570eec (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- Upgrade Linux to 9b0cb770f5d7b1ff40bea7ca385438ee94570eec or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53111. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53111.md
Affected: Linux >= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, < 81bf9d78fa246a166619196ff5005430ed2bc7c2; >= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, < 407badf73ec9fb0d5744bf2ca1745c1818aa222f; >= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, < e3fda704903f6d1fc351412f1bc6620333959ada; >= bc07c10a3603a5ab3ef01ba…
Fixed in: Linux 81bf9d78fa246a166619196ff5005430ed2bc7c2, Linux 407badf73ec9fb0d5744bf2ca1745c1818aa222f, Linux 6917395c4667cfb607ed8bf1826205a59414657c, Linux 9b0cb770f5d7b1ff40bea7ca385438ee94570eec

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53111 being exploited?

There is no confirmed exploitation: CVE-2023-53111 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53111?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53111?

Linux \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 81bf9d78fa246a166619196ff5005430ed2bc7c2; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 407badf73ec9fb0d5744bf2ca1745c1818aa222f; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< e3fda704903f6d1fc351412f1bc6620333959ada; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 6917395c4667cfb607ed8bf1826205a59414657c; \>= bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6, \< 9b0cb770f5d7b1ff40bea7ca385438ee94570eec; Linux 4.4.

### Is there a fix for CVE-2023-53111?

Yes. Fixed in Linux 81bf9d78fa246a166619196ff5005430ed2bc7c2, Linux 407badf73ec9fb0d5744bf2ca1745c1818aa222f, Linux 6917395c4667cfb607ed8bf1826205a59414657c, Linux 9b0cb770f5d7b1ff40bea7ca385438ee94570eec. Upgrade Linux to 9b0cb770f5d7b1ff40bea7ca385438ee94570eec or later.

### How do I check if I'm affected by CVE-2023-53111?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/407badf73ec9fb0d5744bf2ca1745c1818aa222f>
- patch: <https://git.kernel.org/stable/c/e3fda704903f6d1fc351412f1bc6620333959ada>
- patch: <https://git.kernel.org/stable/c/6917395c4667cfb607ed8bf1826205a59414657c>
- patch: <https://git.kernel.org/stable/c/9b0cb770f5d7b1ff40bea7ca385438ee94570eec>
- other: <https://git.kernel.org/stable/c/81bf9d78fa246a166619196ff5005430ed2bc7c2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53111>

HTML: <https://flawdb.com/CVE-2023-53111> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53111>
