Bug 2355535 (CVE-2022-49742) - CVE-2022-49742 kernel: f2fs: initialize locks earlier in f2fs_fill_super()
Summary: CVE-2022-49742 kernel: f2fs: initialize locks earlier in f2fs_fill_super()
Keywords:
Status: NEW
Alias: CVE-2022-49742
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-27 17:05 UTC by OSIDB Bzimport
Modified: 2025-04-08 13:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-27 17:05:56 UTC
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.

Comment 3 Avinash Hanwate 2025-03-28 04:09:09 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025032757-CVE-2022-49742-e3d5@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.