# CVE-2021-46950: md/raid1: properly indicate failure when ending a failed write request

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-28)
- **Published:** 2024-02-27T18:40:34.106Z
- **Modified:** 2026-06-17T04:15:57.250Z

## Who should check

- Anyone running Linux \>= 900c531899f5ee2321bef79e20055787bc73251d, \< 12216d0919b64ee2ea5dc7a50e455670f44383d5; \>= 1cd972e0a10760a1fa27d9830d78446c891c23b6, \< a6e17cab00fc5bf85472434c52ac751426257c6f; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 6920cef604fa57f9409e3960413e9cc11f5c5a40; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 661061a45e32d8b2cc0e306da9f169ad44011382; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 59452e551784b7a57a45d971727e9db63b192515; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 538244fba59fde17186322776247cd9c05be86dd; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd; a1f4fcb880988a96c0b2d5c3305ffc4e49eca0ed; 344242d50f468a250bf4b6136934392758412ed8; \>= 4.14.147, \< 4.14.233; …
- Anyone running Linux 5.4

## 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 and fixed versions

- Linux: \>= 900c531899f5ee2321bef79e20055787bc73251d, \< 12216d0919b64ee2ea5dc7a50e455670f44383d5; \>= 1cd972e0a10760a1fa27d9830d78446c891c23b6, \< a6e17cab00fc5bf85472434c52ac751426257c6f; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 6920cef604fa57f9409e3960413e9cc11f5c5a40; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 661061a45e32d8b2cc0e306da9f169ad44011382; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 59452e551784b7a57a45d971727e9db63b192515; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 538244fba59fde17186322776247cd9c05be86dd; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd; a1f4fcb880988a96c0b2d5c3305ffc4e49eca0ed; 344242d50f468a250bf4b6136934392758412ed8; \>= 4.14.147, \< 4.14.233; … (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46950. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46950.md
Affected: Linux >= 900c531899f5ee2321bef79e20055787bc73251d, < 12216d0919b64ee2ea5dc7a50e455670f44383d5; >= 1cd972e0a10760a1fa27d9830d78446c891c23b6, < a6e17cab00fc5bf85472434c52ac751426257c6f; >= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, < 6920cef604fa57f9409e3960413e9cc11f5c5a40; >= eeba6809d8d58908b5ed1b5…
Fixed in: Linux 12216d0919b64ee2ea5dc7a50e455670f44383d5, Linux 6920cef604fa57f9409e3960413e9cc11f5c5a40, Linux 661061a45e32d8b2cc0e306da9f169ad44011382, Linux 59452e551784b7a57a45d971727e9db63b192515, Linux 538244fba59fde17186322776247cd9c05be86dd, Linux 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd, Linux 4.14.…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46950 being exploited?

There is no confirmed exploitation: CVE-2021-46950 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-46950?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46950?

Linux \>= 900c531899f5ee2321bef79e20055787bc73251d, \< 12216d0919b64ee2ea5dc7a50e455670f44383d5; \>= 1cd972e0a10760a1fa27d9830d78446c891c23b6, \< a6e17cab00fc5bf85472434c52ac751426257c6f; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 6920cef604fa57f9409e3960413e9cc11f5c5a40; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 661061a45e32d8b2cc0e306da9f169ad44011382; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 59452e551784b7a57a45d971727e9db63b192515; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 538244fba59fde17186322776247cd9c05be86dd; \>= eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, \< 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd; a1f4fcb880988a96c0b2d5c3305ffc4e49eca0ed; 344242d50f468a250bf4b6136934392758412ed8; \>= 4.14.147, \< 4.14.233; …; Linux 5.4.

### Is there a fix for CVE-2021-46950?

Yes. Fixed in Linux 12216d0919b64ee2ea5dc7a50e455670f44383d5, Linux 6920cef604fa57f9409e3960413e9cc11f5c5a40, Linux 661061a45e32d8b2cc0e306da9f169ad44011382, Linux 59452e551784b7a57a45d971727e9db63b192515, Linux 538244fba59fde17186322776247cd9c05be86dd, Linux 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd, Linux 4.14.233. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-46950?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/12216d0919b64ee2ea5dc7a50e455670f44383d5>
- patch: <https://git.kernel.org/stable/c/a6e17cab00fc5bf85472434c52ac751426257c6f>
- patch: <https://git.kernel.org/stable/c/6920cef604fa57f9409e3960413e9cc11f5c5a40>
- patch: <https://git.kernel.org/stable/c/661061a45e32d8b2cc0e306da9f169ad44011382>
- patch: <https://git.kernel.org/stable/c/59452e551784b7a57a45d971727e9db63b192515>
- patch: <https://git.kernel.org/stable/c/538244fba59fde17186322776247cd9c05be86dd>
- patch: <https://git.kernel.org/stable/c/2417b9869b81882ab90fd5ed1081a1cb2d4db1dd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46950>

HTML: <https://flawdb.com/CVE-2021-46950> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46950>
