# CVE-2023-53777: erofs: kill hooked chains to avoid loops on deduplicated compressed images

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T00:00:32.947Z
- **Modified:** 2026-06-17T06:46:03.310Z

## Who should check

- Anyone running Linux \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< d3b39ea24835ac03da1a30f93ae7c05d55a40191; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< b5b0d52f00e4bacb0ebdf47cd7016b0485fffad2; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< 10c2b98a40d9044a3e97f4697ca6213bad7e19c2; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< 967c28b23f6c89bb8eef6a046ea88afe0d7c1029
- Anyone running Linux 6.0

## Description

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

erofs: kill hooked chains to avoid loops on deduplicated compressed images

After heavily stressing EROFS with several images which include a
hand-crafted image of repeated patterns for more than 46 days, I found
two chains could be linked with each other almost simultaneously and
form a loop so that the entire loop won't be submitted.  As a
consequence, the corresponding file pages will remain locked forever.

It can be \_only\_ observed on data-deduplicated compressed images.
For example, consider two chains with five pclusters in total:
	Chain 1:  2-\>3-\>4-\>5    -- The tail pcluster is 5;
        Chain 2:  5-\>1-\>2       -- The tail pcluster is 2.

Chain 2 could link to Chain 1 with pcluster 5; and Chain 1 could link
to Chain 2 at the same time with pcluster 2.

Since hooked chains are all linked locklessly now, I have no idea how
to simply avoid the race.  Instead, let's avoid hooked chains completely
until I could work out a proper way to fix this and end users finally
tell us that it's needed to add it back.

Actually, this optimization can be found with multi-threaded workloads
(especially even more often on deduplicated compressed images), yet I'm
not sure about the overall system impacts of not having this compared
with implementation complexity.

## Affected and fixed versions

- Linux: \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< d3b39ea24835ac03da1a30f93ae7c05d55a40191; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< b5b0d52f00e4bacb0ebdf47cd7016b0485fffad2; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< 10c2b98a40d9044a3e97f4697ca6213bad7e19c2; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< 967c28b23f6c89bb8eef6a046ea88afe0d7c1029 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 967c28b23f6c89bb8eef6a046ea88afe0d7c1029 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-53777. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53777.md
Affected: Linux >= 267f2492c8f71dac44399988b510f9bf6b074a51, < d3b39ea24835ac03da1a30f93ae7c05d55a40191; >= 267f2492c8f71dac44399988b510f9bf6b074a51, < b5b0d52f00e4bacb0ebdf47cd7016b0485fffad2; >= 267f2492c8f71dac44399988b510f9bf6b074a51, < 10c2b98a40d9044a3e97f4697ca6213bad7e19c2; >= 267f2492c8f71dac4439998…
Fixed in: Linux 10c2b98a40d9044a3e97f4697ca6213bad7e19c2, Linux 967c28b23f6c89bb8eef6a046ea88afe0d7c1029

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-53777 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< d3b39ea24835ac03da1a30f93ae7c05d55a40191; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< b5b0d52f00e4bacb0ebdf47cd7016b0485fffad2; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< 10c2b98a40d9044a3e97f4697ca6213bad7e19c2; \>= 267f2492c8f71dac44399988b510f9bf6b074a51, \< 967c28b23f6c89bb8eef6a046ea88afe0d7c1029; Linux 6.0.

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

Yes. Fixed in Linux 10c2b98a40d9044a3e97f4697ca6213bad7e19c2, Linux 967c28b23f6c89bb8eef6a046ea88afe0d7c1029. Upgrade Linux to 967c28b23f6c89bb8eef6a046ea88afe0d7c1029 or later.

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

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

- other: <https://git.kernel.org/stable/c/d3b39ea24835ac03da1a30f93ae7c05d55a40191>
- other: <https://git.kernel.org/stable/c/b5b0d52f00e4bacb0ebdf47cd7016b0485fffad2>
- other: <https://git.kernel.org/stable/c/10c2b98a40d9044a3e97f4697ca6213bad7e19c2>
- other: <https://git.kernel.org/stable/c/967c28b23f6c89bb8eef6a046ea88afe0d7c1029>

## 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-53777>

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