{
  "affected": [
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:13",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.12.117-1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:14",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.3.4-1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "details": "In the Linux kernel, the following vulnerability has been resolved:  statmount: don't copy the reserved empty string past the buffer  statmount_string() reserves an empty string at the start of the seq buffer before it calls the handler for the requested string. That's what the offsets of unset strings point to since commit e52e97f09fb6 (\"statmount: let unset strings be empty\").  If the handler emits nothing the early return from commit 75ead69a7173 (\"fs: don't let statmount return empty strings\") skips the size check against the caller's buffer. Back then an empty emission meant an empty seq buffer and there was nothing to copy. Now the reserved NUL byte is there and copy_statmount_to_user() copies it to buf + sizeof(struct statmount) no matter how small bufsize is.  So request a string that may turn out empty with a buffer that's smaller than struct statmount and the kernel writes one zero byte past the caller's buffer and reports a size that's larger than the buffer. STATMOUNT_MNT_UIDMAP or STATMOUNT_MNT_GIDMAP on a mount that isn't idmapped will do, so will STATMOUNT_FS_SUBTYPE on anything but fuse or STATMOUNT_OPT_ARRAY on a filesystem without -\u003eshow_options(). None of this needs privileges. The byte only lands in the caller's own address space but that's still not ok.  prepare_kstatmount() already refuses a buffer of exactly sizeof(struct statmount) for string requests. A smaller buffer can't hold a string either and it can't even hold the reserved empty string. So refuse any buffer that isn't larger than the fixed part. That's also what the uapi header says: string requests need space after the fixed part of the structure.  Reproducer, unprivileged, on any mount that isn't idmapped:      #define _GNU_SOURCE     #include \u003cerrno.h\u003e     #include \u003cfcntl.h\u003e     #include \u003cstdint.h\u003e     #include \u003cstdio.h\u003e     #include \u003cstring.h\u003e     #include \u003csys/mman.h\u003e     #include \u003csys/syscall.h\u003e     #include \u003cunistd.h\u003e     #define STATMOUNT_FS_SUBTYPE\t0x00000100U     #define STATMOUNT_MNT_UIDMAP\t0x00002000U     #define STATX_MNT_ID_UNIQUE\t0x00004000U     #define SM_SIZE\t\t\t512 /* sizeof(struct statmount) */     struct mnt_id_req {     \tuint32_t size, mnt_ns_fd;     \tuint64_t mnt_id, param, mnt_ns_id;     };     static uint64_t root_mnt_id(void)     {     \tunsigned char stx[256]; /* struct statx, stx_mnt_id at offset 144 */     \tuint64_t id;     \tif (syscall(__NR_statx, AT_FDCWD, \"/\", 0, STATX_MNT_ID_UNIQUE, stx))     \t\t_exit(1);     \tmemcpy(\u0026id, stx + 144, sizeof(id));     \treturn id;     }     static void probe(uint64_t mnt_id, uint64_t mask, int guard)     {     \tstruct mnt_id_req req = {     \t\t.size = sizeof(req), .mnt_id = mnt_id, .param = mask,     \t};     \tlong page = sysconf(_SC_PAGESIZE);     \tunsigned char *map, *buf;     \tuint32_t size;     \tlong ret;     \tmap = mmap(NULL, 2 * page, PROT_READ | PROT_WRITE,     \t\t   MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);     \tmemset(map, 0xaa, 2 * page);     \t/* 100 byte buffer ending right at the page boundary */     \tbuf = map + page - 100;     \tif (guard)     \t\tmprotect(map + page, page, PROT_NONE);     \terrno = 0;     \tret = syscall(__NR_statmount, \u0026req, buf, 100, 0);     \tprintf(\"mask 0x%04llx%s: ret %ld errno %d\", (unsigned long long)mask,     \t       guard ? \" guard page\" : \"\", ret, errno);     \tif (!guard) {     \t\tmemcpy(\u0026size, buf, sizeof(size));     \t\tprintf(\", size 0x%x, byte[%d] 0x%02x\", size, SM_SIZE,     \t\t       buf[SM_SIZE]);     \t}     \tprintf(\"\\n\");     \tmunmap(map, 2 * page);     }     int main(void)     {     \tuint64_t id = root_mnt_id();     \tprobe(id, STATMOUNT_MNT_UIDMAP, 0);     \tprobe(id, STATMOUNT_FS_SUBTYPE, 0);     \tprobe(id, STATMOUNT_MNT_UIDMAP, 1);     \treturn 0;     }  Before, on 7.3.0-rc7-00252-g4e3259b08c54 (vfs.fixes) in a VM, the same on a distro 7.1.13:      mask 0x2000: ret 0 errno 0, size 0x65, byte[512] 0x00     mask 0x0100: ret 0 errno 0, size 0x65, byte[512] 0x00     mask 0x2000 guard page: ret -1 errno 14  After:      mask 0x2000: ret -1 er ---truncated---",
  "id": "DEBIAN-CVE-2026-99952",
  "modified": "2026-12-01T03:47:30.819807363Z",
  "published": "2026-11-30T14:20:32.530Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://security-tracker.debian.org/tracker/CVE-2026-99952"
    }
  ],
  "upstream": [
    "CVE-2026-99952"
  ]
}