CVE-2024-40969
kernel: f2fs: don't set RO when shutting down f2fs
Overview
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);
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-667
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 25 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 12 | linux | affected |
| 13 | linux | 6.9.7-1 |
| 14 | linux | 6.9.7-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.251-5.root.io.85 |
| 12 | linux +1 | 6.1.172-1.root.io.132 |
| 13 | rootio-linux | 6.9.7-1 |
root.io ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | rootio-linux | 6.8.0-44.44 |
ubuntu 2 releases · 16 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux-oracle-6-8 | 6.8.0-1012.12~22.04.1 |
| 22.04 | linux-nvidia-6-8 | 6.8.0-1013.14~22.04.1 |
| 22.04 | linux-azure-6-8 +1 | 6.8.0-1014.16~22.04.1 |
| 22.04 | linux-aws-6-8 | 6.8.0-1015.16~22.04.1 |
| 22.04 | linux-lowlatency-hwe-6-8 +1 | 6.8.0-44.44.1~22.04.1 |
| 22.04 | linux-hwe-6-8 | 6.8.0-45.45~22.04.1 |
10 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-40969
- git.kernel.org https://git.kernel.org/linus/3bdb7f161697e2d5123b89fe1778ef17a44858e7 (6.10-rc1)
- git.kernel.org https://git.kernel.org/stable/c/1036d3ea7a32cb7cee00885c73a1f2ba7fbc499a
- git.kernel.org https://git.kernel.org/stable/c/3bdb7f161697e2d5123b89fe1778ef17a44858e7
- git.kernel.org https://git.kernel.org/stable/c/f47ed3b284b38f235355e281f57dfa8fffcc6563
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2024071228-CVE-2024-40969-6507@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-40969
- ubuntu.com https://ubuntu.com/security/notices/USN-6999-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6999-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7004-1
Show all 15 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.