PT-2026-162866

CVE-2026-99899

·

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:
libceph: reject an initial monmap with no monitors
build initial monmap() takes the monitor count straight from ceph options::num mon and builds a monmap with that many entries without checking that there is at least one. ceph parse ips() writes *count only after it has parsed an address successfully, so a ceph options that went through a failed parse still has num mon == 0 and the resulting monmap has no monitors in it at all.
The first thing the client does with that monmap is open a session, and pick new mon() asserts the invariant that it is non-empty:
kernel BUG at net/ceph/mon client.c:211! RIP: 0010:pick new mon net/ceph/mon client.c:211 [inline] RIP: 0010: open session+0x60f/0x740 net/ceph/mon client.c:245 Call Trace: ceph monc open session+0x46/0x60 net/ceph/mon client.c:534 ceph open session+0x135/0x590 net/ceph/ceph common.c:798 ceph real mount fs/ceph/super.c:1173 [inline] ceph get tree+0xd98/0x1fd0 fs/ceph/super.c:1362 vfs get tree+0x92/0x320 fs/super.c:1947 vfs cmd create+0xd7/0x2a0 fs/fsopen.c:231 do sys fsconfig+0x55a/0xcb0 fs/fsopen.c:463
The reproducer gets there through the new device syntax: an fsconfig() mon addr= that does not resolve ("libceph: resolve '127.0.0.' (ret=-3): failed") leaves fsopt->mon addr set but num mon at 0, so the "No monitor address" check in ceph get tree() passes and the mount proceeds with an empty monmap. The next patch stops that string from being kept, but the assertion should not be reachable from a mount option in the first place.
Commit 40480eee361e ("libceph: Reject monmaps advertising zero monitors") made the same BUG ON() unreachable from the wire by rejecting num mon == 0 in ceph monmap decode(). Apply the same rule to the initial monmap, which is the only other way one gets built, and fail the mount with -EINVAL rather than assert afterwards.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾