md/raid5: validate payload size before calculating payload_len
- CVE-2026-139005
- GHSA-c62x-xg88-2qh7
- EUVD-2026-138757
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.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.18.xupdate to 6.18.63 or laterPatch update: breaking changes are unlikely
- If you run 6.12.xupdate to 6.12.117 or laterPatch update: breaking changes are unlikely
- If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
- If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
- If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
- If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.18.27 to before 6.18.63 6.18.63 from 6.12.86 to before 6.12.117 6.12.117 from 6.6.140 to before 6.6.163 6.6.163 from 6.1.175 to before 6.1.193 6.1.193 from 5.15.209 to before 5.15.226 5.15.226 from 5.10.258 to before 5.10.275 5.10.275 from 7.0.4 to before 7.1 none stated 7.1 none stated and 9 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.