Skip to contentSkip to conversation

CVE-2026-93785: cifs: validate idmap key payload length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

cifs: validate idmap key payload length

The cifs.idmap key type stores its payload length in key->datalen, which is limited to U16_MAX. Accepting a larger key payload truncates the recorded length and can make later users interpret the payload using inconsistent bounds.

Reject oversized preparsed payloads before allocating or copying them. This keeps key->datalen consistent with the stored data for both inline and separately allocated idmap payloads.

The Linux kernel CVE team has assigned CVE-2026-93785 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.111 with commit 6cfeef221ac00d63c07f6122f58e6159bde69ca0
	Fixed in 6.18.53 with commit 8b12f65d7caf16d124098cb4895a203367d35b57
	Fixed in 7.2 with commit 455488cd5054bcc59db40fa1cc2c004031a5b2a5

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-93785

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/smb/client/cifsacl.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/6cfeef221ac00d63c07f6122f58e6159bde69ca0
	https://git.kernel.org/stable/c/8b12f65d7caf16d124098cb4895a203367d35b57
	https://git.kernel.org/stable/c/455488cd5054bcc59db40fa1cc2c004031a5b2a5