Skip to contentSkip to conversation

CVE-2025-39940: dm-stripe: fix a possible integer overflow

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 4, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

dm-stripe: fix a possible integer overflow

There's a possible integer overflow in stripe_io_hints if we have too large chunk size. Test if the overflow happened, and if it did, don't set limits->io_min and limits->io_opt;

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

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

	Fixed in 6.12.49 with commit f8f64254bca5ae58f3b679441962bda4c409f659
	Fixed in 6.16.9 with commit ee27658c239b27721397f3e4eb16370b5cce596e
	Fixed in 6.17 with commit 1071d560afb4c245c2076494226df47db5a35708

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

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:
drivers/md/dm-stripe.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/f8f64254bca5ae58f3b679441962bda4c409f659
	https://git.kernel.org/stable/c/ee27658c239b27721397f3e4eb16370b5cce596e
	https://git.kernel.org/stable/c/1071d560afb4c245c2076494226df47db5a35708