Skip to contentSkip to conversation

CVE-2026-98168: smb: client: fix reparse buffer bounds in cifs_query_reparse_point()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

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

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

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

smb: client: fix reparse buffer bounds in cifs_query_reparse_point()

In cifs_query_reparse_point(), the start >= end check before casting to struct reparse_data_buffer * only ensures the start pointer is within the response. It fails to verify that there is enough space remaining for the fixed 8-byte header of the structure.

If a server provides a DataOffset that leaves less than 8 bytes remaining, the check passes, but subsequent reads of ReparseTag and ReparseDataLength will occur out-of-bounds.

Fix this by ensuring the remaining space is at least the size of the reparse_data_buffer structure before accessing its fields.

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

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

	Issue introduced in 6.12.34 with commit 48ca7139ab7f0bbed95ff7a901ea497017769657 and fixed in 6.12.112 with commit 3d67f155fe5813cfb02a551a9a12d6ea06a902e9
	Issue introduced in 6.16 with commit 56e84c64fc257a95728ee73165456b025c48d408 and fixed in 6.18.54 with commit d1152c96a3002e3df6b9a5b007cecaa7b19b4f79
	Issue introduced in 6.16 with commit 56e84c64fc257a95728ee73165456b025c48d408 and fixed in 7.2.8 with commit 8dc5db3a0e583ea8d31d0613cefd99e93e095c3c
	Issue introduced in 6.16 with commit 56e84c64fc257a95728ee73165456b025c48d408 and fixed in 7.3-rc4 with commit 5f0306e731e2f46e91419eae57eee3a241c055e0
	Issue introduced in 6.6.94 with commit 848d78e3625f15de09d34a562dc49a98b78a62f3
	Issue introduced in 6.15.3 with commit c13b779d26b3702fba8f7d5fe757aba5bda85fd0

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-98168

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/cifssmb.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/3d67f155fe5813cfb02a551a9a12d6ea06a902e9
	https://git.kernel.org/stable/c/d1152c96a3002e3df6b9a5b007cecaa7b19b4f79
	https://git.kernel.org/stable/c/8dc5db3a0e583ea8d31d0613cefd99e93e095c3c
	https://git.kernel.org/stable/c/5f0306e731e2f46e91419eae57eee3a241c055e0