CVE-2024-50262 Details
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds write in trie_get_next_key() trie_get_next_key() allocates a node stack with size trie->max_prefixlen, while it writes (trie->max_prefixlen + 1) nodes to the stack when it has full paths from the root to leaves. For example, consider a trie with max_prefixlen is 8, and the nodes with key 0x00/0, 0x00/1, 0x00/2, ... 0x00/8 inserted. Subsequent calls to trie_get_next_key with _key with .prefixlen = 8 make 9 nodes be written on the node stack with size 8.
A vulnerability allowing an out-of-bounds write has been identified in the Linux kernel's handling of Longest Prefix Match (LPM) Trie data structures within the Berkeley Packet Filter (BPF) subsystem. This issue arises in the 'trie_get_next_key()' function, which incorrectly writes more nodes to the stack than allocated, potentially leading to memory corruption. The vulnerability is present in the Linux kernel versions included in the additional GNU/Linux subsystem of Siemens SIMATIC S7-1500 products, as well as in certain components of the Siemens SINEC OS prior to V3.2.
Users can upgrade to the patched version of the Linux kernel that addresses this vulnerability. For Siemens products, specific update instructions can be found in the Siemens Security Advisories.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 11, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-787 | Out-of-bounds Write | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.16, < 4.19.323 >= 4.20, < 5.4.285 >= 5.5, < 5.10.229 >= 5.11, < 5.15.171 >= 5.16, < 6.1.116 >= 6.2, < 6.6.60 >= 6.7, < 6.11.7 6.12 rc1 6.12 rc2 6.12 rc3 6.12 rc4 6.12 rc5 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Dec 11, 2024 | CVE Modified | CISA-ADP |
| Nov 13, 2024 | Initial Analysis | [email protected] |
| Nov 9, 2024 | New CVE Received | kernel.org |