CVE-2024-40969 f2fs: don't set RO when shutting down f2fs
A race condition in the f2fs filesystem shutdown process can cause a deadlock, leading to a denial of service.
- 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-2024-40969?
CVE-2024-40969 is a medium-severity vulnerability in Linux kernel, published on 12 Jul 2024. 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: don't set RO when shutting down f2fs
Shutdown does not check the error of thaw_super due to readonly, which causes a deadlock like below.
f2fs_ioc_shutdown(F2FS_GOING_DOWN_FULLSYNC) issue_discard_thread - bdev_freeze - freeze_super - f2fs_stop_checkpoint() - f2fs_handle_critical_error - sb_start_write - set RO - waiting - bdev_thaw - thaw_super_locked - return -EINVAL, if sb_rdonly() - f2fs_stop_discard_thread -> wait for kthread_stop(discard_thread);
Weakness: CWE-667
Which versions are affected by CVE-2024-40969?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-40969?
Apply the vendor's patch.
Is CVE-2024-40969 being exploited?
There is no known exploitation of CVE-2024-40969 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-48954, BELL-CVE-2024-40969, DEBIAN-CVE-2024-40969, GHSA-crw5-qp92-p6m7, ROOT-OS-DEBIAN-11-CVE-2024-40969, ROOT-OS-DEBIAN-12-CVE-2024-40969 and 1 more.