All reports
Medium

kernel: erofs: validate the extent length for uncompressed pclusters

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-50746

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-19

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.

A flaw was found in the Linux kernel's EROFS (Enhanced Read-Only File System) implementation. The code handling uncompressed data blocks fails to properly validate extent lengths, which can trigger an invalid memory access and a use-after-free condition. A local user could exploit this flaw by mounting or causing the kernel to parse a specially crafted EROFS filesystem image, resulting in a system crash and a Denial of Service (DoS).