{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "539dda3c5d190c5088b5e57944b1b482fcb464de"
            },
            {
              "fixed": "a26dda3bae469c8e4e1b1993ad33dafa32d0fc28"
            },
            {
              "fixed": "a3034a8d56174dd6464c46823438f25797910a8d"
            },
            {
              "fixed": "b690635d4719214892855b79ce018d4b1672ac96"
            },
            {
              "fixed": "8b841fd529db9faf8bc678d429d4bf4e98b10900"
            },
            {
              "fixed": "89764cf44544e943230f5e03b8c40a90da26537c"
            },
            {
              "fixed": "c18493f750208eb4ff1198fc5a02786b8b2d70a6"
            },
            {
              "fixed": "8a5752c6dcc085a3bfc78589925182e4e98468c5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.13.0"
            },
            {
              "fixed": "5.15.202"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.165"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.128"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.75"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43205.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndpaa2-switch: validate num_ifs to prevent out-of-bounds write\n\nThe driver obtains sw_attr.num_ifs from firmware via dpsw_get_attributes()\nbut never validates it against DPSW_MAX_IF (64). This value controls\niteration in dpaa2_switch_fdb_get_flood_cfg(), which writes port indices\ninto the fixed-size cfg-\u003eif_id[DPSW_MAX_IF] array. When firmware reports\nnum_ifs \u003e= 64, the loop can write past the array bounds.\n\nAdd a bound check for num_ifs in dpaa2_switch_init().\n\ndpaa2_switch_fdb_get_flood_cfg() appends the control interface (port\nnum_ifs) after all matched ports. When num_ifs == DPSW_MAX_IF and all\nports match the flood filter, the loop fills all 64 slots and the control\ninterface write overflows by one entry.\n\nThe check uses \u003e= because num_ifs == DPSW_MAX_IF is also functionally\nbroken.\n\nbuild_if_id_bitmap() silently drops any ID \u003e= 64:\n      if (id[i] \u003c DPSW_MAX_IF)\n          bmap[id[i] / 64] |= ...",
  "id": "CVE-2026-43205",
  "modified": "2026-07-08T05:38:30.278211778Z",
  "published": "2026-05-06T11:28:10.270Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/89764cf44544e943230f5e03b8c40a90da26537c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a5752c6dcc085a3bfc78589925182e4e98468c5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8b841fd529db9faf8bc678d429d4bf4e98b10900"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a26dda3bae469c8e4e1b1993ad33dafa32d0fc28"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a3034a8d56174dd6464c46823438f25797910a8d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b690635d4719214892855b79ce018d4b1672ac96"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c18493f750208eb4ff1198fc5a02786b8b2d70a6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43205.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-43205"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "dpaa2-switch: validate num_ifs to prevent out-of-bounds write"
}