{
  "affected": [
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:12",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "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:  fs/ntfs3: fix integer overflow in find_log_rec() causing OOB read  find_log_rec() validates the on-disk LFS_RECORD_HDR.client_data_len field (`len`, a raw u32 read straight from a mounted $LogFile page) against the log's total available space:      len = le32_to_cpu(rh-\u003eclient_data_len);     rec_len = len + log-\u003erecord_header_len;     if (rec_len \u003e= log-\u003etotal_avail)             return -EINVAL;  The addition is unchecked. For len in [0xffffffd0, 0xffffffff] (i.e. log-\u003erecord_header_len away from UINT_MAX), `rec_len` wraps to a small u32 value that trivially clears the `rec_len \u003e= log-\u003etotal_avail` guard, so a record whose declared length is actually ~4 GiB is reported as valid and in-page.  Because find_log_rec() wrongly accepts the record, its caller read_log_rec_lcb() hands it back to log_replay() as good. On the transaction-table replay leg, log_replay() re-derives the record length directly from the same raw, still-unclamped client_data_len field and uses it to size the restart-table blob:      rec_len = le32_to_cpu(frh-\u003eclient_data_len);   /* ~0xffffffff */     ...     t16 = le16_to_cpu(lrh-\u003eredo_off);     rt  = Add2Ptr(lrh, t16);     t32 = rec_len - t16;                            /* still ~4 GiB */     if (!check_rstbl(rt, t32))             return -EINVAL;  check_rstbl()'s own `bytes \u003c ts` bounds guard is defeated because the caller-supplied `bytes` (t32) is itself the poisoned ~4 GiB value, so the guard can never trigger. The subsequent entry-validation loop then walks `rt-\u003eused` (also attacker-controlled) entries of sizeof(struct RESTART_TABLE) == 0x18 bytes each straight past the end of the kmalloc(log-\u003epage_size) log-page buffer allocated in read_log_page(), producing an out-of-bounds read that is reachable simply by mounting a crafted $LogFile (no genuine dirty-page / crash-recovery state is required). Confirmed via KASAN as a slab-out-of-bounds read in check_rstbl(), called from log_replay() -\u003e ntfs_loadlog_and_replay() -\u003e ntfs_fill_super() -\u003e mount(2).  Fix the root cause instead of hardening every downstream consumer of the poisoned length: make the addition in find_log_rec() overflow-safe with check_add_overflow(), mirroring the pattern fs/ntfs3/run.c already uses to validate other attacker-controlled on-disk length/offset arithmetic decoded from MAPPING_PAIRS runs, e.g.:      if (check_add_overflow(vcn64, len, \u0026next_vcn))             return -EINVAL;     ...     if (check_add_overflow(lcn, len, \u0026lcn_end))             return -EINVAL;  (fs/ntfs3/run.c, run_unpack()).  With the overflow rejected instead of silently wrapped, `rec_len` is only ever a true, non-wrapped sum, so the existing `rec_len \u003e= log-\u003etotal_avail` check now correctly rejects any oversized record up front. log_replay()'s transaction-table leg then never gets a chance to re-read the poisoned client_data_len, and check_rstbl() is never invoked with an attacker-inflated `bytes` for this path.  Verified on a v6.19 KASAN build: mounting a crafted $LogFile whose client_data_len overflows trips a KASAN slab-out-of-bounds-read report in check_rstbl() before this fix; with check_add_overflow() applied, the same image is cleanly rejected during log replay and no KASAN report fires.",
  "id": "DEBIAN-CVE-2026-138947",
  "modified": "2026-12-01T03:47:40.131855768Z",
  "published": "2026-11-30T14:17:55.933Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://security-tracker.debian.org/tracker/CVE-2026-138947"
    }
  ],
  "upstream": [
    "CVE-2026-138947"
  ]
}