CVE-2026-72318

cifs: validate DFS referral string offsets

Published Aug 15, 2026 CVSS 3.1 · 9.4 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Linux kernel's CIFS client does not validate string offsets supplied by an SMB server in DFS referral responses. The offsets used to locate DfsPath and NetworkAddress strings can point outside the buffer, resulting in an out‑of‑bounds read. Because the length is processed as a signed integer and then cast to an unsigned size_t, the kernel may duplicate an overflowed string, leading to kernel memory disclosure and potentially a crash. This flaw is a classic example of improper input validation (CWE‑20) that allows an attacker to read memory outside the intended bounds (CWE‑125).

Affected Systems

All Linux kernel versions prior to the patch that contains the handled commit are affected. The vulnerability resides in the CIFS client that parses DFS referrals; no specific kernel version was listed, so any kernel prior to the commit identifiers referenced in the advisory must be updated. The CNA vendors list Linux as the affected vendor.

Risk and Exploitability

The CVSS score of 9.4 indicates a high severity. The EPSS score is < 1%, showing low publicly observed exploit probability. The vulnerability is not listed in CISA KEV. Based on the description, the likely attack vector is a malicious DFS referral sent from an SMB server to a CIFS client. If exploitation were achieved, an attacker could read kernel memory and potentially crash the client, leading to information disclosure or denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patch to validate DFS referral string offsets; the patch is part of the commits referenced in the advisory.
  • If an update is not immediately possible, restrict or block CIFS/SMB traffic containing DFS referrals from untrusted sources, or disable DFS referrals on the client side if functionality permits.
  • Continuously monitor kernel logs for signs of out‑of‑bounds reads or crashes (e.g., KASAN or UBSAN messages) and investigate any suspicious SMB traffic.

Generated by OpenCVE AI on August 17, 2026 at 17:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8781-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-3 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-4 Linux kernel (GKE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-125
CWE-20
Type Values Removed Values Added
Weaknesses CWE-125
CWE-20
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H'}

Type Values Removed Values Added
Weaknesses CWE-125
CWE-20
Type Values Removed Values Added
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.
Title cifs: validate DFS referral string offsets
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 6:55 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 7:17 PM
Severity
Important
Public date
Aug 15, 2026, 12:00 AM