Skip to content
Heist/ feed
Back to feed
UnratedFix available

f2fs: don't set RO when shutting down f2fs

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.6.36, 6.9.7
CVEs
CVE-2024-40969
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 07:46 UTC · Revision 1

Source evidence

f2fs: don't set RO when shutting down f2fs

core-osv · Original source

Published 12 Jul 2024, 12:32 UTC

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

osv:CVE-2024-40969

Kernel

Fixed versions: 6.6.36, 6.9.7

Complete source record
{
  "id": "93a20479284f738d96bae712882434965a26ae8b3eb3e6186f4bc9a4a985e841",
  "url": "https://osv.dev/vulnerability/CVE-2024-40969",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "f2fs: don't set RO when shutting down f2fs",
    "summary": "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);",
    "evidence": "osv:CVE-2024-40969",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.36",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-40969",
      "aliases": [
        "CVE-2024-40969"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "98e4da8ca301e062d79ae168c67e56f3c3de3ce4"
                },
                {
                  "fixed": "1036d3ea7a32cb7cee00885c73a1f2ba7fbc499a"
                },
                {
                  "fixed": "f47ed3b284b38f235355e281f57dfa8fffcc6563"
                },
                {
                  "fixed": "3bdb7f161697e2d5123b89fe1778ef17a44858e7"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40969.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.8.0"
                },
                {
                  "fixed": "6.6.36"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.9.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40969.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.527257700Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1036d3ea7a32cb7cee00885c73a1f2ba7fbc499a",
        "https://git.kernel.org/stable/c/3bdb7f161697e2d5123b89fe1778ef17a44858e7",
        "https://git.kernel.org/stable/c/f47ed3b284b38f235355e281f57dfa8fffcc6563",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40969.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-40969",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40969.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-40969",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 518671,
  "published_at": "2024-07-12T12:32:08.139+00:00"
}