{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143454","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.376Z","datePublished":"2026-12-05T01:41:33.941Z","dateUpdated":"2026-12-05T01:41:33.941Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-05T01:41:33.941Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes\n\nCommit e91fb8b9d0ed (\"RDMA/mlx5: Avoid flexible array warning\") split\nthe leftovers_specs[] array into two separate structs to silence the\nsparse \"array of flexible structures\" warning, but in doing so reversed\nthe member order: eth_flow was placed before flow_attr.\n\n_create_flow_rule() locates the flow specs with:\n\n    ib_flow = (void *)flow_attr + sizeof(*flow_attr);\n\nwhich expects the spec data to immediately follow the ib_flow_attr.\nWith the reversed order, flow_attr is the last member, so ib_flow\npoints past the end of the struct and the num_of_specs = 1 loop reads\nout-of-bounds memory (whatever static data follows in the .data\nsection), producing incorrect flow rules or a crash.\n\nRebuild the leftovers attributes with DEFINE_RAW_FLEX(), which declares\nan on-stack struct ib_flow_attr with a properly sized trailing flows[]\narray.  The ETH spec lives in flows[0].eth at exactly the offset\n_create_flow_rule() expects, so no layout-dependent composite struct is\nneeded.  This also avoids embedding a structure that contains a flexible\narray member as a non-last member, which would trigger\n-Wflex-array-member-not-at-end once the warning is enabled."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/fs.c"],"versions":[{"version":"e91fb8b9d0edec86a1ef26490bc80af96210863d","lessThan":"2398e9e726cca24b2535ba2bb30ec088487602d7","status":"affected","versionType":"git"},{"version":"e91fb8b9d0edec86a1ef26490bc80af96210863d","lessThan":"4a8216314e864d94cbda0c5212aab3fa2020e64c","status":"affected","versionType":"git"},{"version":"e91fb8b9d0edec86a1ef26490bc80af96210863d","lessThan":"e43913aabd35eef837edef29e93f15e15bdeeacd","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/fs.c"],"versions":[{"version":"6.16","status":"affected"},{"version":"0","lessThan":"6.16","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/2398e9e726cca24b2535ba2bb30ec088487602d7"},{"url":"https://git.kernel.org/stable/c/4a8216314e864d94cbda0c5212aab3fa2020e64c"},{"url":"https://git.kernel.org/stable/c/e43913aabd35eef837edef29e93f15e15bdeeacd"}],"title":"RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes","x_generator":{"engine":"bippy-1.2.0"}}}}