{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "dd66df0053ef84add5e684df517aa9b498342381"
            },
            {
              "fixed": "437541c22e9679d2cddb2028e03122d1d0851039"
            },
            {
              "fixed": "fc4fb91ec42f1bb371f17784ac5a928c73f4f739"
            },
            {
              "fixed": "8b03dcc96978da9480c908b5a2fd92e697531e33"
            },
            {
              "fixed": "0c162c18a774ab36c090088d2b27ed9ddb095fa4"
            },
            {
              "fixed": "71975d6e0db17646102488cf54480fda9de0f7a7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.6.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99904.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix longname buffer overflow in ceph_fname_to_usr()\n\nSnapshot longname reconstruction formats \"_\u003cname\u003e_\u003cinode\u003e\" via snprintf()\nand memcpy()s the result into oname-\u003ename.  Checking the length against\nNAME_MAX only protects the LOOKUPNAME/export callers, whose buffer is\nallocated with fscrypt_fname_alloc_buffer(NAME_MAX).  The readdir path\npoints oname-\u003ename straight at the altname in the MDS reply, whose\ncapacity is altname_len; the reconstructed name can exceed that while\nstill fitting under NAME_MAX, overflowing the in-place destination.\n\nSave the actual oname-\u003elen before the decryption overwrites it, and fail\nwith -ENAMETOOLONG when the reconstructed name would not fit.",
  "id": "CVE-2026-99904",
  "modified": "2026-11-30T14:45:39.315680473Z",
  "published": "2026-11-30T13:18:08.522Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0c162c18a774ab36c090088d2b27ed9ddb095fa4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/437541c22e9679d2cddb2028e03122d1d0851039"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/71975d6e0db17646102488cf54480fda9de0f7a7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8b03dcc96978da9480c908b5a2fd92e697531e33"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fc4fb91ec42f1bb371f17784ac5a928c73f4f739"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99904.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99904"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ceph: fix longname buffer overflow in ceph_fname_to_usr()"
}