Skip to main content
← All vulnerabilities
CVE-2024-26828

cifs: fix underflow in parse_server_interfaces()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.79, 6.6.18, 6.7.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

The Linux kernel's CIFS/SMB client, specifically its handling of server network interface information, is affected. A signed/unsigned comparison error can cause a buffer underflow when parsing malformed data from a server, which may lead to memory corruption or a crash.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    Version range not reported

  • Linux Linux

    4.18

  • KernelLinux

    From 4.18.0 · fixed in 6.1.79; From 6.2.0 · fixed in 6.6.18; From 6.7.0 · fixed in 6.7.6

References 5

git.kernel.org