f2fs: initialize locks earlier in f2fs_fill_super()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel, f2fs error handling can use a lock before it is initialized, causing a lockdep warning. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel with f2fs should check their installations; affected versions are not specified.