CVE-2024-26828: cifs: fix underflow in parse_server_interfaces()
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix underflow in parseserverinterfaces()
In this loop, we step through the buffer and after each item we check if the sizeleft is greater than the minimum size we need. However, the problem is that "bytesleft" is type ssizet while sizeof() is type sizet. 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.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix underflow in parseserverinterfaces()
The Linux kernel CVE team has assigned CVE-2024-26828 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024041703-CVE-2024-26828-b2be@gregkh/T
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.79 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.18 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.7.6 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch CVE-2024-26828
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26828?
CVE-2024-26828 is considered a moderate severity vulnerability affecting the Linux kernel.
How do I fix CVE-2024-26828?
To resolve CVE-2024-26828, upgrade to the recommended kernel versions which are 6.1.79, 6.6.18, 6.7.6, 6.8, or specified versions in Debian.
What systems are affected by CVE-2024-26828?
CVE-2024-26828 affects multiple versions of the Linux kernel, specifically those up to versions 6.1.79, 6.6.18, 6.7.6, and 6.8 in Red Hat, and certain versions in Debian.
What component is mainly impacted by CVE-2024-26828?
CVE-2024-26828 primarily impacts the CIFS (Common Internet File System) functionality in the Linux kernel.
What is the cause of CVE-2024-26828?
CVE-2024-26828 is caused by an underflow issue in the parse_server_interfaces() function of the Linux kernel.