PT-2026-166541

CVE-2026-142818

·

Publicado

2026-12-03

·

Atualizado

2026-12-03

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:
ns: don't add init ipc ns and init net without namespace support
When CONFIG IPC NS or CONFIG NET NS are turned off we still add the initial ipc and network namespace to the namespace trees. ipc ns init() calls ns tree add(&init ipc ns) whenever CONFIG SYSVIPC is set and setup net() calls ns tree add raw() on init net whenever CONFIG NET is set.
But without CONFIG IPC NS and CONFIG NET NS these aren't namespaces userspace can do anything with. They don't have proc ns operations so there's no /proc//ns/{ipc,net} for them, nsfs fh to dentry() refuses them with -EOPNOTSUPP, and since ns->ops is NULL ns tree add raw() doesn't add them to the owner list of init user ns either. So they end up half registered. That's also not how we treat any of the other namespace types. Without CONFIG UTS NS, CONFIG PID NS, CONFIG TIME NS or CONFIG USER NS the initial namespace is never added to the tree.
listns() walks the unified tree and calls is current namespace() for every namespace it finds via may list ns(). But is current namespace() only knows about CLONE NEWIPC and CLONE NEWNET if CONFIG IPC NS and CONFIG NET NS are set. Otherwise we end up in the default case and its VFS WARN ON ONCE(). Any unprivileged caller can trigger that with a plain listns() call:
WARNING: CPU: 0 PID: 526 at fs/nsfs.c:508 is current namespace+0x12f/0x440 Call Trace: legitimize ns+0x25f/0x4c0 do listns+0x185/0x5c0 do sys listns+0x13b/0x300
Instead of teaching is current namespace() about namespaces that can't be opened, only add the initial namespaces to the tree if their namespace type is enabled. Move the registration of init ipc ns into ipc/namespace.c which is only built with CONFIG IPC NS. That also fixes CONFIG SYSVIPC=n, CONFIG POSIX MQUEUE=y, CONFIG IPC NS=y where ipc/shm.c isn't built and init ipc ns was never added at all. For the network namespace only call ns tree add raw() if CONFIG NET NS is set. Without CONFIG NET NS cleanup net() isn't built and init net is never removed so there's nothing to balance.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾