5.5medium
f2fs: initialize locks earlier in f2fs_fill_super()
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 95fa90c9e5a7f14c2497d5b032544478c9377c3a before ddeff03bb33810fcf2f0c18e03d099cf0aacda62, from 95fa90c9e5a7f14c2497d5b032544478c9377c3a before 92b4cf5b48955a4bdd15fe4e2067db8ebd87f04c, 6.1 Not affected: before 6.1, from 6.1.11 up to 6.1.*, from 6.2 up to * | CVE List |
| linux linux_kernel | before 6.1.11 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: f2fs: inicializar bloqueos antes en f2fs_fill_super(). syzbot reporta una advertencia de bloqueo en f2fs_handle_error() [1], ya que se llama a spin_lock(&sbi->error_lock) antes de que se llame a spin_lock_init(). Para un bloqueo seguro en la gestión de errores, se debe trasladar la inicialización de bloqueos (y estructuras obvias) en f2fs_fill_super() inmediatamente después de la asignación de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49742 changed 2026-08-15 | CVE Terms of Use |
| NVD | CVE-2022-49742 changed 2026-08-15 | Public domain |