PT-2026-168760

CVE-2026-143454

·

Published

2026-12-05

·

Updated

2026-12-05

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾