{"schemaVersion":4,"id":"CVE-2026-143454","aliases":[],"status":"published","duplicateOf":null,"title":"RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes","description":"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.","dates":{"published":"2026-12-05T01:41:33.941Z","modified":"2026-12-05T01:41:33.941Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":null,"severity":"unknown","version":null,"versionLabel":null,"source":null,"vector":null,"computed":false,"selection":"none"},"metrics":[]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"linux","product":"linux","name":"Linux","label":"linux","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ e91fb8b9d0edec86a1ef26490bc80af96210863d, < 2398e9e726cca24b2535ba2bb30ec088487602d7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"e91fb8b9d0edec86a1ef26490bc80af96210863d","startInclusive":true,"end":"2398e9e726cca24b2535ba2bb30ec088487602d7","endInclusive":false}},{"text":"≥ e91fb8b9d0edec86a1ef26490bc80af96210863d, < 4a8216314e864d94cbda0c5212aab3fa2020e64c","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"e91fb8b9d0edec86a1ef26490bc80af96210863d","startInclusive":true,"end":"4a8216314e864d94cbda0c5212aab3fa2020e64c","endInclusive":false}},{"text":"≥ e91fb8b9d0edec86a1ef26490bc80af96210863d, < e43913aabd35eef837edef29e93f15e15bdeeacd","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"e91fb8b9d0edec86a1ef26490bc80af96210863d","startInclusive":true,"end":"e43913aabd35eef837edef29e93f15e15bdeeacd","endInclusive":false}},{"text":"6.16","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"6.16","startInclusive":true,"end":"6.16","endInclusive":true}}],"versionsText":"≥ e91fb8b9d0edec86a1ef26490bc80af96210863d, < 2398e9e726cca24b2535ba2bb30ec088487602d7 | ≥ e91fb8b9d0edec86a1ef26490bc80af96210863d, < 4a8216314e864d94cbda0c5212aab3fa2020e64c | ≥ e91fb8b9d0edec86a1ef26490bc80af96210863d, < e43913aabd35eef837edef29e93f15e15bdeeacd | 6.16","eol":null,"hubHref":"/vendor/linux/linux"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://git.kernel.org/stable/c/2398e9e726cca24b2535ba2bb30ec088487602d7","label":"git.kernel.org/stable/c/2398e9e726cca24b2535ba2bb30ec088487602d7","hostname":"git.kernel.org","tags":[]},{"url":"https://git.kernel.org/stable/c/4a8216314e864d94cbda0c5212aab3fa2020e64c","label":"git.kernel.org/stable/c/4a8216314e864d94cbda0c5212aab3fa2020e64c","hostname":"git.kernel.org","tags":[]},{"url":"https://git.kernel.org/stable/c/e43913aabd35eef837edef29e93f15e15bdeeacd","label":"git.kernel.org/stable/c/e43913aabd35eef837edef29e93f15e15bdeeacd","hostname":"git.kernel.org","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-05T01:41:33.941Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"priority":{"label":"insufficient-evidence","tag":null,"reason":"No CVSS vector published; no exploitation reported by the 5 checked sources","nextStep":"Check the vendor advisory","rank":[0,0,0,0,0,0],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[],"epss":{"value":null,"date":null,"stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:14:32.819Z","stale":false,"partial":false}}