cifs: validate DFS referral string offsets (Linux Linux)

CVE-2026-72318
CRITICAL 9.4

At a glance

Source
NVD
EPSS
EPSS 0.59 % · percentile 48 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:HLinux
CVSS 3.1CRITICAL 9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 4ecce920e13ace16a5ba45efe8909946c28fb2ad < 76c607b9353d377b1d1b11db50e743eee0ccf658 ; affected 4ecce920e13ace16a5ba45efe8909946c28fb2ad < d64b6be5740ce230aca184d8d224c75d9866045d ; affected 4ecce920e13ace16a5ba45efe8909946c28fb2ad < 929a85932d14190988f1eafd6ee8cc68d66ace0b ; affected 4ecce920e13ace16a5ba45efe8909946c28fb2ad < b784cd1c24d89bf71be2efe1e948ff7c03371e57 ; affected 4ecce920e13ace16a5ba45efe8909946c28fb2ad < c37abc99bb3de3d3219ecef253d649f74117fd83 ; affected 4ecce920e13ace16a5ba45efe8909946c28fb2ad < 027a84ac6b50c12ef767c15abfc58aa865820e9e
Linux · Linuxaffected 4.11 ; unaffected 0 < 4.11 ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.* ; unaffected 6.12.97 ≤ 6.12.* ; unaffected 6.18.40 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD