Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Validate priority in STEERING_ANCHOR_CREATE handler In MLX5_IB_METHOD_STEERING_ANCHOR_CREATE, the user-supplied u16 priority is passed directly to _get_flow_table() without an upper bound check. This can lead to out-of-bounds array accesses on dev->flow_db priority tables. Check that priority does not exceed MLX5_IB_FLOW_LAST_PRIO before calling _get_flow_table(), matching the existing validation in raw_fs_rule_add() and mlx5_ib_create_flow().
Affected products and versions
Linux Linux0c6ab0ca9a662d4ca9742d97156bac0d3067d72d – < 357fb1ceda23d7c2edcfeed65f27f3047c29c970 · 0c6ab0ca9a662d4ca9742d97156bac0d3067d72d – < c0c910987bef7c332cc7ee2004605e390122b802 · 0c6ab0ca9a662d4ca9742d97156bac0d3067d72d – < 1659d8362cd29c6ae962628f7438a8eb3def2302 · 0c6ab0ca9a662d4ca9742d97156bac0d3067d72d – < bb75e5580b15cd23ededf15683a5ad67d7b61aabFixed in: 357fb1ceda23d7c2edcfeed65f27f3047c29c970 · c0c910987bef7c332cc7ee2004605e390122b802 · 1659d8362cd29c6ae962628f7438a8eb3def2302 · bb75e5580b15cd23ededf15683a5ad67d7b61aab
Linux Linux6.0Fixed in: 6.12.120 · 6.18.66 · 7.3.6 · 7.4-rc1
References
- git.kernel.org/stable/c/357fb1ceda23d7c2edcfeed65f27f3047c29c970
- git.kernel.org/stable/c/c0c910987bef7c332cc7ee2004605e390122b802
- git.kernel.org/stable/c/1659d8362cd29c6ae962628f7438a8eb3def2302
- git.kernel.org/stable/c/bb75e5580b15cd23ededf15683a5ad67d7b61aab
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.