{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e91fb8b9d0edec86a1ef26490bc80af96210863d"
            },
            {
              "fixed": "2398e9e726cca24b2535ba2bb30ec088487602d7"
            },
            {
              "fixed": "4a8216314e864d94cbda0c5212aab3fa2020e64c"
            },
            {
              "fixed": "e43913aabd35eef837edef29e93f15e15bdeeacd"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143454.json"
  },
  "details": "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.",
  "id": "CVE-2026-143454",
  "modified": "2026-12-05T02:45:53.024278628Z",
  "published": "2026-12-05T01:41:33.941Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2398e9e726cca24b2535ba2bb30ec088487602d7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4a8216314e864d94cbda0c5212aab3fa2020e64c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e43913aabd35eef837edef29e93f15e15bdeeacd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143454.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143454"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "RDMA/mlx5: Use DEFINE_RAW_FLEX for leftovers flow attributes"
}