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

kernel: jfs: jfs_dmap: Validate db_l2nbperpage while mounting

متن اصلی

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

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

بهره‌برداری

CVE-2023-53222

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

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

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

In the Linux kernel, the following vulnerability has been resolved: jfs: jfs_dmap: Validate db_l2nbperpage while mounting In jfs_dmap.c at line 381, BLKTODMAP is used to get a logical block number inside dbFree(). db_l2nbperpage, which is the log2 number of blocks per page, is passed as an argument to BLKTODMAP which uses it for shifting. Syzbot reported a shift out-of-bounds crash because db_l2nbperpage is too big. This happens because the large value is set without any validation in dbMount() at line 181. Thus, make sure that db_l2nbperpage is correct while mounting. Max number of blocks per page = Page size / Min block size => log2(Max num_block per page) = log2(Page size / Min block size) = log2(Page size) - log2(Min block size) => Max db_l2nbperpage = L2PSIZE - L2MINBLOCKSIZE

A flaw was found in the Linux kernel's JFS (Journaled File System) implementation. This vulnerability allows a local user with permissions to mount file systems, or an attacker with physical access to attach a corrupted storage device, to cause a Denial of Service (DoS). When mounting a specially crafted file system image, the kernel fails to validate block-per-page parameters during the mount process. Processing these invalid values triggers an out-of-bounds calculation and crashes the system.