Skip to main content

CVE-2022-49560: Vulnerability in Linux Linux

High
VulnerabilityCVE-2022-49560cvecve-2022-49560
Published: Wed Feb 26 2025 (02/26/2025, 02:14:05 UTC)
Source: CVE
Vendor/Project: Linux
Product: Linux

Description

In the Linux kernel, the following vulnerability has been resolved: exfat: check if cluster num is valid Syzbot reported slab-out-of-bounds read in exfat_clear_bitmap. This was triggered by reproducer calling truncute with size 0, which causes the following trace: BUG: KASAN: slab-out-of-bounds in exfat_clear_bitmap+0x147/0x490 fs/exfat/balloc.c:174 Read of size 8 at addr ffff888115aa9508 by task syz-executor251/365 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x81/0x3c0 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report+0x1a4/0x1f0 mm/kasan/report.c:436 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 exfat_clear_bitmap+0x147/0x490 fs/exfat/balloc.c:174 exfat_free_cluster+0x25a/0x4a0 fs/exfat/fatent.c:181 __exfat_truncate+0x99e/0xe00 fs/exfat/file.c:217 exfat_truncate+0x11b/0x4f0 fs/exfat/file.c:243 exfat_setattr+0xa03/0xd40 fs/exfat/file.c:339 notify_change+0xb76/0xe10 fs/attr.c:336 do_truncate+0x1ea/0x2d0 fs/open.c:65 Move the is_valid_cluster() helper from fatent.c to a common header to make it reusable in other *.c files. And add is_valid_cluster() to validate if cluster number is within valid range in exfat_clear_bitmap() and exfat_set_bitmap().

AI-Powered Analysis

AILast updated: 06/29/2025, 22:26:33 UTC

Technical Analysis

CVE-2022-49560 is a vulnerability identified in the Linux kernel's exFAT filesystem implementation. The flaw arises from insufficient validation of cluster numbers within the exfat_clear_bitmap function, which manages allocation bitmaps for exFAT clusters. Specifically, a slab-out-of-bounds read occurs when the function attempts to access memory beyond the allocated slab cache, triggered by an invalid cluster number. This was discovered through a fuzzing tool (Syzbot) that invoked a truncation operation with size zero, leading to a kernel address sanitizer (KASAN) report of an out-of-bounds read at a specific memory address. The root cause was the lack of a proper check to ensure cluster numbers were within valid ranges before accessing the bitmap. The fix involved refactoring the is_valid_cluster() helper function from fatent.c into a common header, allowing it to be reused in exfat_clear_bitmap and exfat_set_bitmap functions to validate cluster numbers properly. This vulnerability affects Linux kernel versions containing the specified commit hashes prior to patching. While no known exploits are reported in the wild, the issue could potentially lead to kernel crashes or memory corruption due to invalid memory reads, impacting system stability and security. The vulnerability does not require user interaction but does require the ability to perform filesystem operations on exFAT volumes, which are commonly used for removable media and some storage devices.

Potential Impact

For European organizations, the impact of CVE-2022-49560 could be significant in environments where Linux systems mount or interact with exFAT-formatted storage devices. This includes enterprise servers, workstations, and embedded systems that rely on exFAT for interoperability with removable drives or external storage. Exploitation could lead to denial of service via kernel crashes, potentially disrupting critical services or workflows. In more severe cases, memory corruption might be leveraged for privilege escalation or arbitrary code execution, although no such exploits are currently known. Given the widespread use of Linux in European public sector institutions, research organizations, and industries such as telecommunications and manufacturing, any instability or security breach could have cascading effects. Additionally, organizations handling large volumes of removable media or external storage devices formatted with exFAT are at higher risk. The vulnerability could also affect cloud service providers operating Linux-based infrastructure in Europe if exFAT volumes are used. Overall, the threat could compromise system availability and integrity, necessitating prompt mitigation to maintain operational security.

Mitigation Recommendations

European organizations should prioritize updating their Linux kernels to versions that include the patch for CVE-2022-49560. Since the fix involves validating cluster numbers in exFAT filesystem operations, applying the latest stable kernel releases or vendor-provided security patches is critical. For environments where immediate kernel upgrades are challenging, organizations should restrict or monitor the use of exFAT-formatted storage devices, especially those from untrusted sources. Implementing strict device control policies to limit the mounting of removable media can reduce exposure. Additionally, enabling kernel hardening features such as Kernel Address Sanitizer (KASAN) in testing environments can help detect similar issues proactively. System administrators should audit logs for unusual filesystem errors or kernel warnings related to exFAT operations. For critical infrastructure, consider isolating systems that handle exFAT volumes to minimize potential impact. Finally, maintain regular backups and incident response plans to recover quickly from any exploitation attempts.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Linux
Date Reserved
2025-02-26T02:08:31.591Z
Cisa Enriched
false
Cvss Version
null
State
PUBLISHED

Threat ID: 682d982bc4522896dcbe4454

Added to database: 5/21/2025, 9:08:59 AM

Last enriched: 6/29/2025, 10:26:33 PM

Last updated: 8/5/2025, 6:20:49 AM

Views: 13

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats