CVE-2026-139005

md/raid5: validate payload size before calculating payload_len

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

md/raid5: validate payload size before calculating payload_len

Commit b0cc3ae97e89 ("md/raid5: validate payload size before accessing
journal metadata") introduced a bounds check to verify that a given payload
fits into the current metadata block. In order to calculate the payload
size, it has to access the members payload->header.type and payload->size,
the offset of which may already be past the end of the metadata block,
because the loop condition only checks that the first byte of the payload
is inside, and the payload entries have variable sizes. Later on,
payload->checksum[0] and payload->checksum[1] are accessed without
verifying that payload->size is large enough.

Add another check to make sure that payload->size can be safely
accessed, and make sure that the checksum fields are accessible.

This issue has been found by AI (gemma4, Gemini) during a backport
review.

Analysis

AI-generated

Technical impact

A bounds check in the Linux kernel RAID5 metadata journaling code verifies only the first byte of each payload entry but does not confirm that the payload size is within the bounds of the metadata block. As a result, payload->checksum[1] and other fields can be read beyond the end of the buffer, leading to a buffer overread (CWE‑787). This memory safety violation can allow local attackers to read arbitrary kernel memory, potentially enabling privilege escalation or data exposure.

Affected Systems

The flaw exists in the core Linux kernel (Linux:Linux) for any releases that include the vulnerable RAID5 journaling code before the backport that adds the size validation. No specific kernel versions are enumerated in the data, but all affected distributions should treat older kernels as vulnerable until the patch is applied.

Risk and Exploitability

The CVSS score and EPSS are not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely local, requiring code execution in kernel space or root privileges to trigger the out‑of‑bounds read. While no public exploits are reported, the potential for privilege escalation makes the risk moderate to high for unpatched systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the commit b0cc3ae97e89 which validates payload size before accessing checksum fields
  • If a patch cannot be applied immediately, disable or remove the md_rip5 module or limit RAIDs usage to avoid triggering the vulnerable code path
  • Monitor vendor advisories and security channels for any reported exploits or new mitigations related to RAID5 metadata handling

Generated by OpenCVE AI on November 30, 2026 at 18:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: md/raid5: validate payload size before calculating payload_len Commit b0cc3ae97e89 ("md/raid5: validate payload size before accessing journal metadata") introduced a bounds check to verify that a given payload fits into the current metadata block. In order to calculate the payload size, it has to access the members payload->header.type and payload->size, the offset of which may already be past the end of the metadata block, because the loop condition only checks that the first byte of the payload is inside, and the payload entries have variable sizes. Later on, payload->checksum[0] and payload->checksum[1] are accessed without verifying that payload->size is large enough. Add another check to make sure that payload->size can be safely accessed, and make sure that the checksum fields are accessible. This issue has been found by AI (gemma4, Gemini) during a backport review.
Title md/raid5: validate payload size before calculating payload_len
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM