# CVE-2024-26828: cifs: fix underflow in parse_server_interfaces()

- Severity: Critical 9.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-04-17T09:43:52.995Z
- Modified: 2026-10-30T13:17:22.047Z
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 9.4 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H`
- CISA-ADP: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/3babdcb5f1809a9a41e31547a063dedf6bb44cca>
- <https://git.kernel.org/stable/c/7190353835b4a219abb70f90b06cdcae97f11512> (patch)
- <https://git.kernel.org/stable/c/f7ff1c89fb6e9610d2b01c1821727729e6609308> (patch)
- <https://git.kernel.org/stable/c/df2af9fdbc4ddde18a3371c4ca1a86596e8be301> (patch)
- <https://git.kernel.org/stable/c/cffe487026be13eaf37ea28b783d9638ab147204> (patch)

## Sources

- CVE List: [CVE-2024-26828](https://www.cve.org/CVERecord?id=CVE-2024-26828), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2024-26828](https://nvd.nist.gov/vuln/detail/CVE-2024-26828), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2024-26828 · Whole record: https://cve.day/CVE-2024-26828.json · Rebuilt by cve.day 2026-11-25T22:58:39.340Z
