Linux
md/raid5: validate payload size before accessing journal metadata
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b4c625c67362b3940f619c1a836b4e8329106658, < c96c6f01d84b5c67db1bf1cc8591c0b7146826fc
- >= b4c625c67362b3940f619c1a836b4e8329106658, < ef4851d8324fd978ca1ff9ec76a275438f887743
- >= b4c625c67362b3940f619c1a836b4e8329106658, < 28d3ff7109c66e99dc1b7cddacb5c760849620ef
- >= b4c625c67362b3940f619c1a836b4e8329106658, < 33698bd1b2db9764a29df7751533d33967ff5c98
- >= b4c625c67362b3940f619c1a836b4e8329106658, < c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e
- >= b4c625c67362b3940f619c1a836b4e8329106658, < 73ce72edd113374801045924d4417199963f73a3
- >= b4c625c67362b3940f619c1a836b4e8329106658, < 406aa86394ead347c47428fb51b6359bdaa2257d
- >= b4c625c67362b3940f619c1a836b4e8329106658, < b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9
Fixed in c96c6f01d84b5c67db1bf1cc8591c0b7146826fc, ef4851d8324fd978ca1ff9ec76a275438f887743, 28d3ff7109c66e99dc1b7cddacb5c760849620ef, 33698bd1b2db9764a29df7751533d33967ff5c98, c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e, 73ce72edd113374801045924d4417199963f73a3, 406aa86394ead347c47428fb51b6359bdaa2257d, b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9
- 4.10
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.86, 6.18.27, 7.0.4, 7.1
Mitigation
Upgrade Linux to c96c6f01d84b5c67db1bf1cc8591c0b7146826fc or ef4851d8324fd978ca1ff9ec76a275438f887743 or 28d3ff7109c66e99dc1b7cddacb5c760849620ef or 33698bd1b2db9764a29df7751533d33967ff5c98 or c3a1cf78bd1bbb51b2cc5189b4743056553c1e0e or 73ce72edd113374801045924d4417199963f73a3 or 406aa86394ead347c47428fb51b6359bdaa2257d or b0cc3ae97e893bf54bbce447f4e9fd2e0b88bff9 or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.140 or 6.12.86 or 6.18.27 or 7.0.4 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.