PT-2026-163496
CVE-2026-139455
·
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:
cxl/core: Hold the dport host lock across dport lookup and use
Callers of cxl pci find port() and cxl mem find port() can be handed a
'struct cxl dport' that is already freed, and all four dereference it
without the lock that would prevent that.
A dport is kzalloc()'d into a devres group on its host device, so it dies
when that host unbinds. The host is &port->dev for a switch port and
port->uport dev for the root port.
Both helpers return the dport through an output parameter. The caller's
port reference pins struct cxl port, not the dport allocation, and the
lookup itself is a bare xa load() under no lock.
Add cxl port dport host() to name the device that pins a dport, and
cxl pci find dport() / cxl mem find dport() to look one up with that
device's lock held and asserted. Convert the four callers to use them and
bail if the dport is gone. cxl port add dport() already follows this rule.
cxl mem probe() chose its endpoint devm host from dport->rch, which meant
dereferencing the dport before taking any lock. Use cxl port dport host():
rch dports only ever land on the root port, so it selects the same device
without needing the dport.
With every caller converted, the dport output parameter of
cxl pci find port() and cxl mem find port() is unused. Drop it.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾