PT-2026-168760
CVE-2026-143454
·
Publicado
2026-12-05
·
Atualizado
2026-12-05
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:
RDMA/mlx5: Use DEFINE RAW FLEX for leftovers flow attributes
Commit e91fb8b9d0ed ("RDMA/mlx5: Avoid flexible array warning") split
the leftovers specs[] array into two separate structs to silence the
sparse "array of flexible structures" warning, but in doing so reversed
the member order: eth flow was placed before flow attr.
create flow rule() locates the flow specs with:
ib flow = (void *)flow attr + sizeof(*flow attr);
which expects the spec data to immediately follow the ib flow attr.
With the reversed order, flow attr is the last member, so ib flow
points past the end of the struct and the num of specs = 1 loop reads
out-of-bounds memory (whatever static data follows in the .data
section), producing incorrect flow rules or a crash.
Rebuild the leftovers attributes with DEFINE RAW FLEX(), which declares
an on-stack struct ib flow attr with a properly sized trailing flows[]
array. The ETH spec lives in flows[0].eth at exactly the offset
create flow rule() expects, so no layout-dependent composite struct is
needed. This also avoids embedding a structure that contains a flexible
array member as a non-last member, which would trigger
-Wflex-array-member-not-at-end once the warning is enabled.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾