Skip to contentSkip to conversation

CVE-2025-22042: ksmbd: add bounds check for create lease context

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 16, 2025

lore
Share & tools
lore
#0 lore raw

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

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

ksmbd: add bounds check for create lease context

Add missing bounds check for create lease context.

The Linux kernel CVE team has assigned CVE-2025-22042 to this issue.

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

	Fixed in 6.1.134 with commit 629dd37acc336ad778979361c351e782053ea284
	Fixed in 6.6.87 with commit 60b7207893a8a06c78441934931a08fdad63f18e
	Fixed in 6.12.23 with commit 800c482c9ef5910f05e3a713943c67cc6c1d4939
	Fixed in 6.13.11 with commit a41cd52f00907a040ca22c73d4805bb79b0d0972
	Fixed in 6.14.2 with commit 9a1b6ea955e6c7b29939a6d98701202f9d9644ec
	Fixed in 6.15-rc1 with commit bab703ed8472aa9d109c5f8c1863921533363dae

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-2025-22042

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/server/oplock.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/629dd37acc336ad778979361c351e782053ea284
	https://git.kernel.org/stable/c/60b7207893a8a06c78441934931a08fdad63f18e
	https://git.kernel.org/stable/c/800c482c9ef5910f05e3a713943c67cc6c1d4939
	https://git.kernel.org/stable/c/a41cd52f00907a040ca22c73d4805bb79b0d0972
	https://git.kernel.org/stable/c/9a1b6ea955e6c7b29939a6d98701202f9d9644ec
	https://git.kernel.org/stable/c/bab703ed8472aa9d109c5f8c1863921533363dae