Skip to contentSkip to conversation

CVE-2026-46070: md/raid5: validate payload size before accessing journal metadata

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

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

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

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

md/raid5: validate payload size before accessing journal metadata

r5c_recovery_analyze_meta_block() and r5l_recovery_verify_data_checksum_for_mb() iterate over payloads in a journal metadata block using on-disk payload size fields without validating them against the remaining space in the metadata block.

A corrupted journal contains payload sizes extending beyond the PAGE_SIZE boundary can cause out-of-bounds reads when accessing payload fields or computing offsets.

Add bounds validation for each payload type to ensure the full payload fits within meta_size before processing.

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

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

	Issue introduced in 4.10 with commit b4c625c67362b3940f619c1a836b4e8329106658 and fixed in 6.6.140 with commit 33698bd1b2db9764a29df7751533d33967ff5c98
	Issue introduced in 4.10 with commit b4c625c67362b3940f619c1a836b4e8329106658 and fixed in 6.12.86 with commit c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e
	Issue introduced in 4.10 with commit b4c625c67362b3940f619c1a836b4e8329106658 and fixed in 6.18.27 with commit 73ce72edd113374801045924d4417199963f73a3
	Issue introduced in 4.10 with commit b4c625c67362b3940f619c1a836b4e8329106658 and fixed in 7.0.4 with commit 406aa86394ead347c47428fb51b6359bdaa2257d
	Issue introduced in 4.10 with commit b4c625c67362b3940f619c1a836b4e8329106658 and fixed in 7.1-rc1 with commit b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9

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

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/raid5-cache.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/33698bd1b2db9764a29df7751533d33967ff5c98
	https://git.kernel.org/stable/c/c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e
	https://git.kernel.org/stable/c/73ce72edd113374801045924d4417199963f73a3
	https://git.kernel.org/stable/c/406aa86394ead347c47428fb51b6359bdaa2257d
	https://git.kernel.org/stable/c/b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9