Descripción
En el Linux kernel se ha resuelto la siguiente vulnerabilidad: smb: client: fix ALIGN() overflow in symlink_data() error context loop La comprobación agregada por el commit 7d9a7f1f96cd ("smb/client: fix possible infinite loop and oob read in symlink_data()") comparaba la longitud posterior a ALIGN con el búfer restante, pero ALIGN() en sí puede desbordarse: para un ErrorDataLength cercano a UINT32_MAX (por ejemplo, 0xFFFFFFF9), ALIGN(x, 8) vuelve a 0, por lo que la comprobación de límites posterior se supera y el bucle avanza cero bytes, dejando 'p' apuntando a datos obsoletos. Se corrige comprobando el ErrorDataLength sin procesar contra el espacio restante antes de aplicar ALIGN(), y comprobando de nuevo después. Como raw_len está acotado por el búfer, raw_len + 7 no puede desbordarse, por lo que la segunda comprobación es una protección exacta de límites posterior a la alineación.
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: 76894f3e2f71177747b8b4763fb180e800279585 y anteriores a 2b4a25baa0b936fef6915c0459925077b324ecaf · 76894f3e2f71177747b8b4763fb180e800279585 y anteriores a b89d678f9eafcf8d74885983166ba26b40a04ea0 · 76894f3e2f71177747b8b4763fb180e800279585 y anteriores a 657372ba6ea50b4474d2a6a610097eae8cd1f3e9 · 76894f3e2f71177747b8b4763fb180e800279585 y anteriores a 1f824f61d1df52392eaf0b74dfa5659d724fde30 · 76894f3e2f71177747b8b4763fb180e800279585 y anteriores a 62a3025983c8c735a3c6fc85a59316f31b59af07 · 76894f3e2f71177747b8b4763fb180e800279585 y anteriores a 62656b024efc21c3230eade1a847f25871c3d2bb · 2d046892a493d9760c35fdaefc3017f27f91b621 · 6.0.16 y anteriores a 6.1
- Linux Afectadas: 6.1 No afectadas: 6.1.188 · 6.6.157 · 6.12.109 · 6.18.50 · 7.2.4 · 7.3
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/2b4a25baa0b936fef6915c0459925077b324ecaf
- Referencia en git.kernel.orggit.kernel.org/stable/c/b89d678f9eafcf8d74885983166ba26b40a04ea0
- Referencia en git.kernel.orggit.kernel.org/stable/c/657372ba6ea50b4474d2a6a610097eae8cd1f3e9
- Referencia en git.kernel.orggit.kernel.org/stable/c/1f824f61d1df52392eaf0b74dfa5659d724fde30
- Referencia en git.kernel.orggit.kernel.org/stable/c/62a3025983c8c735a3c6fc85a59316f31b59af07
- Referencia en git.kernel.orggit.kernel.org/stable/c/62656b024efc21c3230eade1a847f25871c3d2bb
Ver el texto original en inglés (CVE.org)
smb: client: fix ALIGN() overflow in symlink_data() error context loop
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix ALIGN() overflow in symlink_data() error context loop The check added by commit 7d9a7f1f96cd ("smb/client: fix possible infinite loop and oob read in symlink_data()") compared the post-ALIGN length against the remaining buffer, but ALIGN() itself can overflow: for ErrorDataLength near UINT32_MAX (e.g. 0xFFFFFFF9), ALIGN(x, 8) wraps to 0, so the subsequent bounds check passes, and the loop advances by zero bytes leaving 'p' pointing into stale data. Fix by checking the raw ErrorDataLength against the remaining space before applying ALIGN(), then checking again after. Since raw_len is bounded by the buffer, raw_len + 7 cannot overflow, so the second check is an exact post-alignment bounds guard.