AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
dpaa2-switchドライバーでファームウェアから受け取るnum_ifsの値が検証されておらず、範囲外への書き込みが起きる可能性があります。影響を受けるのはLinux kernelの5.13以降の一部版で、5.15.202、6.1.165、6.6.128、6.12.75、6.18.16、6.19.6以降に修正されています。該当する版を使っている場合は、修正版へのアップデートを行ってください。
Linuxカーネルのdpaa2-switchドライバにおける境界外書き込み脆弱性
dpaa2-switchドライバのdpaa2_switch_fdb_get_flood_cfg()関数
不正なファームウェア入力により境界外書き込みが発生する可能性があるため、重要
dpaa2_switch_init()関数にnum_ifsの境界チェックを追加
なし
dpsw_get_attributes()が返すnum_ifs値がDPSW_MAX_IF未満であることを確認
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxKernel |
≥ 5.13.0, < 5.15.202→ 5.15.202 ≥ 5.16.0, < 6.1.165→ 6.1.165 ≥ 6.2.0, < 6.6.128→ 6.6.128 ≥ 6.7.0, < 6.12.75→ 6.12.75 ≥ 6.13.0, < 6.18.16→ 6.18.16 ≥ 6.19.0, < 6.19.6→ 6.19.6 |
5.15.202 6.1.165 6.6.128 6.12.75 6.18.16 6.19.6 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-43205 linux-lts Fix available
- Debian DEBIAN-CVE-2026-43205 linux Fix available
- Ubuntu UBUNTU-CVE-2026-43205 linux-xilinx-zynqmp, linux-xilinx, linux-riscv-6.8 +47 more Fix available
Original description The description as published by the source.
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] |= ...
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com