
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49282 affects the Linux kernel's F2FS (Flash-Friendly File System) quota functionality. The vulnerability was discovered in the f2fs_quota_sync() function where an incorrect parameter was being passed to sb_has_quota_active(), potentially leading to a NULL pointer dereference. This issue was particularly problematic when the type parameter was set to -1, as the compiler could optimize away the quota active check entirely (Kernel Git).
The vulnerability stems from a logic error in the f2fs_quota_sync() function where 'type' was incorrectly passed to sb_has_quota_active() instead of 'cnt'. When type is -1, compiler optimization could remove the sb_has_quota_active() check completely, leading to a NULL pointer dereference when attempting to call inode_lock(dqopt->files[cnt]). This results in a kernel panic with the error message "Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0" (Kernel Git).
When exploited, this vulnerability causes a kernel panic, leading to a system crash. This results in a denial of service condition as the system becomes unresponsive and requires a restart. The issue affects systems using the F2FS filesystem with quota functionality enabled (NVD).
The vulnerability can be triggered through normal filesystem operations when using F2FS with quota functionality. It requires local access to the system and the ability to perform filesystem operations. No known exploits in the wild have been reported (NVD).
The issue has been fixed in the Linux kernel through a patch that corrects the parameter passed to sb_has_quota_active(). The fix involves changing the function to use 'cnt' instead of 'type' in the check and properly handling the return value. System administrators should update to a patched kernel version that includes this fix (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."