title: md/raid1: properly indicate failure when ending a failed write request
description: In the Linux kernel, the following vulnerability has been resolved:
md/raid1: properly indicate failure when ending a failed write request
This patch addresses a data corruption bug in raid1 arrays using bitmaps.
Without this fix, the bitmap bits for the failed I/O end up being cleared.
Since we are in the failure leg of raid1_end_write_request, the request
either needs to be retried (R1BIO_WriteError) or failed (R1BIO_Degraded).
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 900c531899f5, lessThan: 12216d0919b6, status: affected, versionType: git
version: 1cd972e0a107, lessThan: a6e17cab00fc, status: affected, versionType: git
version: eeba6809d8d5, lessThan: 6920cef604fa, status: affected, versionType: git
version: eeba6809d8d5, lessThan: 661061a45e32, status: affected, versionType: git
version: eeba6809d8d5, lessThan: 59452e551784, status: affected, versionType: git
version: eeba6809d8d5, lessThan: 538244fba59f, status: affected, versionType: git
version: eeba6809d8d5, lessThan: 2417b9869b81, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 5.4, status: affected
version: 0, lessThan: 5.4, status: unaffected, versionType: custom
version: 4.14.233, lessThanOrEqual: 4.14.*, status: unaffected, versionType: custom
version: 4.19.191, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.118, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.36, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.11.20, lessThanOrEqual: 5.11.*, status: unaffected, versionType: custom
version: 5.12.3, lessThanOrEqual: 5.12.*, status: unaffected, versionType: custom
version: 5.13, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
