9.4critical
cifs: fix underflow in parse_server_interfaces()
- Severity
- 9.4critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.75% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: cifs: fix underflow in parse_server_interfaces() In this loop, we step through the buffer and after each item we check if the size_left is greater than the minimum size we need. However, the problem is that "bytes_left" is type ssize_t while sizeof() is type size_t. That means that because of type promotion, the comparison is done as an unsigned and if we have negative bytes left the loop continues instead of ending.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fe856be475f7cf5ffcde57341d175ce9fd09434b before 3babdcb5f1809a9a41e31547a063dedf6bb44cca, from fe856be475f7cf5ffcde57341d175ce9fd09434b before 7190353835b4a219abb70f90b06cdcae97f11512, from fe856be475f7cf5ffcde57341d175ce9fd09434b before f7ff1c89fb6e9610d2b01c1821727729e6609308, from fe856be475f7cf5ffcde57341d175ce9fd09434b before df2af9fdbc4ddde18a3371c4ca1a86596e8be301, from fe856be475f7cf5ffcde57341d175ce9fd09434b before cffe487026be13eaf37ea28b783d9638ab147204, 4.18 Not affected: before 4.18, from 5.15.224 up to 5.15.*, from 6.1.79 up to 6.1.*, from 6.6.18 up to 6.6.*, from 6.7.6 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | from 4.18 before 6.1.79, from 6.2 before 6.6.18, from 6.7 before 6.7.6, 6.8 | NVD |
All scores
| Linux | 9.4critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H |
| CISA-ADP | 6.7medium CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: cifs: fix underflow in parse_server_interfaces() In this loop, we step through the buffer and after each item we check if the size_left is greater than the minimum size we need. However, the problem is that "bytes_left" is type ssize_t while sizeof() is type size_t. That means that because of type promotion, the comparison is done as an unsigned and if we have negative bytes left the loop continues instead of ending.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cifs: corrige el desbordamiento insuficiente en parse_server_interfaces() En este bucle, recorremos el búfer y después de cada elemento comprobamos si size_left es mayor que el tamaño mínimo que necesitamos. Sin embargo, el problema es que "bytes_left" es del tipo ssize_t mientras que sizeof() es del tipo size_t. Eso significa que debido a la promoción de tipo, la comparación se realiza sin firmar y si nos quedan bytes negativos, el ciclo continúa en lugar de finalizar.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26828 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2024-26828 changed 2026-10-30 | Public domain |