CVE-2024-26828

cifs: fix underflow in parse_server_interfaces()

9.4 critical EPSS 0.75%

Published 17 Apr 2024 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2024-26828

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-26828 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.4 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
6.7 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.75%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 12 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fe856be475f7cf5ffcde57341d175ce9fd09434b, before 3babdcb5f1809a9a41e31547a063dedf6bb44cca
affected from fe856be475f7cf5ffcde57341d175ce9fd09434b, before 7190353835b4a219abb70f90b06cdcae97f11512
affected from fe856be475f7cf5ffcde57341d175ce9fd09434b, before f7ff1c89fb6e9610d2b01c1821727729e6609308
affected from fe856be475f7cf5ffcde57341d175ce9fd09434b, before df2af9fdbc4ddde18a3371c4ca1a86596e8be301
affected from fe856be475f7cf5ffcde57341d175ce9fd09434b, before cffe487026be13eaf37ea28b783d9638ab147204
Other versions: unaffected
Linux
affected 4.18
unaffected before 4.18
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.79 up to and including 6.1.*
unaffected from 6.6.18 up to and including 6.6.*
unaffected from 6.7.6 up to and including 6.7.*
unaffected 6.8 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-26828 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26828

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-26828
trivy image --scanners vuln IMAGE | grep CVE-2024-26828

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-26828 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.