CVE-2022-49742

f2fs: initialize locks earlier in f2fs_fill_super()

State
Published
Severity
5.5 Medium
Published
Mar 27, 2025
Updated
Aug 15, 2026
Reserved
Mar 27, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 95fa90c9e5a7f14c2497d5b032544478c9377c3a to before ddeff03bb33810fcf2f0c18e03d099cf0aacda62Affected
  • 95fa90c9e5a7f14c2497d5b032544478c9377c3a to before 92b4cf5b48955a4bdd15fe4e2067db8ebd87f04cAffected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.11 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.