CVE Catalog

CVE-2022-49742

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.12%

2th percentile - higher than 2% of all known CVEs

Summary

In the Linux kernel, an issue was found in the f2fs filesystem where locks are not initialized before use. The f2fs_fill_super() function calls spin_lock on an uninitialized lock, causing a lockdep warning. The fix moves lock and structure initialization to immediately after memory allocation.

Risk Assessment

Using an uninitialized lock can lead to unpredictable system behavior, including deadlocks or crashes, especially during error handling.

Recommendation

It is recommended to update the Linux kernel to a version that includes the fix that initializes locks before use.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: f2fs: initialize locks earlier in f2fs_fill_super() syzbot is reporting lockdep warning at f2fs_handle_error() [1], for spin_lock(&sbi->error_lock) is called before spin_lock_init() is called. For safe locking in error handling, move initialization of locks (and obvious structures) in f2fs_fill_super() to immediately after memory allocation.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS