PT-2026-151582
CVE-2026-99401
·
Publicado
2026-11-19
·
Atualizado
2026-11-19
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:
rtnetlink: wait for RCU readers in rtnl link unregister()
rtnl link ops get() finds ops on link ops under rcu read lock() and only
then takes ops->srcu. rtnl link unregister() unlinks ops, then calls
synchronize srcu() and cleanup srcu struct() without first waiting for
RCU readers. A reader that found ops before list del rcu() and has not yet
taken ops->srcu is not waited for.
Such a reader then locks a cleaned-up srcu struct and keeps using ops
after the module that owns it is gone. rtnl newlink() and
rtnl dump ifinfo() both look up ops without RTNL, the latter for any
user that dumps links filtered by kind.
With delays added between the lookup and srcu read lock() in
rtnl link ops get(), and before rtnl link ops put() in
rtnl dump ifinfo(), running "ip link show type dummy" alongside
"rmmod dummy" on a KASAN kernel gives:
BUG: KASAN: vmalloc-out-of-bounds in srcu read unlock+0x57/0x70
Read of size 8 at addr ffffffffc02ff318 by task ip/147
Call Trace:
srcu read unlock+0x57/0x70
rtnl dump ifinfo.cold+0x30/0x3b
rtnl dumpit+0x7a/0x1b0
netlink dump+0x486/0x11b0
netlink dump start+0x661/0x910
rtnetlink rcv msg+0x611/0x9e0
netlink rcv skb+0x126/0x380
netlink unicast+0x605/0x830
netlink sendmsg+0x6d0/0xbb0
sys sendto+0x335/0x3a0
Call synchronize rcu() before synchronize srcu(), as
rtnl af unregister() already does. This should be enough because
rtnl link ops get() is the only RCU walker of link ops, and it takes
ops->srcu before rcu read unlock(), so every reader that found ops is
covered by synchronize srcu() once the RCU grace period ends. The extra
grace period only costs time at module unload.
Readers and the writer were serialized by RTNL until link ops got its
own mutex, which is why the missing RCU wait did not matter before.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾