PT-2026-162988
CVE-2026-138947
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
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->client data len);
rec len = len + log->record header len;
if (rec len >= log->total avail)
return -EINVAL;
The addition is unchecked. For len in [0xffffffd0, 0xffffffff] (i.e.
log->record header len away from UINT MAX),
rec len wraps to a small
u32 value that trivially clears the rec len >= log->total 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->client data len); /* ~0xffffffff /
...
t16 = le16 to cpu(lrh->redo off);
rt = Add2Ptr(lrh, t16);
t32 = rec len - t16; / still ~4 GiB */
if (!check rstbl(rt, t32))
return -EINVAL;
check rstbl()'s own
bytes < 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->used (also attacker-controlled) entries of
sizeof(struct RESTART TABLE) == 0x18 bytes each straight past the end
of the kmalloc(log->page 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() ->
ntfs loadlog and replay() -> ntfs fill super() -> 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, &next vcn))
return -EINVAL;
...
if (check add overflow(lcn, len, &lcn 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 >= log->total 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.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾