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.
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:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | HIGH |
| Integrity Impact | HIGH |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-787
|
| 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 |
| 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:*:*:*:*:*:* |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |