همهٔ گزارش‌ها
متوسط

kernel: erofs: validate the extent length for uncompressed pclusters

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده
نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2022-50746

احتمال بهره‌برداری در ۳۰ روز آینده: 0.21%

FIRST EPSS · ۱۴۰۵/۰۸/۲۷

شرح آسیب‌پذیری

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