{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-53420",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2023-53420"
  ],
  "published": "2025-09-18T16:08:26Z",
  "summary": "ntfs: Fix panic about slab-out-of-bounds caused by ntfs_listxattr()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: Fix panic about slab-out-of-bounds caused by ntfs_listxattr()\n\nHere is a BUG report from syzbot:\n\nBUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:191 [inline]\nBUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x401/0x570 fs/ntfs3/xattr.c:710\nRead of size 1 at addr ffff888021acaf3d by task syz-executor128/3632\n\nCall Trace:\n ntfs_list_ea fs/ntfs3/xattr.c:191 [inline]\n ntfs_listxattr+0x401/0x570 fs/ntfs3/xattr.c:710\n vfs_listxattr fs/xattr.c:457 [inline]\n listxattr+0x293/0x2d0 fs/xattr.c:804\n\nFix the logic of ea_all iteration. When the ea->name_len is 0,\nreturn immediately, or Add2Ptr() would visit invalid memory\nin the next loop.\n\n[almaz.alexandrovich@paragon-software.com: lines of the patch have changed]",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.21-1+rpt1"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v6",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7l",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v8",
            "binary_version": "1:6.1.21-1+rpt1"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.21-1+rpt1": {
            "linux_commit": "0afb5e98488aed7017b9bf321b575d0177feb7ed",
            "upstream_version": "6.1.21",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.39"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-53420"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f3380d895e28a32632eb3609f5bd515adee4e5a1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c86a2517df6c9304db8fb12b77136ec7a5d85994"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/721b75ea2dfce53a8890dff92ae01afca8e74f88"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3c675ddffb17a8b1e32efad5c983254af18b12c2"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:24:39Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.1,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The bug is in ntfs3 on-disk EA parsing reached via the listxattr syscall (ntfs_listxattr \u2192 ntfs_list_ea) on a mounted NTFS volume; malicious ATTR_EA data comes from the filesystem image, not from network protocol input.\nAC:L - A crafted NTFS image with a zero name_len EA reliably triggers the out-of-bounds read on listxattr with no race or other conditions outside the attacker\u2019s control.\nPR:L - vfs_listxattr does not require MAY_READ\u2014only path traversal and LSM listxattr hooks\u2014so an unprivileged local user who can reach a file on a mounted NTFS volume can invoke the vulnerable path.\nUI:N - Once an NTFS volume is mounted (common for removable/dual-boot/shared storage), the attacker triggers the bug solely by calling listxattr; no further victim interaction is required.\nS:U - Impact is confined to the local kernel\u2019s memory/availability authority; this is standard kernel memory-safety impact with no VM, IOMMU, or other security-authority boundary crossed.\nC:H - The slab OOB read in ntfs_list_ea can read past the kmalloc\u2019d EA buffer and, on continued iteration, memcpy attacker-influenced lengths of adjacent slab memory into the listxattr buffer that is copied to userspace.\nI:N - The defect is an out-of-bounds read only; memcpy destinations are the legitimate list buffer under a size check, with no OOB write or other kernel integrity corruption primitive.\nA:H - The OOB access causes KASAN reports and can oops/panic the kernel when invalid EA iteration touches unmapped or poisoned slab memory, enabling denial of service."
    }
  }
}
