CVE-2022-49742 f2fs: initialize locks earlier in f2fs_fill_super()

Medium 5.5 Published Updated

A race condition in the Linux kernel f2fs filesystem allows a denial of service due to improper lock initialization order.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49742?

CVE-2022-49742 is a medium-severity vulnerability in Linux kernel, published on 27 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-667

Which versions are affected by CVE-2022-49742?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49742?

Apply the vendor's patch.

Is CVE-2022-49742 being exploited?

There is no known exploitation of CVE-2022-49742 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-60306, DEBIAN-CVE-2022-49742, GHSA-88rq-q8gm-2chx, ROOT-OS-DEBIAN-11-CVE-2022-49742, ROOT-OS-UBUNTU-2204-CVE-2022-49742, UBUNTU-CVE-2022-49742.

Is CVE-2022-49742 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free