Descripción
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: dlm: corrige un desbordamiento de búfer causado por un len negativo en dlm_search_rsb_tree El commit 080e5563f878c ("dlm: validate length in dlm_search_rsb_tree") solo verifica len > DLM_RESNAME_MAXLEN, lo que no detecta valores negativos. La entrada 'len' puede ser negativa, y un int negativo pasado a memcpy() se convierte implícitamente en un size_t grande, lo que provoca un desbordamiento de búfer en la pila en el arreglo key[]. Se corrige cambiando el tipo del parámetro 'len' de int a unsigned int. Así, los valores negativos de los llamadores se convierten implícitamente en valores sin signo grandes, que son detectados por la verificación existente len > DLM_RESNAME_MAXLEN.
Qué hacer
Revisa si usas el producto afectado y en qué versión, y aplica la actualización o la mitigación que indique el aviso del fabricante. CISA no ha confirmado que se esté explotando; si eso cambia, esta ficha pasa a «explotada» y te avisamos en el boletín.
Versiones afectadas
- Linux Afectadas: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 y anteriores a 08cb20cf07a8c5324b49442421da1556fd2d7cff · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 y anteriores a 35d6a8cf1b8865f4f1646f98683925e3cd070a1c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 y anteriores a 69beb43cd143f63078e569d9d90c6c401c866695 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 y anteriores a d785f7d92f197b72d496bbcf54a160cd54f00263 · anteriores a 6.12.119 · anteriores a 6.18.65 · anteriores a 7.3.6
- Linux No afectadas: 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1
Según el registro de la vulnerabilidad en CVE.org, tal como lo publicó el fabricante. Confirma tu versión exacta en el aviso del fabricante.
Referencias
- Referencia en git.kernel.orggit.kernel.org/stable/c/08cb20cf07a8c5324b49442421da1556fd2d7cff
- Referencia en git.kernel.orggit.kernel.org/stable/c/35d6a8cf1b8865f4f1646f98683925e3cd070a1c
- Referencia en git.kernel.orggit.kernel.org/stable/c/69beb43cd143f63078e569d9d90c6c401c866695
- Referencia en git.kernel.orggit.kernel.org/stable/c/d785f7d92f197b72d496bbcf54a160cd54f00263
Ver el texto original en inglés (CVE.org)
dlm: fix buffer overflow from negative len in dlm_search_rsb_tree
In the Linux kernel, the following vulnerability has been resolved: dlm: fix buffer overflow from negative len in dlm_search_rsb_tree commit 080e5563f878c ("dlm: validate length in dlm_search_rsb_tree") only checks for len > DLM_RESNAME_MAXLEN, which does not catch negative values. While the input 'len' can be negative and a negative int passed to memcpy() is implicitly converted to a large size_t, causing a stack buffer overflow on the key[] array. Fix this by changing the 'len' parameter type from int to unsigned int. This ensures negative values from callers are implicitly converted to large unsigned values that are caught by the existing len > DLM_RESNAME_MAXLEN check.