What’s Vulnerable › Vulnerabilities
CVE-2022-49742: f2fs: initialize locks earlier in f2fs_fill_super()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-03-27 · updated 2026-08-15
- Weakness: CWE-667
Description
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.
Affected products
- Linux kernel: before 6.1.11 — fixed in 6.1.11
How to fix
Upgrade to a fixed version: Linux kernel 6.1.11. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/92b4cf5b48955a4bdd15fe4e2067db8ebd87f04c
- https://git.kernel.org/stable/c/ddeff03bb33810fcf2f0c18e03d099cf0aacda62
Get alerted when CVE-2022-49742 or the next vulnerability affects your stack