# CVE-2022-50743: erofs: Fix pcluster memleak when its block address is zero

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T13:05:40.297Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< ac54c1f7b288d83b6ba1e320efff24ecc21309cd; \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< 618e712b99c78d1004b70a1a9ab0a4830d0b2673; \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< c42c0ffe81176940bd5dead474216b7198d77675
- Anyone running Linux 5.17

## Description

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

erofs: Fix pcluster memleak when its block address is zero

syzkaller reported a memleak:
https://syzkaller.appspot.com/bug?id=62f37ff612f0021641eda5b17f056f1668aa9aed

unreferenced object 0xffff88811009c7f8 (size 136):
  ...
  backtrace:
    \[\<ffffffff821db19b\>\] z\_erofs\_do\_read\_page+0x99b/0x1740
    \[\<ffffffff821dee9e\>\] z\_erofs\_readahead+0x24e/0x580
    \[\<ffffffff814bc0d6\>\] read\_pages+0x86/0x3d0
    ...

syzkaller constructed a case: in z\_erofs\_register\_pcluster(),
ztailpacking = false and map-\>m\_pa = zero. This makes pcl-\>obj.index be
zero although pcl is not a inline pcluster.

Then following path adds refcount for grp, but the refcount won't be put
because pcl is inline.

z\_erofs\_readahead()
  z\_erofs\_do\_read\_page() \# for another page
    z\_erofs\_collector\_begin()
      erofs\_find\_workgroup()
        erofs\_workgroup\_get()

Since it's illegal for the block address of a non-inlined pcluster to
be zero, add check here to avoid registering the pcluster which would
be leaked.

## Affected and fixed versions

- Linux: \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< ac54c1f7b288d83b6ba1e320efff24ecc21309cd; \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< 618e712b99c78d1004b70a1a9ab0a4830d0b2673; \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< c42c0ffe81176940bd5dead474216b7198d77675 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50743.md
Affected: Linux >= cecf864d3d76d50e3d9c58145e286a0b8c284e92, < ac54c1f7b288d83b6ba1e320efff24ecc21309cd; >= cecf864d3d76d50e3d9c58145e286a0b8c284e92, < 618e712b99c78d1004b70a1a9ab0a4830d0b2673; >= cecf864d3d76d50e3d9c58145e286a0b8c284e92, < c42c0ffe81176940bd5dead474216b7198d77675; Linux 5.17
Fixed in: Linux 618e712b99c78d1004b70a1a9ab0a4830d0b2673

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-2022-50743 being exploited?

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

### How serious is CVE-2022-50743?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50743?

Linux \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< ac54c1f7b288d83b6ba1e320efff24ecc21309cd; \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< 618e712b99c78d1004b70a1a9ab0a4830d0b2673; \>= cecf864d3d76d50e3d9c58145e286a0b8c284e92, \< c42c0ffe81176940bd5dead474216b7198d77675; Linux 5.17.

### Is there a fix for CVE-2022-50743?

Yes. Fixed in Linux 618e712b99c78d1004b70a1a9ab0a4830d0b2673. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50743?

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/ac54c1f7b288d83b6ba1e320efff24ecc21309cd>
- other: <https://git.kernel.org/stable/c/618e712b99c78d1004b70a1a9ab0a4830d0b2673>
- other: <https://git.kernel.org/stable/c/c42c0ffe81176940bd5dead474216b7198d77675>

## 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-2022-50743>

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