CVE-2026-139005: md/raid5: validate payload size before calculating payload_len

Published Nov 30, 2026
·
Updated

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

md/raid5: validate payload size before calculating payloadlen

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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch b0cc3ae97e89

Event History

Nov 30, 2026
CVE Published
via MITRE·01:26 PM
Data Sourced
via MITRE·01:26 PM
Description
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

What component and condition are involved in this issue?

The issue is in the Linux kernel md/raid5 code while processing RAID5 journal metadata payload entries. It is triggered when variable-size payload data is malformed or truncated such that fields in the payload header or checksum area fall beyond the current metadata block.

2

What memory accesses were insufficiently validated?

The affected code could calculate payload length after accessing payload->header.type and payload->size even when those fields were beyond the metadata-block boundary. It could also access payload->checksum[0] and payload->checksum[1] without first confirming that payload->size made those checksum fields accessible.

3

How can I determine whether a fix is available for my kernel?

The provided references identify stable kernel commits containing the resolution: 022bee23973a10e19f1cd260825d4bbca63eb3a1, ff790668336ec161eafa51856424df9c8532335c, and 62fb156158caacd865a6933fbb602597c3053e6f. Compare your kernel source or vendor patch history against those commits; no affected or fixed version numbers are provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203