Skip to contentSkip to conversation

CVE-2026-99087: dm-integrity: fix NULL pointer dereference when the 'R' flag is used

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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-integrity: fix NULL pointer dereference when the 'R' flag is used

If the dm-integrity device has the SB_FLAG_DIRTY_BITMAP flag set and the user activates the device in the 'R' mode, a crash in dm_integrity_resume happens because the function attempts to read the journal containing the bitmap.

This patch makes dm-integrity skip any writes to the device in dm_integrity_resume if the device is activated in the 'R' mode.

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

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

	Issue introduced in 5.2 with commit 468dfca38b1a6fbdccd195d875599cb7c8875cd9 and fixed in 6.18.58 with commit 2e25842f0e4423e0efb243f56153d842ed6b933f
	Issue introduced in 5.2 with commit 468dfca38b1a6fbdccd195d875599cb7c8875cd9 and fixed in 7.2.12 with commit 69ed43ed8a174465fca1ba6bfbde53e4618c8956
	Issue introduced in 5.2 with commit 468dfca38b1a6fbdccd195d875599cb7c8875cd9 and fixed in 7.3 with commit 7d4d4f3b668d708d94f62ecdd33ac330a6fd8a84

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

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-integrity.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/2e25842f0e4423e0efb243f56153d842ed6b933f
	https://git.kernel.org/stable/c/69ed43ed8a174465fca1ba6bfbde53e4618c8956
	https://git.kernel.org/stable/c/7d4d4f3b668d708d94f62ecdd33ac330a6fd8a84