Skip to content
Heist/ feed
Back to feed
UnratedFix available

ceph: give up on paths longer than PATH_MAX

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ceph: give up on paths longer than PATH_MAX If the full path to be built by ceph_mdsc_build_path() happens to be longer than PATH_MAX, then this function will enter an endless (retry) loop, effectively blocking the whole task. Most of the machine becomes unusable, making this a very simple and effective DoS vulnerability. I cannot imagine why this retry was ever implemented, but it seems rather useless and harmful to me. Let's remove it and fail with ENAMETOOLONG instead.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.234, 5.15.177, 6.1.125, 6.12.7, 6.6.70
CVEs
CVE-2024-53685
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 05:26 UTC · Revision 1

Source evidence

ceph: give up on paths longer than PATH_MAX

core-osv · Original source

Published 11 Jan 2025, 12:35 UTC

In the Linux kernel, the following vulnerability has been resolved: ceph: give up on paths longer than PATH_MAX If the full path to be built by ceph_mdsc_build_path() happens to be longer than PATH_MAX, then this function will enter an endless (retry) loop, effectively blocking the whole task. Most of the machine becomes unusable, making this a very simple and effective DoS vulnerability. I cannot imagine why this retry was ever implemented, but it seems rather useless and harmful to me. Let's remove it and fail with ENAMETOOLONG instead.

osv:CVE-2024-53685

Kernel

Fixed versions: 5.10.234, 5.15.177, 6.1.125, 6.6.70, 6.12.7

Complete source record
{
  "id": "dc8edadde464cbc28d0ed22f58978a9753f063aab497862122751f8c0e7f84f0",
  "url": "https://osv.dev/vulnerability/CVE-2024-53685",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ceph: give up on paths longer than PATH_MAX",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ceph: give up on paths longer than PATH_MAX If the full path to be built by ceph_mdsc_build_path() happens to be longer than PATH_MAX, then this function will enter an endless (retry) loop, effectively blocking the whole task. Most of the machine becomes unusable, making this a very simple and effective DoS vulnerability. I cannot imagine why this retry was ever implemented, but it seems rather useless and harmful to me. Let's remove it and fail with ENAMETOOLONG instead.",
    "evidence": "osv:CVE-2024-53685",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.234",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.177",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.125",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.70",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-53685",
      "aliases": [
        "CVE-2024-53685"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9030aaf9bf0a1eee47a154c316c789e959638b0f"
                },
                {
                  "fixed": "0f2b2d9e881c90402dbe28f9ba831775b7992e1f"
                },
                {
                  "fixed": "d42ad3f161a5a487f81915c406f46943c7187a0a"
                },
                {
                  "fixed": "e4b168c64da06954be5d520f6c16469b1cadc069"
                },
                {
                  "fixed": "c47ed91156daf328601d02b58d52d9804da54108"
                },
                {
                  "fixed": "99a37ab76a315c8307eb5b0dc095d8ad9d8efeaa"
                },
                {
                  "fixed": "550f7ca98ee028a606aa75705a7e77b1bd11720f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53685.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.34"
                },
                {
                  "fixed": "5.10.234"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.177"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.125"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.70"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53685.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.123621819Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0f2b2d9e881c90402dbe28f9ba831775b7992e1f",
        "https://git.kernel.org/stable/c/550f7ca98ee028a606aa75705a7e77b1bd11720f",
        "https://git.kernel.org/stable/c/99a37ab76a315c8307eb5b0dc095d8ad9d8efeaa",
        "https://git.kernel.org/stable/c/c47ed91156daf328601d02b58d52d9804da54108",
        "https://git.kernel.org/stable/c/d42ad3f161a5a487f81915c406f46943c7187a0a",
        "https://git.kernel.org/stable/c/e4b168c64da06954be5d520f6c16469b1cadc069",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53685.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-53685",
        "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/53xxx/CVE-2024-53685.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-53685",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 492705,
  "published_at": "2025-01-11T12:35:40.252+00:00"
}