CVE-2026-43205 (GCVE-0-2026-43205)

Vulnerability from cvelistv5 – Published: 2026-05-06 11:28 – Updated: 2026-05-06 11:28
VLAI?
Title
dpaa2-switch: validate num_ifs to prevent out-of-bounds write
Summary
In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: validate num_ifs to prevent out-of-bounds write The driver obtains sw_attr.num_ifs from firmware via dpsw_get_attributes() but never validates it against DPSW_MAX_IF (64). This value controls iteration in dpaa2_switch_fdb_get_flood_cfg(), which writes port indices into the fixed-size cfg->if_id[DPSW_MAX_IF] array. When firmware reports num_ifs >= 64, the loop can write past the array bounds. Add a bound check for num_ifs in dpaa2_switch_init(). dpaa2_switch_fdb_get_flood_cfg() appends the control interface (port num_ifs) after all matched ports. When num_ifs == DPSW_MAX_IF and all ports match the flood filter, the loop fills all 64 slots and the control interface write overflows by one entry. The check uses >= because num_ifs == DPSW_MAX_IF is also functionally broken. build_if_id_bitmap() silently drops any ID >= 64: if (id[i] < DPSW_MAX_IF) bmap[id[i] / 64] |= ...
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < a26dda3bae469c8e4e1b1993ad33dafa32d0fc28 (git)
Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < a3034a8d56174dd6464c46823438f25797910a8d (git)
Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < b690635d4719214892855b79ce018d4b1672ac96 (git)
Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < 8b841fd529db9faf8bc678d429d4bf4e98b10900 (git)
Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < 89764cf44544e943230f5e03b8c40a90da26537c (git)
Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < c18493f750208eb4ff1198fc5a02786b8b2d70a6 (git)
Affected: 539dda3c5d190c5088b5e57944b1b482fcb464de , < 8a5752c6dcc085a3bfc78589925182e4e98468c5 (git)
Create a notification for this product.
    Linux Linux Affected: 5.13
Unaffected: 0 , < 5.13 (semver)
Unaffected: 5.15.202 , ≤ 5.15.* (semver)
Unaffected: 6.1.165 , ≤ 6.1.* (semver)
Unaffected: 6.6.128 , ≤ 6.6.* (semver)
Unaffected: 6.12.75 , ≤ 6.12.* (semver)
Unaffected: 6.18.16 , ≤ 6.18.* (semver)
Unaffected: 6.19.6 , ≤ 6.19.* (semver)
Unaffected: 7.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a26dda3bae469c8e4e1b1993ad33dafa32d0fc28",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            },
            {
              "lessThan": "a3034a8d56174dd6464c46823438f25797910a8d",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            },
            {
              "lessThan": "b690635d4719214892855b79ce018d4b1672ac96",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            },
            {
              "lessThan": "8b841fd529db9faf8bc678d429d4bf4e98b10900",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            },
            {
              "lessThan": "89764cf44544e943230f5e03b8c40a90da26537c",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            },
            {
              "lessThan": "c18493f750208eb4ff1198fc5a02786b8b2d70a6",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            },
            {
              "lessThan": "8a5752c6dcc085a3bfc78589925182e4e98468c5",
              "status": "affected",
              "version": "539dda3c5d190c5088b5e57944b1b482fcb464de",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.13"
            },
            {
              "lessThan": "5.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.202",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.165",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.128",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.202",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.165",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.128",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.75",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.16",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.6",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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] |= ..."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-06T11:28:10.270Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a26dda3bae469c8e4e1b1993ad33dafa32d0fc28"
        },
        {
          "url": "https://git.kernel.org/stable/c/a3034a8d56174dd6464c46823438f25797910a8d"
        },
        {
          "url": "https://git.kernel.org/stable/c/b690635d4719214892855b79ce018d4b1672ac96"
        },
        {
          "url": "https://git.kernel.org/stable/c/8b841fd529db9faf8bc678d429d4bf4e98b10900"
        },
        {
          "url": "https://git.kernel.org/stable/c/89764cf44544e943230f5e03b8c40a90da26537c"
        },
        {
          "url": "https://git.kernel.org/stable/c/c18493f750208eb4ff1198fc5a02786b8b2d70a6"
        },
        {
          "url": "https://git.kernel.org/stable/c/8a5752c6dcc085a3bfc78589925182e4e98468c5"
        }
      ],
      "title": "dpaa2-switch: validate num_ifs to prevent out-of-bounds write",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-43205",
    "datePublished": "2026-05-06T11:28:10.270Z",
    "dateReserved": "2026-05-01T14:12:55.992Z",
    "dateUpdated": "2026-05-06T11:28:10.270Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-43205",
      "date": "2026-05-08",
      "epss": "0.00024",
      "percentile": "0.06984"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-43205\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-05-06T12:16:39.747\",\"lastModified\":\"2026-05-06T13:07:51.607\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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] |= ...\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/89764cf44544e943230f5e03b8c40a90da26537c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8a5752c6dcc085a3bfc78589925182e4e98468c5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8b841fd529db9faf8bc678d429d4bf4e98b10900\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a26dda3bae469c8e4e1b1993ad33dafa32d0fc28\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a3034a8d56174dd6464c46823438f25797910a8d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b690635d4719214892855b79ce018d4b1672ac96\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c18493f750208eb4ff1198fc5a02786b8b2d70a6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…