IM
IronMonkey Threat Research

CVE-2024-50262 HIGH

Published: 2024-11-09 | Last Modified: 2026-05-12 | Status: Modified

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.

Additional Descriptions (1)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: Se corrige la escritura fuera de los límites en trie_get_next_key() trie_get_next_key() asigna una pila de nodos con tamaño trie->max_prefixlen, mientras escribe (trie->max_prefixlen + 1) nodos en la pila cuando tiene rutas completas desde la raíz hasta las hojas. Por ejemplo, considere un trie con max_prefixlen es 8, y los nodos con clave 0x00/0, 0x00/1, 0x00/2, ... 0x00/8 insertados. Las llamadas posteriores a trie_get_next_key con _key con .prefixlen = 8 hacen que se escriban 9 nodos en la pila de nodos con tamaño 8.

CVSS Metrics

Base Score: 7.8 (HIGH)

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack VectorLOCAL
Attack ComplexityLOW
Privileges RequiredLOW
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactHIGH
Integrity ImpactHIGH
Availability ImpactHIGH

Source: [email protected]

Type: Primary

Exploitability Score: 1.8

Impact Score: 5.9

Weaknesses

Source Type Description
[email protected] Primary
en CWE-787
134c704f-9b21-4f2e-91b3-4a467353bcc0 Secondary
en CWE-787

Affected Products

Vendor Product Version Update Type
linux linux_kernel * <built-in method update of dict object at 0x7fd3415e4980> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd30864c600> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd37035f440> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd37035fa00> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd3415e6ac0> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36b169b80> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36a73f240> Operating System
linux linux_kernel 6.12 <built-in method update of dict object at 0x7fd3606c9f80> Operating System
linux linux_kernel 6.12 <built-in method update of dict object at 0x7fd30864dd40> Operating System
linux linux_kernel 6.12 <built-in method update of dict object at 0x7fd3415e6b80> Operating System
linux linux_kernel 6.12 <built-in method update of dict object at 0x7fd3841f3e00> Operating System
linux linux_kernel 6.12 <built-in method update of dict object at 0x7fd37035ea00> Operating System

Affected Configurations

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:*

References