PT-2026-163718

CVE-2026-139677

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

Pontuação
N/A
Não disponível

Nã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:
kernfs: don't hold kernfs rwsem across dir emit()
kernfs fop readdir() holds kernfs rwsem for reading across the whole listing, dir emit() included. dir emit() copies to userspace, so it can fault into reclaim while holding the lock that every create, remove and rename in the hierarchy needs. sysfs and cgroupfs have one per machine.
Under memory pressure the monitoring daemons fault on their own getdents(2) buffer with it held:
below: page allocation stall for 120 secs: order:0,
mode:0x140dca(GFP HIGHUSER MOVABLE| GFP ZERO| GFP COMP)
nodemask=(null),cpuset=hostcritical.slice,mems allowed=0
Call Trace:
 <TASK>
 dump stack lvl+0x5d/0x80
  alloc frozen pages noprof+0x5f4d/0x6300
 ? memcg list lru alloc+0x73/0x320
 ? ima file check+0xd0/0x7d0
 vma alloc folio noprof+0x145/0x560
 handle mm fault+0x17c9/0x2720
 ? find vma+0x27/0x30
 do user addr fault+0x39f/0x6e0
 exc page fault+0x8f/0x110
 asm exc page fault+0x22/0x30
RIP: 0010:filldir64+0xd7/0x1a0
[Code:/RSP:/RAX:..R15: register block elided]
 kernfs fop readdir+0x2de/0x420
 iterate dir+0x8c/0x1f0
  se sys getdents64+0x61/0xe0
 ? copy page from iter+0x860/0x860
 do syscall 64+0x6a/0x250
 entry SYSCALL 64 after hwframe+0x4b/0x53
 </TASK>
Commit 9aab10a0249e ("kernfs: Don't re-lock kernfs root::kernfs rwsem in kernfs fop readdir().") took the lock drop out because dir emit() was handed kernfs node::name, which a rename can free. The previous patch emits a copy instead, so drop the lock around dir emit().
A listing is no longer atomic within one getdents(2) call, which for most sysfs and cgroup directories is all of it. POSIX leaves that unspecified for an entry added or removed since opendir(3).
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾