Description
In the Linux kernel, the following vulnerability has been resolved: md/raid5: validate payload size before accessing journal metadata r5c_recovery_analyze_meta_block() and r5l_recovery_verify_data_checksum_for_mb() iterate over payloads in a journal metadata block using on-disk payload size fields without validating them against the remaining space in the metadata block. A corrupted journal contains payload sizes extending beyond the PAGE_SIZE boundary can cause out-of-bounds reads when accessing payload fields or computing offsets. Add bounds validation for each payload type to ensure the full payload fits within meta_size before processing.
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
b4c625c67362b3940f619c1a836b4e8329106658 to < c96c6f01d84b5c67db1bf1cc8591c0b7146826fcaffectedb4c625c67362b3940f619c1a836b4e8329106658 to < ef4851d8324fd978ca1ff9ec76a275438f887743affectedb4c625c67362b3940f619c1a836b4e8329106658 to < 28d3ff7109c66e99dc1b7cddacb5c760849620efaffectedb4c625c67362b3940f619c1a836b4e8329106658 to < 33698bd1b2db9764a29df7751533d33967ff5c98affectedb4c625c67362b3940f619c1a836b4e8329106658 to < c3a1cf78bd1bbb51b2cc5189b4743056553c1e0eaffectedb4c625c67362b3940f619c1a836b4e8329106658 to < 73ce72edd113374801045924d4417199963f73a3affectedb4c625c67362b3940f619c1a836b4e8329106658 to < 406aa86394ead347c47428fb51b6359bdaa2257daffectedb4c625c67362b3940f619c1a836b4e8329106658 to < b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9affected
Linux Linux
Default version status: affected
4.10affected0 to < 4.10unaffected5.10.258 to ≤ 5.10.*unaffected5.15.209 to ≤ 5.15.*unaffected6.1.175 to ≤ 6.1.*unaffected6.6.140 to ≤ 6.6.*unaffected6.12.86 to ≤ 6.12.*unaffected6.18.27 to ≤ 6.18.*unaffected7.0.4 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c96c6f01d84b5c67db1bf1cc8591c0b7146826fc ↗
- https://git.kernel.org/stable/c/ef4851d8324fd978ca1ff9ec76a275438f887743 ↗
- https://git.kernel.org/stable/c/28d3ff7109c66e99dc1b7cddacb5c760849620ef ↗
- https://git.kernel.org/stable/c/33698bd1b2db9764a29df7751533d33967ff5c98 ↗
- https://git.kernel.org/stable/c/c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e ↗
- https://git.kernel.org/stable/c/73ce72edd113374801045924d4417199963f73a3 ↗
- https://git.kernel.org/stable/c/406aa86394ead347c47428fb51b6359bdaa2257d ↗
- https://git.kernel.org/stable/c/b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9 ↗
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html ↗