CVE-2026-143454: RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes

Published Dec 5, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

RDMA/mlx5: Use DEFINERAWFLEX for leftovers flow attributes

Commit e91fb8b9d0ed ("RDMA/mlx5: Avoid flexible array warning") split the leftoversspecs[] array into two separate structs to silence the sparse "array of flexible structures" warning, but in doing so reversed the member order: ethflow was placed before flowattr.

createflowrule() locates the flow specs with:

ibflow = (void )flowattr + sizeof(flowattr);

which expects the spec data to immediately follow the ibflowattr. With the reversed order, flowattr is the last member, so ibflow points past the end of the struct and the numofspecs = 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 DEFINERAWFLEX(), which declares an on-stack struct ibflowattr with a properly sized trailing flows[] array. The ETH spec lives in flows[0].eth at exactly the offset createflowrule() 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 5, 2026
CVE Published
via MITRE·01:41 AM
Data Sourced
via MITRE·01:41 AM
Description

Frequently Asked Questions

1

What systems are realistically exposed to this issue?

Systems running an affected Linux kernel and using the RDMA/mlx5 driver path that creates the affected leftovers flow rules are exposed. The issue occurs in _create_flow_rule() when it processes the malformed leftovers flow-attribute layout.

2

What is the practical impact if the vulnerable code path is reached?

The driver reads out-of-bounds memory while processing one flow specification. This can create incorrect flow rules or crash the system.

3

How can I tell whether a kernel contains the fix?

Check whether the kernel includes one of the referenced stable commits: 2398e9e726cca24b2535ba2bb30ec088487602d7, 4a8216314e864d94cbda0c5212aab3fa2020e64c, or e43913aabd35eef837edef29e93f15e15bdeeacd. The fix rebuilds the leftovers attributes with DEFINE_RAW_FLEX() so the Ethernet flow specification follows ib_flow_attr at the expected offset.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203