PT-2026-163291
CVE-2026-139250
·
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:
tcp: tcp metrics: use the socket netns, not the dst device netns
tcp get metrics(), tcp get metrics req() and tcpm new() look up and
create metrics entries in the netns of the cached dst device rather than
in the netns of the socket.
These usually match, but not after the device has been moved to another
netns or unregistered: a socket can keep a stale dst in sk dst cache
until it is checked again, and tcp update metrics() reads it with
sk dst get() without any dst check(). Once dst dev put() has run, the
dst device is blackhole netdev and the entry is created in init net.
Before that, for instance for routes through nexthop objects whose
cached dsts are released from a nested RCU callback, it is the netns the
device has just been moved to.
A TCP socket of netns A that enters TIME WAIT in that window then
creates or updates an entry carrying A's addresses and RTT in another
netns, where TCP METRICS CMD GET can dump it and where new connections
to the same peer inherit those metrics.
The metrics belong to the netns of the socket, so use sock net() for
full sockets and request sockets, and pass it to tcpm new().
Kernel sockets that do not hold a netns reference can still reach
tcp time wait() after tcp net metrics exit batch() has flushed the
entries of their dismantling netns, and an entry created then would
never be flushed and would keep a dangling tcpm net. Make tcpm new()
refuse to create entries when check net() fails. Its callers are in
an RCU read-side section, and cleanup net() waits for a grace period
between the refcount reaching zero and the flush, so an entry added
after a successful check is always seen by the flush.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾