CVE-2023-53777

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

No CVSS score yet EPSS 0.21%

Published 9 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2023-53777

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

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.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 267f2492c8f71dac44399988b510f9bf6b074a51, before d3b39ea24835ac03da1a30f93ae7c05d55a40191
affected from 267f2492c8f71dac44399988b510f9bf6b074a51, before b5b0d52f00e4bacb0ebdf47cd7016b0485fffad2
affected from 267f2492c8f71dac44399988b510f9bf6b074a51, before 10c2b98a40d9044a3e97f4697ca6213bad7e19c2
affected from 267f2492c8f71dac44399988b510f9bf6b074a51, before 967c28b23f6c89bb8eef6a046ea88afe0d7c1029
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
unaffected from 6.1.39 up to and including 6.1.*
unaffected from 6.3.13 up to and including 6.3.*
unaffected from 6.4.4 up to and including 6.4.*
unaffected 6.5 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-53777 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53777

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-53777
trivy image --scanners vuln IMAGE | grep CVE-2023-53777

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