---
id: CVE-2022-49742
title: |-
  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 sp…
summary: |-
  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 sp…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-667
  - CWE-667
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 6.1.11
patched:
  - linux_kernel 6.1.11
published: '2025-03-27'
updated: '2026-08-15'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-49742'
references:
  - url: 'https://git.kernel.org/stable/c/92b4cf5b48955a4bdd15fe4e2067db8ebd87f04c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ddeff03bb33810fcf2f0c18e03d099cf0aacda62'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00123
epssPercentile: 0.01761
ingestedAt: '2026-08-15T13:26:44.654Z'
---

## Overview

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

- `linux_kernel < 6.1.11`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.1.11`
