mlxsw: spectrum_acl_tcam: Fix stack corruption
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 34 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix stack corruption When tc filters are first added to a net device, the corresponding local port gets bound to an ACL group in the device. The group contains a list of ACLs. In turn, each ACL points to a different TCAM region where the filters are stored. During forwarding, the ACLs are sequentially evaluated until a match is found. One reason to place filters in different regions is when they are added with decreasing priorities and in an alternating order so that two consecutive filters can never fit in the same region because of their key usage. In Spectrum-2 and newer ASICs the firmware started to report that the maximum number of ACLs in a group is more than 16, but the layout of the register that configures ACL groups (PAGT) was not updated to account for that. It is therefore possible to hit stack corruption [1] in the rare case where more than 16 ACLs in a group are required. Fix by limiting the maximum ACL group size to the minimum between what the firmware reports and the maximum ACLs that fit in the PAGT register. Add a test case to make sure the machine does not crash when this condition is hit. [1] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: mlxsw_sp_acl_tcam_group_update+0x116/0x120 [...] dump_stack_lvl+0x36/0x50 panic+0x305/0x330 __stack_chk_fail+0x15/0x20 mlxsw_sp_acl_tcam_group_update+0x116/0x120 mlxsw_sp_acl_tcam_group_region_attach+0x69/0x110 mlxsw_sp_acl_tcam_vchunk_get+0x492/0xa20 mlxsw_sp_acl_tcam_ventry_add+0x25/0xe0 mlxsw_sp_acl_rule_add+0x47/0x240 mlxsw_sp_flower_replace+0x1a9/0x1d0 tc_setup_cb_add+0xdc/0x1c0 fl_hw_replace_filter+0x146/0x1f0 fl_change+0xc17/0x1360 tc_new_tfilter+0x472/0xb90 rtnetlink_rcv_msg+0x313/0x3b0 netlink_rcv_skb+0x58/0x100 netlink_unicast+0x244/0x390 netlink_sendmsg+0x1e4/0x440 ____sys_sendmsg+0x164/0x260 ___sys_sendmsg+0x9a/0xe0 __sys_sendmsg+0x7a/0xc0 do_syscall_64+0x40/0xe0 entry_SYSCALL_64_after_hwframe+0x63/0x6b
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.19 and later | 5.10.209, 5.15.148, 6.1.79, 6.6.14, 6.7.2, 6.8 | Patch available | CNA |
- Linux VendorLinux Affected 4.19 and later Fixed in 5.10.209, 5.15.148, 6.1.79, 6.6.14, 6.7.2, 6.8 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.19.0 to before 5.10.209; 5.11.0 to before 5.15.148; 5.16.0 to before 6.1.79; 6.2.0 to before 6.6.14; 6.7.0 to before 6.7.2 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.19.0 to before 5.10.209; 5.11.0 to before 5.15.148; 5.16.0 to before 6.1.79; 6.2.0 to before 6.6.14; 6.7.0 to before 6.7.2 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.10.209, 5.15.148, 6.1.79, 6.6.14, 6.7.2, 6.8
Red Hat 13 advisories
- RHSA-2024:5101 Released 2024-08-08 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.16.1.el8_10, kernel-4.18.0-553.16.1.el8_10, kernel-abi-stablelists-4.18.0-553.16.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.16.1.el8_10
- RHSA-2024:5102 Released 2024-08-08 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-4.18.0-553.16.1.rt7.357.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-4.18.0-553.16.1.rt7.357.el8_10 +7
- RHSA-2024:3810 Released 2024-06-11 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-tools-libs-devel-4.18.0-477.58.1.el8_8
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) bpftool-4.18.0-477.58.1.el8_8, kernel-4.18.0-477.58.1.el8_8, kernel-abi-stablelists-4.18.0-477.58.1.el8_8 +19
Show 10 more Red Hat advisories
- RHSA-2024:3421 Released 2024-05-28 · Red Hat rating Importantkernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.9.0) kernel-tools-libs-devel-5.14.0-70.101.1.el9_0
- Red Hat Enterprise Linux AppStream EUS (v.9.0) kernel-debug-devel-5.14.0-70.101.1.el9_0, kernel-debug-devel-matched-5.14.0-70.101.1.el9_0, kernel-devel-5.14.0-70.101.1.el9_0 +5
- Red Hat Enterprise Linux BaseOS EUS (v.9.0) bpftool-5.14.0-70.101.1.el9_0, kernel-5.14.0-70.101.1.el9_0, kernel-abi-stablelists-5.14.0-70.101.1.el9_0 +14
- RHSA-2024:3414 Released 2024-05-28 · Red Hat rating Importantkernel-rt security and bug fix update
- Red Hat Enterprise Linux Real Time EUS (v.9.0) kernel-rt-5.14.0-70.101.1.rt21.173.el9_0, kernel-rt-core-5.14.0-70.101.1.rt21.173.el9_0, kernel-rt-debug-5.14.0-70.101.1.rt21.173.el9_0 +7
- Red Hat Enterprise Linux Real Time for NFV EUS (v.9.0) kernel-rt-5.14.0-70.101.1.rt21.173.el9_0, kernel-rt-core-5.14.0-70.101.1.rt21.173.el9_0, kernel-rt-debug-5.14.0-70.101.1.rt21.173.el9_0 +9
- RHSA-2024:2674 Released 2024-05-02 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.8.6) kernel-tools-libs-devel-4.18.0-372.102.1.el8_6
- Red Hat Enterprise Linux BaseOS EUS (v.8.6) bpftool-4.18.0-372.102.1.el8_6, kernel-4.18.0-372.102.1.el8_6, kernel-abi-stablelists-4.18.0-372.102.1.el8_6 +19
- Red Hat Virtualization 4 Hypervisor for RHEL 8 kernel-devel-4.18.0-372.102.1.el8_6, perf-4.18.0-372.102.1.el8_6
- RHSA-2024:2582 Released 2024-04-30 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat Enterprise Linux BaseOS AUS (v.8.4) bpftool-4.18.0-305.130.1.el8_4, kernel-4.18.0-305.130.1.el8_4, kernel-abi-stablelists-4.18.0-305.130.1.el8_4 +14
- Red Hat Enterprise Linux BaseOS E4S (v.8.4) bpftool-4.18.0-305.130.1.el8_4, kernel-4.18.0-305.130.1.el8_4, kernel-abi-stablelists-4.18.0-305.130.1.el8_4 +14
- Red Hat Enterprise Linux BaseOS TUS (v.8.4) bpftool-4.18.0-305.130.1.el8_4, kernel-4.18.0-305.130.1.el8_4, kernel-abi-stablelists-4.18.0-305.130.1.el8_4 +14
- RHSA-2024:2585 Released 2024-04-30 · Red Hat rating Moderatekernel-rt security and bug fix update
- Red Hat Enterprise Linux NFV TUS (v.8.4) kernel-rt-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-core-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-debug-4.18.0-305.130.1.rt7.206.el8_4 +9
- Red Hat Enterprise Linux RT TUS (v.8.4) kernel-rt-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-core-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-debug-4.18.0-305.130.1.rt7.206.el8_4 +7
- RHSA-2024:2394 Released 2024-04-30 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-427.13.1.el9_4, kernel-64k-debug-devel-matched-5.14.0-427.13.1.el9_4, kernel-64k-devel-5.14.0-427.13.1.el9_4 +11
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.3.0-427.13.1.el9_4, kernel-5.14.0-427.13.1.el9_4, kernel-64k-5.14.0-427.13.1.el9_4 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-427.13.1.el9_4, libperf-5.14.0-427.13.1.el9_4
- Red Hat Enterprise Linux NFV (v. 9) kernel-rt-5.14.0-427.13.1.el9_4, kernel-rt-core-5.14.0-427.13.1.el9_4, kernel-rt-debug-5.14.0-427.13.1.el9_4 +11
- Red Hat Enterprise Linux RT (v. 9) kernel-rt-5.14.0-427.13.1.el9_4, kernel-rt-core-5.14.0-427.13.1.el9_4, kernel-rt-debug-5.14.0-427.13.1.el9_4 +9
- RHSA-2024:2006 Released 2024-04-23 · Red Hat rating Importantkernel security and bug fix update
- Red Hat Enterprise Linux BaseOS AUS (v. 8.2) bpftool-4.18.0-193.133.1.el8_2, kernel-4.18.0-193.133.1.el8_2, kernel-abi-whitelists-4.18.0-193.133.1.el8_2 +14
- Red Hat Enterprise Linux BaseOS E4S (v. 8.2) bpftool-4.18.0-193.133.1.el8_2, kernel-4.18.0-193.133.1.el8_2, kernel-abi-whitelists-4.18.0-193.133.1.el8_2 +14
- Red Hat Enterprise Linux BaseOS TUS (v. 8.2) bpftool-4.18.0-193.133.1.el8_2, kernel-4.18.0-193.133.1.el8_2, kernel-abi-whitelists-4.18.0-193.133.1.el8_2 +14
- RHSA-2024:2008 Released 2024-04-23 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux Real Time TUS (v. 8.2) kernel-rt-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-core-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-debug-4.18.0-193.133.1.rt13.184.el8_2 +7
- Red Hat Enterprise Linux Real Time for NFV TUS (v. 8.2) kernel-rt-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-core-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-debug-4.18.0-193.133.1.rt13.184.el8_2 +9
- RHSA-2024:1881 Released 2024-04-18 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-tools-libs-devel-5.14.0-284.62.1.el9_2
- Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-64k-debug-devel-5.14.0-284.62.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.62.1.el9_2, kernel-64k-devel-5.14.0-284.62.1.el9_2 +10
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool-7.0.0-284.62.1.el9_2, kernel-5.14.0-284.62.1.el9_2, kernel-64k-5.14.0-284.62.1.el9_2 +29
- RHSA-2024:1882 Released 2024-04-18 · Red Hat rating Importantkernel-rt security and bug fix update
- Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt-5.14.0-284.62.1.rt14.347.el9_2, kernel-rt-core-5.14.0-284.62.1.rt14.347.el9_2, kernel-rt-debug-5.14.0-284.62.1.rt14.347.el9_2 +9
- Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt-5.14.0-284.62.1.rt14.347.el9_2, kernel-rt-core-5.14.0-284.62.1.rt14.347.el9_2, kernel-rt-debug-5.14.0-284.62.1.rt14.347.el9_2 +11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder EUS (v.8.6) | Fixed | RHSA-2024:2674 |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:3810 |
| Red Hat CodeReady Linux Builder EUS (v.9.0) | Fixed | RHSA-2024:3421 |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:1881 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:2394 |
| Red Hat Enterprise Linux AppStream EUS (v.9.0) | Fixed | RHSA-2024:3421 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:1881 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:5101 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:2394 |
| Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | Fixed | RHSA-2024:2006 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.4) | Fixed | RHSA-2024:2582 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.2) | Fixed | RHSA-2024:2006 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.4) | Fixed | RHSA-2024:2582 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.6) | Fixed | RHSA-2024:2674 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:3810 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.0) | Fixed | RHSA-2024:3421 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:1881 |
| Red Hat Enterprise Linux BaseOS TUS (v. 8.2) | Fixed | RHSA-2024:2006 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.4) | Fixed | RHSA-2024:2582 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:5101 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:2394 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2024:5102 |
| Red Hat Enterprise Linux NFV (v. 9) | Fixed | RHSA-2024:2394 |
| Red Hat Enterprise Linux NFV TUS (v.8.4) | Fixed | RHSA-2024:2585 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2024:5102 |
| Red Hat Enterprise Linux RT (v. 9) | Fixed | RHSA-2024:2394 |
| Red Hat Enterprise Linux RT TUS (v.8.4) | Fixed | RHSA-2024:2585 |
| Red Hat Enterprise Linux Real Time EUS (v.9.0) | Fixed | RHSA-2024:3414 |
| Red Hat Enterprise Linux Real Time EUS (v.9.2) | Fixed | RHSA-2024:1882 |
| Red Hat Enterprise Linux Real Time TUS (v. 8.2) | Fixed | RHSA-2024:2008 |
| Red Hat Enterprise Linux Real Time for NFV EUS (v.9.0) | Fixed | RHSA-2024:3414 |
| Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) | Fixed | RHSA-2024:1882 |
| Red Hat Enterprise Linux Real Time for NFV TUS (v. 8.2) | Fixed | RHSA-2024:2008 |
| Red Hat Virtualization 4 Hypervisor for RHEL 8 | Fixed | RHSA-2024:2674 |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux AppStream EUS (v.9.2)
Timeline
- 2026-10-02 Threatist record created from CVE-2024-26586
- 2026-10-03 Alias added: GHSA-8pq4-pmqh-grvh
References
Patch 6
- https://git.kernel.org/stable/c/56750ea5d15426b5f307554e7699e8b5f76c3182
- https://git.kernel.org/stable/c/348112522a35527c5bcba933b9fefb40a4f44f15
- https://git.kernel.org/stable/c/6fd24675188d354b1cad47462969afa2ab09d819
- https://git.kernel.org/stable/c/2f5e1565740490706332c06f36211d4ce0f88e62
- https://git.kernel.org/stable/c/a361c2c1da5dbb13ca67601cf961ab3ad68af383
- https://git.kernel.org/stable/c/483ae90d8f976f8339cf81066312e1329f2d3706
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2024-26586 · CVE Program
- CVE-2024-26586 · NVD
- FIRST EPSS
- GHSA-8pq4-pmqh-grvh · GitHub Advisory Database · CC BY 4.0
- CVE-2024-26586 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences