CVE-2026-72318

cifs: validate DFS referral string offsets

State
Published
Severity
9.4 Critical
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

cifs: validate DFS referral string offsets

parse_dfs_referrals() validates that the response header and referral array fit in the received buffer, but each referral also contains string offsets supplied by the server.

Those offsets are used to compute the DfsPath and NetworkAddress string pointers without checking whether they still point inside the response buffer. A malformed referral can therefore make the computed pointer exceed the end of the buffer. The resulting negative max_len is then passed to cifs_strndup_from_utf16(), and the non-Unicode path forwards it to kstrndup() as a size_t, allowing strnlen() to read out of bounds.

Validate each string offset before deriving the string pointer.

Scores

CVSSScoreVectorSource
3.19.4 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4ecce920e13ace16a5ba45efe8909946c28fb2ad to before 76c607b9353d377b1d1b11db50e743eee0ccf658Affected
  • 4ecce920e13ace16a5ba45efe8909946c28fb2ad to before d64b6be5740ce230aca184d8d224c75d9866045dAffected
  • 4ecce920e13ace16a5ba45efe8909946c28fb2ad to before 929a85932d14190988f1eafd6ee8cc68d66ace0bAffected
  • 4ecce920e13ace16a5ba45efe8909946c28fb2ad to before b784cd1c24d89bf71be2efe1e948ff7c03371e57Affected
  • 4ecce920e13ace16a5ba45efe8909946c28fb2ad to before c37abc99bb3de3d3219ecef253d649f74117fd83Affected
  • 4ecce920e13ace16a5ba45efe8909946c28fb2ad to before 027a84ac6b50c12ef767c15abfc58aa865820e9eAffected
LinuxLinux
  • 4.11Affected
  • before 4.11Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.