# CVE-2026-45999: erofs: fix unsigned underflow in z\_erofs\_lz4\_handle\_overlap()

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; 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.18% (percentile 4, 2026-11-28)
- **CWE:** CWE-191
- **Published:** 2026-05-27T12:55:53.846Z
- **Modified:** 2026-08-05T12:29:04.993Z

## Who should check

- Anyone running Linux \>= 598162d050801e556750defff4ddab499e5d76ed, \< 778acd52e9497806fbd2cea7f770c41d6850fc48; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 118ff71ff09ebaf323a09af9e911517321a299f4; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 43a878639b90e9721ffa5eb616a7e6d8454adef3; \>= 598162d050801e556750defff4ddab499e5d76ed, \< f1374fa6e57fd836623668d782ded9244cfd2938; \>= 598162d050801e556750defff4ddab499e5d76ed, \< c9ce18e6bb2c467ec85756dc7989b547b7584fee; \>= 598162d050801e556750defff4ddab499e5d76ed, \< bbbbb3f0d7864238a8da2a94cd6ec013fee06a2e; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab
- Anyone running Linux 5.13

## Description

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

erofs: fix unsigned underflow in z\_erofs\_lz4\_handle\_overlap()

Some crafted images can have illegal (!partial\_decoding &&
m\_llen \< m\_plen) extents, and the LZ4 inplace decompression path
can be wrongly hit, but it cannot handle (outpages \< inpages)
properly: "outpages - inpages" wraps to a large value and
the subsequent rq-\>out\[\] access reads past the decompressed\_pages
array.

However, such crafted cases can correctly result in a corruption
report in the normal LZ4 non-inplace path.

Let's add an additional check to fix this for backporting.

Reproducible image (base64-encoded gzipped blob):

H4sIAJGR12kCA+3SPUoDQRgG4MkmkkZk8QRbRFIIi9hbpEjrHQI5ghfwCN5BLCzTGtLbBI+g
dilSJo1CnIm7GEXFxhT6PDDwfrs73/ywIQD/1ePD4r7Ou6ETsrq4mu7XcWfj++Pb58nJU/9i
PNtbjhan04/9GtX4qVYc814WDqt6FaX5s+ZwXXeq52lndT6IuVvlblytLMvh4Gzwaf90nsvz
2DF/21+20T/ldgp5s1jXRaN4t/8izsy/OUB6e/Qa79r+JwAAAAAAAL52vQVuGQAAAP6+my1w
ywAAAAAAAADwu14ATsEYtgBQAAA=

$ mount -t erofs -o cache\_strategy=disabled foo.erofs /mnt
$ dd if=/mnt/data of=/dev/null bs=4096 count=1

## Affected and fixed versions

- Linux: \>= 598162d050801e556750defff4ddab499e5d76ed, \< 778acd52e9497806fbd2cea7f770c41d6850fc48; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 118ff71ff09ebaf323a09af9e911517321a299f4; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 43a878639b90e9721ffa5eb616a7e6d8454adef3; \>= 598162d050801e556750defff4ddab499e5d76ed, \< f1374fa6e57fd836623668d782ded9244cfd2938; \>= 598162d050801e556750defff4ddab499e5d76ed, \< c9ce18e6bb2c467ec85756dc7989b547b7584fee; \>= 598162d050801e556750defff4ddab499e5d76ed, \< bbbbb3f0d7864238a8da2a94cd6ec013fee06a2e; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-45999.md
Affected: Linux >= 598162d050801e556750defff4ddab499e5d76ed, < 778acd52e9497806fbd2cea7f770c41d6850fc48; >= 598162d050801e556750defff4ddab499e5d76ed, < 118ff71ff09ebaf323a09af9e911517321a299f4; >= 598162d050801e556750defff4ddab499e5d76ed, < 43a878639b90e9721ffa5eb616a7e6d8454adef3; >= 598162d050801e556750def…
Fixed in: Linux 778acd52e9497806fbd2cea7f770c41d6850fc48, Linux 118ff71ff09ebaf323a09af9e911517321a299f4, Linux 43a878639b90e9721ffa5eb616a7e6d8454adef3, Linux 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab

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-2026-45999 being exploited?

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

### How serious is CVE-2026-45999?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-45999?

Linux \>= 598162d050801e556750defff4ddab499e5d76ed, \< 778acd52e9497806fbd2cea7f770c41d6850fc48; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 118ff71ff09ebaf323a09af9e911517321a299f4; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 43a878639b90e9721ffa5eb616a7e6d8454adef3; \>= 598162d050801e556750defff4ddab499e5d76ed, \< f1374fa6e57fd836623668d782ded9244cfd2938; \>= 598162d050801e556750defff4ddab499e5d76ed, \< c9ce18e6bb2c467ec85756dc7989b547b7584fee; \>= 598162d050801e556750defff4ddab499e5d76ed, \< bbbbb3f0d7864238a8da2a94cd6ec013fee06a2e; \>= 598162d050801e556750defff4ddab499e5d76ed, \< 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab; Linux 5.13.

### Is there a fix for CVE-2026-45999?

Yes. Fixed in Linux 778acd52e9497806fbd2cea7f770c41d6850fc48, Linux 118ff71ff09ebaf323a09af9e911517321a299f4, Linux 43a878639b90e9721ffa5eb616a7e6d8454adef3, Linux 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab. Upgrade Linux to 21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab or later.

### How do I check if I'm affected by CVE-2026-45999?

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/43a878639b90e9721ffa5eb616a7e6d8454adef3>
- patch: <https://git.kernel.org/stable/c/f1374fa6e57fd836623668d782ded9244cfd2938>
- patch: <https://git.kernel.org/stable/c/c9ce18e6bb2c467ec85756dc7989b547b7584fee>
- patch: <https://git.kernel.org/stable/c/bbbbb3f0d7864238a8da2a94cd6ec013fee06a2e>
- patch: <https://git.kernel.org/stable/c/21e161de2dc660b1bb70ef5b156ab8e6e1cca3ab>
- other: <https://git.kernel.org/stable/c/778acd52e9497806fbd2cea7f770c41d6850fc48>
- other: <https://git.kernel.org/stable/c/118ff71ff09ebaf323a09af9e911517321a299f4>

## 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-2026-45999>

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