CVE-2026-72318

Source
https://cve.org/CVERecord?id=CVE-2026-72318
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72318.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72318
Downstream
Published
2026-08-15T05:55:31.682Z
Modified
2026-08-16T03:48:33.060811124Z
Summary
cifs: validate DFS referral string offsets
Details

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

cifs: validate DFS referral string offsets

parsedfsreferrals() 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 maxlen is then passed to cifsstrndupfromutf16(), 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72318.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4ecce920e13ace16a5ba45efe8909946c28fb2ad
Fixed
76c607b9353d377b1d1b11db50e743eee0ccf658
Fixed
d64b6be5740ce230aca184d8d224c75d9866045d
Fixed
929a85932d14190988f1eafd6ee8cc68d66ace0b
Fixed
b784cd1c24d89bf71be2efe1e948ff7c03371e57
Fixed
c37abc99bb3de3d3219ecef253d649f74117fd83
Fixed
027a84ac6b50c12ef767c15abfc58aa865820e9e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72318.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.11.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72318.json"