IM
IronMonkey Threat Research

CVE-2024-36934 HIGH

Published: 2024-05-30 | Last Modified: 2026-01-22 | Status: Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: bna: ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Additional Descriptions (1)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bna: asegúrese de que el buf copiado tenga terminación NUL. Actualmente, asignamos un búfer del kernel de tamaño nbytes y copiamos nbytes del espacio de usuario a ese búfer. Más adelante, usamos sscanf en este búfer pero no nos aseguramos de que la cadena termine dentro del búfer, esto puede provocar una lectura OOB cuando usamos sscanf. Solucione este problema utilizando memdup_user_nul en lugar de memdup_user.

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

Affected Products

Vendor Product Version Update Type
linux linux_kernel * <built-in method update of dict object at 0x7fd3401d0200> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36945c700> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd385056880> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd3401d2e80> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd3401d1900> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd3401d2b40> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36a654040> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd3401d34c0> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd340890a80> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd3401d0ac0> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd34017ff40> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd39c4d3c80> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd2a224b240> Operating System
debian debian_linux 10.0 <built-in method update of dict object at 0x7fd34017ffc0> 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.9:rc1:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

References