md/raid5: validate payload size before calculating payload_len

Summary

CVECVE-2026-139005
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:03 UTC
Updated2026-11-30 14:18:03 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected c96c6f01d84b5c67db1bf1cc8591c0b7146826fc 022bee23973a10e19f1cd260825d4bbca63eb3a1 git Not specified
CNA Linux Linux affected ef4851d8324fd978ca1ff9ec76a275438f887743 ff790668336ec161eafa51856424df9c8532335c git Not specified
CNA Linux Linux affected 28d3ff7109c66e99dc1b7cddacb5c760849620ef 62fb156158caacd865a6933fbb602597c3053e6f git Not specified
CNA Linux Linux affected 33698bd1b2db9764a29df7751533d33967ff5c98 f738b316264276c8456c5e7a706bd3f6ff157122 git Not specified
CNA Linux Linux affected c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e 5c9a7eea926fdaed105da882e3bf3c5d11ea26f8 git Not specified
CNA Linux Linux affected 73ce72edd113374801045924d4417199963f73a3 9e2913245294f1b8390b8b5ecee67485f18cb432 git Not specified
CNA Linux Linux affected b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9 708060d87b092e107504df4390aa83c4687c445f git Not specified
CNA Linux Linux affected b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9 38c795105992bbaa3418dd39cbff7348ad17537c git Not specified
CNA Linux Linux affected 406aa86394ead347c47428fb51b6359bdaa2257d git Not specified
CNA Linux Linux affected 5.10.258 5.10.275 semver Not specified
CNA Linux Linux affected 5.15.209 5.15.226 semver Not specified
CNA Linux Linux affected 6.1.175 6.1.193 semver Not specified
CNA Linux Linux affected 6.6.140 6.6.163 semver Not specified
CNA Linux Linux affected 6.12.86 6.12.117 semver Not specified
CNA Linux Linux affected 6.18.27 6.18.63 semver Not specified
CNA Linux Linux affected 7.0.4 7.1 semver Not specified
CNA Linux Linux affected 7.1 Not specified
CNA Linux Linux unaffected 7.1 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/708060d87b092e107504df4390aa83c4687c445f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/38c795105992bbaa3418dd39cbff7348ad17537c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ff790668336ec161eafa51856424df9c8532335c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/62fb156158caacd865a6933fbb602597c3053e6f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f738b316264276c8456c5e7a706bd3f6ff157122 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5c9a7eea926fdaed105da882e3bf3c5d11ea26f8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9e2913245294f1b8390b8b5ecee67485f18cb432 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/022bee23973a10e19f1cd260825d4bbca63eb3a1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report