CVE-2024-40969

f2fs: don't set RO when shutting down f2fs

published July 12, 2024

CVSS
—
EPSS
0%
Percentile
11.9
In the wild
Unconfirmed
What it is

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);

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00220 · 11.9th percentile
Published
2024-07-12T12:32Z
EPSS history
Timeline
  • 12 JUL 12:32Z
    f2fs: don't set RO when shutting down f2fs
    cvelistv5