{
  "cveId": "CVE-2024-46701",
  "url": "https://patchblox.com/security/cve/CVE-2024-46701",
  "summary": "CVE-2024-46701 is fixed in linux on 1 platform, first by DEBIAN-CVE-2024-46701, released September 13, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "libfs: fix infinite directory reads for offset dir",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  libfs: fix infinite directory reads for offset dir  After we switch tmpfs dir operations from simple_dir_operations to simple_offset_dir_operations, every rename happened will fill new dentry to dest dir\u0027s maple tree(\u0026SHMEM_I(inode)-\u003Edir_offsets-\u003Emt) with a free key starting with octx-\u003Enewx_offset, and then set newx_offset equals to free key \u002B 1. This will lead to infinite readdir combine with rename happened at the same time, which fail generic/736 in xfstests(detail show as below).  1. create 5000 files(1 2 3...) under one dir 2. call readdir(man 3 readdir) once, and get one entry 3. rename(entry, \u0022TEMPFILE\u0022), then rename(\u0022TEMPFILE\u0022, entry) 4. loop 2~3, until readdir return nothing or we loop too many    times(tmpfs break test with the second condition)  We choose the same logic what commit 9b378f6ad48cf (\u0022btrfs: fix infinite directory reads\u0022) to fix it, record the last_index when we open dir, and do not emit the entry which index \u003E= last_index. The file-\u003Eprivate_data now used in offset dir can use directly to do this, and we also update the last_index when we llseek the dir file.  [brauner: only update last_index after seek when offset is zero like Jan suggested]",
  "published": "2024-09-13T07:15:05Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "cwe": "Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)",
  "epss": 0.00189,
  "epssPercentile": 0.08598,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-46701",
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.10.7-1",
      "fix": "DEBIAN-CVE-2024-46701",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-46701",
      "released": "2024-09-13T07:15:05Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.10.7-1",
      "fix": "DEBIAN-CVE-2024-46701",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-46701",
      "released": "2024-09-13T07:15:05Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}