Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139005

md/raid5: validate payload size before calculating payload_len

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • c96c6f01d84b5c67db1bf1cc8591c0b7146826fc to < 022bee23973a10e19f1cd260825d4bbca63eb3a1affected
  • ef4851d8324fd978ca1ff9ec76a275438f887743 to < ff790668336ec161eafa51856424df9c8532335caffected
  • 28d3ff7109c66e99dc1b7cddacb5c760849620ef to < 62fb156158caacd865a6933fbb602597c3053e6faffected
  • 33698bd1b2db9764a29df7751533d33967ff5c98 to < f738b316264276c8456c5e7a706bd3f6ff157122affected
  • c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e to < 5c9a7eea926fdaed105da882e3bf3c5d11ea26f8affected
  • 73ce72edd113374801045924d4417199963f73a3 to < 9e2913245294f1b8390b8b5ecee67485f18cb432affected
  • b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9 to < 708060d87b092e107504df4390aa83c4687c445faffected
  • b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9 to < 38c795105992bbaa3418dd39cbff7348ad17537caffected
  • 406aa86394ead347c47428fb51b6359bdaa2257daffected
  • 5.10.258 to < 5.10.275affected
  • 5.15.209 to < 5.15.226affected
  • 6.1.175 to < 6.1.193affected
  • 6.6.140 to < 6.6.163affected
  • 6.12.86 to < 6.12.117affected
  • 6.18.27 to < 6.18.63affected
  • 7.0.4 to < 7.1affected

Linux Linux

Default version status: affected

  • 7.1affected
  • 0 to < 7.1unaffected
  • 5.10.275 to ≤ 5.10.*unaffected
  • 5.15.226 to ≤ 5.15.*unaffected
  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.117 to ≤ 6.12.*unaffected
  • 6.18.63 to ≤ 6.18.*unaffected
  • 7.3.4 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References